[hobbit] Usefulness for xymonconfigsync?

wiskbroom at hotmail.com wiskbroom at hotmail.com
Tue Jan 12 16:36:49 CET 2010



> Hello,
>
>> I've seen this link:
>>
>> http://sourceforge.net/projects/xymonconfigsync/
>>
>> Could some of you please share what are some of the ways in which you are using this?
>>
> That module is used quite frequently over here. That is not really
> surprising, as I am the author of that perl module.

I wish Xymon had more stuff like this.

> The module is written to be able to synchronize the Xymon configuration
> file bb-hosts with a configuration database. That database contains the
> devices to be monitored, some comment and above all the administrators
> of each device. Those administrators will receive an e-mail if there is
> a yellow or red condition for a test of "their" server. The database
> does *not* contain information about the tests to be performed. When
> regenerating the bb-hosts configuration file, information is taken as
> much as possible from the configuration database, and the rest of the
> information, especially the network tests, is taken from the old version
> of the bb-hosts configuration file.

How is the database created? Do you have a db create script? (sorry, haven't read the POD yet).

> As a result, a server becomes monitored (although with only one test
> "conn") as soon as it is defined in the configuration database, en it
> disappears from Xymon once it is removed from the database. Thus the
> administrators have a bit of control of what is being monitored, and who
> receives the alerts, as they are allowed to modify the configuration
> database.

Makes sense, and are your admins delegated depending on their location/discipline and/or responsibilities?

> To illustrate the benefits of this approach: bb-hosts is divided into
> about a dozen subfiles, glued together with "include" directives. One of
> them contains for each administrator a list of devices (s)he
> administers. There is a notes-file for each monitored device, which
> contains a link to that entry in the configuration database. In 2009,
> the configuration synchronization has (re)written more than 2700 times
> one of those configuration files.

My present bb-hosts is made up entirely of page, subpage, group-compress, title and dispinclude directives.

Since my bb-hosts itself does not contain any hosts, I've been toying with the idea of modifying  menu/menu_items.js allowing me one entry for each dispinclude file/directory (using Chris Naude's bb-hosts.cgi for each dispinclude flat-files).  The problem with that idea is that it becomes messy looking,  and does not provide me with neither the ability to "hide" each file from other admins, nor allow me any sort of access control to those files; unless of course I setup some sort of ACL in the directories they are contained in. 

> A way of using the xymonconfigsync module is described in the POD within
> the module.

OK, I'll read the FM ;-)  But any other help, pointers/ideas would be greatly appreciated.

> Regards,
> Wim Nelis.

Thank you Wim,

.vadim


 		 	   		  


More information about the Xymon mailing list