Using jrds with nagios

Jrds can be used as a proxy to collect values for nagios. For some heavy weight connector like jmx or SQL, it reduce the load on the nagios collect. It will also hide many different kind of server problems thanks to jrds smart connexion management.

It's also possible to evaluate value for long time period thanks to the use of consolidation function.

A sample nagios probe is provided.

The arguments are:

 -H, --hostname=<hostname>
 -J, --jrdsurl=<JRDS ROOT URL>
 -p, --probeinstancename=<Probe instance name>
 -d, --dsname=<ds name>
 -i, --interval=<interval (in seconds)>
 -f, --cffunction=<consolidation function>
 -w, --warning=value
 -c, --critical=value
 -t, --timeout=INTEGER

The jrdsurl is the root of the jrds' web app.

cffunction is one of the rrd4j consolidation functions : average, max, min, first, last, total. The default is average.

The interval argument define the interval to apply the consolidation function. The default value is 600 s (10 minutes).

The dsname is the datasource name, probeinstancename is the probe name for this host. Both can be found using the graph details icon show next to a graph.

This tool use last collected values REST call.

nagios.txt · Last modified: 2011/10/18 21:04 by root     Back to top