Xymon.pm
Author | wnelis |
---|---|
Compatibility | Xymon 4.x |
Requirements | Perl |
Download | http://sourceforge.net/projects/xymonconfigsync/ |
Last Update | 2009-04-10 |
Description
The Xymon configuration files, and especially bb-hosts, contain information which is often also available in a configuration database. It would be nice if changes in the database are automatically replicated in the configuration files: it would eliminate the need to enter a change multiple times. The information in the database is generally not sufficient to generate a Xymon configuration file completely, thus some sort of synchronization between them is needed. Module Xymon.pm offers a part of a synchronization solution: it allows one to read a Xymon configuration file, to add, delete or change elements in it and to rewrite the file.
Module Xymon.pm is to be used in a script which reads the configuration database, and updates the configuration file accordingly. This script is specific to each company: it depends on the servers and services monitored in Xymon, the information available in a configuration database and the local policies with respect to the use of that information.
Installation
Not really applicable: it is to be installed in the search path of Perl.
Source
The module is available at sourceforge. To give an idea how it is used, the code snippet showing a way to generate a part of the Xymon host configuration file is shown below. In this example, an include file is generated in which printers are checked. The information about the printers, such as their name, IP address and location, is extracted from a database and is saved in hash %Ncm. As devmon is used to test the printers, the tests to be performed are specified in the devmon templates. The tags for a printer can be generated too, but in principle the tags are taken from the current include file. Thus manual modifications in the tests (tags) of a printer are maintained.
Known Bugs and Issues
Module Xymon.pm is up to now only used to update the bb-hosts file.
To Do
Credits
Changelog
- 2009-04-10
- Initial release