* Tracy R Reed <[EMAIL PROTECTED]> [2006-05-01 17:10]: > I have chosen nsca because I prefer my machines connect to my server > since some of them may be behind firewalls etc. The problem is how do I > feed the data into nsca? For some reason it seems that the output from > the checks that come with nagios (check_disk, check_load, check_swap) > are not compatible with the input for nsca.
Yes, see the README file included with the NSCA package for a description of the format. > Why is this? For passive checks, the exit code of the plugin and the host/service the submitted plugin output refers to must be passed to Nagios in addition to the usual plugin output for active checks. > I am wondering how I am going to handle configuration and management of > this wrapper to wrap all of the local checks and configure them > appropriately for the local machine. The nagios config on the server > does not apply to remote checks. So basically I have to write a custom > shell script for each server that calls all of the right checks with the > right arguments, converts their output, and passes the result into > send_nsca to the main nagios server. You could use a wrapper script such as the following (not tested): ftp://ftp.in-berlin.de/pub/users/weiss/nagios/tools/nsca_client.sh This wrapper could be called via the following crontab entry: * * * * * /path/to/nsca_client.sh diskspace /path/to/check_disk -w 20% -c 10% | /path/to/send_nsca Holger -- PGP fingerprint: F1F0 9071 8084 A426 DD59 9839 59D3 F3A1 B8B5 D3DE ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Nagios-users mailing list [email protected] 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
