NSClient++ Help (#1) - Script to check command file? (#341) - Message List

Script to check command file?

I'm trying to figure out how I can use NSClient to collect passive information to pass along to a remote Nagios server. I NSCA working, running scripts which return checks back to Nagios.

What I am looking for is a script to check a command file (similar to the way Nagios checks a command file) where I can dump a command into the file and have the script (or NSClient) pick the command up to process (send via NSCA pack to Nagios).

My reason for this is to use SNMP traps on the cient which trigger sending the info (via NSCA) to the remote Nagios. My thought is to have snmptrapd enter a record in a command file which is monitored (by NSClient or a script) and have the passive info sent back to nagios.

Am I off base? Does anyone do this and how? Are there any scripts out there before I write one?

As always any help is appreciated. Tim

  • Message #1024

    you cant do this "out of the box" since you cannot programatically modify the "name" of the command.

    You can of course execute a compiled send_nsca from a NRPE (or NSCA-dummy) script. But it is not a use case which it was designed for. Hopefully this will change in the future but not "soon".

    Michael Medin

Subscriptions