[Nagios-devel] Minor distributed monitoring documentation error

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

[Nagios-devel] Minor distributed monitoring documentation error

Post by Guest »

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. :)
=20
Jeff Goldschrafe
Systems Engineer
Cold Spring Harbor Laboratory
1 Bungtown Road
Cold Spring Harbor, NY 11724
(516) 367-6966
http://www.cshl.edu





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked