Our company is consolidating our monitoring solutions (WUG, Cacti, Zabbix) to Nagios. I have used Zabbix for years, and am trying to understand how to get Nagios to report on applications that I have written Nagios scripts for.
The scripts have been written on the client and been put in the "/usr/local/nagios/etc/libexec" directory. The script, a simple one just checking if an application process exists will return the "0", "1", "2", or "3" exit codes as required.
The file "/usr/local/nagios/etc/nrpe.cfg" has been edited on the Nagios client with the "command[command_name]=/path/to/command" stanza.
All the documentation I can find says to edit the "commands.cfg" file on the server host to point to the "command_name", however opening that file the top lines indicate that it is not to be edited as it will be overwritten and the file(s) should be put into a "static" directory or an "input" directory. I have tried to figure out how to "import" the command into Nagios CCM with little progress.
Can anyone shed some light on the correct procedure to do this, and if there is a simpler way to handle this as it seems that this is a lot of effort for a simple task.