Nagios Service Dependency Generator
Andy Shellam
andy.shellam-lists at mailnetwork.co.uk
Tue May 8 00:46:28 CEST 2007
It's been a little later than I originally planned, but I've now created
the Service Dependency Generator for Nagios.
This tool will generate a number of service dependencies for one or more
host/service combinations. This will be best used for the "matrix"
dependency problem. E.g. NRPE checks on a server depend on the master
NRPE check on the same server. You cannot create a single dependency
definition, or each NRPE check will depend on every other server's
master NRPE check.
This tool will generate these sort of dependencies for you.
Page 256 of the Nagios 2.0 manual will help explain what the various
options mean.
To use, visit: http://apps.andyshellam.eu/nagios_sdg.
If you don't select a master host (the default), then a dependency on
each service will be generated for each host you enter, otherwise each
generated check will depend on the master host/service you enter.
E.g. Some common dependencies to generate:
A series of website checks on one server depend on the server's Web
Service check:
1. Check "Define master host"
2. Enter the server's name in the "Master host" box
3. Enter "Web Service" as the master service check
4. Enter the server's name in the "Dependent Hosts" box
5. Enter the list of website checks in the "Dependent Services" box
6. Select the extra options
7. Generate!
For every server in Nagios, each check that requires NRPE depends on the
same server's "master NRPE Agent" check:
1. Leave "Define master host" unchecked
2. Enter a list of all servers in the "Master/dependent hosts" box
3. Enter "NRPE Agent" as the master service check
4. Enter a list of all NRPE-checks in the "Dependent Services" box
5. Select the extra options
6. Generate!
The tool can generate you a config file to save directly to the Nagios
server, or output directly in your browser for copy/pasting.
Regards
Andy.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list