Minor distributed monitoring documentation error

Goldschrafe, Jeffrey goldschr at cshl.edu
Thu Mar 20 18:29:38 CET 2008


In the middle of the documentation for the distributed monitoring
configuratoin, there's an example script used to submit NSCA results to
the master server from an OCSP/perfdata processor. That script contains
this command:

/bin/printf "%s\t%s\t%s\t%s\n" "$1" "$2" "$return_code" "$4" |
/usr/local/nagios/bin/send_nsca central_server -c
/usr/local/nagios/etc/send_nsca.cfg

It's missing the -H argument before central_server, though, so it should
read as follows:

/bin/printf "%s\t%s\t%s\t%s\n" "$1" "$2" "$return_code" "$4" |
/usr/local/nagios/bin/send_nsca -H central_server -c
/usr/local/nagios/etc/send_nsca.cfg

The script should probably also just define $CENTRAL_SERVER at the top
of the script somewhere in keeping with good scripting form, but that's
a nitpick -- the missing switch is the big concern. :)
 
Jeff Goldschrafe
Systems Engineer
Cold Spring Harbor Laboratory
1 Bungtown Road
Cold Spring Harbor, NY 11724
(516) 367-6966
http://www.cshl.edu

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/




More information about the Developers mailing list