[patch] "config" download area is now a setting
list Charles Goyard
Hi Henrik,
here is a small but convenient patch, that helps keep the etc/ directory
of the hobbit server tidy.
Something handy would be to have a automatic suffix-with-hostname before
opening the file, and fallback on the straight requested filename. That
is, requesting bb-mysql.cfg from "foo.bar.com" would search for
"bb-mysql.cfg-foo.bar.com" and then for "bb-mysql.cfg". I may add this
early next week if you didn't already :).
Regards,
--
Charles Goyard - user-98f9625a7a59@xymon.invalid - (+33) 1 45 38 01 31
-------------- next part --------------
--- upstream-2006-10-03/hobbitd/hobbitd.c 2006-11-24 17:18:57.000000000 +0100
+++ cvf/hobbitd/hobbitd.c 2006-12-01 18:30:49.000000000 +0100
@@ -1910,7 +1910,7 @@
strbuffer_t *inbuf, *result;
dbgprintf("-> get_config %s\n", fn);
- sprintf(fullfn, "%s/etc/%s", xgetenv("BBHOME"), fn);
+ sprintf(fullfn, "%s/%s", xgetenv("CLIENTEXTCFG"), fn);
fd = stackfopen(fullfn, "r", NULL);
if (fd == NULL) {
errprintf("Config file %s not found\n", fn);
--- upstream-2006-10-03/lib/environ.c 2006-11-24 17:18:08.000000000 +0100
+++ cvf/lib/environ.c 2006-12-01 18:29:43.000000000 +0100
@@ -89,6 +89,7 @@
{ "BBHOSTHISTLOG", "TRUE" },
{ "SAVESTATUSLOG", "TRUE" },
{ "CLIENTLOGS", "$BBVAR/hostdata" },
+ { "CLIENTEXTCFG", "$BBHOME/etc" },
{ "MAILC", "mail" },
{ "MAIL", "$MAILC -s" },
{ "SVCCODES", "disk:100,cpu:200,procs:300,svcs:350,msgs:400,conn:500,http:600,dns:800,smtp:725,telnet:723,ftp:721,pop:810,pop3:810,pop-3:810,ssh:722,imap:843,ssh1:722,ssh2:722,imap2:843,imap3:843,imap4:843,pop2:809,pop-2:809,nntp:819,test:901" },
--- upstream-2006-10-03/common/hobbitserver.cfg.5 2006-11-24 17:18:09.000000000 +0100
+++ cvf/common/hobbitserver.cfg.5 2006-12-01 18:20:16.000000000 +0100
@@ -183,6 +183,13 @@
module.
Default: $BBVAR/hostdata/
+.IP CLIENTEXTCFG
+Directory for storing client-side configuration files. They can be
+retrieved from within extension scripts with the "config" command of
+the
+.I bb(1)
+utility.
+Default: $BBHOME/etc
.SH SYSTEM FILES
list T.J. Yang
From R1 we know see a number about users on bb mailing list about 2000 Henrik, can you to some grep,sort and wc to find out how big is the hb users community ? R1: http://bb4.com/product_features.asp T.J. Yang Talk now to your Hotmail contacts with Windows Live Messenger. http://clk.atdmt.com/MSN/go/msnnkwme0020000001msn/direct/01/?href=http://get.live.com/messenger/overview
list Henrik Størner
▸
On Fri, Dec 01, 2006 at 12:55:45PM -0600, T.J. Yang wrote:
From R1 we know see a number about users on bb mailing list about 2000Henrik, can you to some grep,sort and wc to find out how big is the hb users community ?
415 subscribers to the mailing list currently, and another 100 that are only on the announce-list. Total of 513. It is also interesting that there have been about 1200 downloads of Hobbit from Sourceforge every month since April: http://sourceforge.net/project/stats/detail.php?group_id=128058&ugn=hobbitmon&type=prdownload&mode=year&year=2006&package_id=140220 There were over 2000 downloads in August, but that was probably due to the release of Hobbit 4.2.0. I dont think that each and every one of the 500 subscribers to the mailing lists go and fetch a fresh copy of Hobbit every two weeks. So the community of Hobbit users is probably somewhere into a few thousand people. (Which, by the way, is a lot more than I had ever anticipated :-)) Regards, Henrik
list Jason Altrincham Jones
Maybe you shouldn't have made hobbit so well :P Jason.
▸
-----Original Message-----
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid]
Sent: 01 December 2006 22:05
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Number of hobbit user community
On Fri, Dec 01, 2006 at 12:55:45PM -0600, T.J. Yang wrote:From R1 we know see a number about users on bb mailing list about
2000
Henrik, can you to some grep,sort and wc to find out how big is the hb
users community ?
415 subscribers to the mailing list currently, and another 100 that are only on the announce-list. Total of 513. It is also interesting that there have been about 1200 downloads of Hobbit from Sourceforge every month since April:
http://sourceforge.net/project/stats/detail.php?group_id=128058&ugn=hobb itmon&type=prdownload&mode=year&year=2006&package_id=140220
▸
There were over 2000 downloads in August, but that was probably due to
the release of Hobbit 4.2.0.
I dont think that each and every one of the 500 subscribers to the
mailing
lists go and fetch a fresh copy of Hobbit every two weeks. So the
community of Hobbit users is probably somewhere into a few thousand
people.
(Which, by the way, is a lot more than I had ever anticipated :-))
Regards,
Henrik
list Charles Goyard
Hi,
▸
Charles Goyard wrote :here is a small but convenient patch, that helps keep the etc/ directory of the hobbit server tidy.
Looking again at the documentation, I see there's a "download" command in bb. So, we have three ways of getting extension scripts configuration : - with "bb config" (from the etc/ directory) - with "bb download" (from the downloads/ directory) - by adding data in etc/client-local.cfg Since it is not desirable to get all hosts config from a security standpoint (that can be database password and the like), having one file per client looks nice. The patch I submitted may break some setups that expect to have access to bb-hosts and the like. Henrik, what do you recommend for storing and fetching extension script configuration ? Regards, -- Charles Goyard - user-98f9625a7a59@xymon.invalid - (+33) 1 45 38 01 31