Page 1 of 1

Custom NRPE Configuration File/ Changing output of alarm

Posted: Tue Apr 30, 2013 11:24 am
by Technology_Vacation
Hi,

I have been trying to research if there is a sample custom NRPE configuration file that would allow to change the outputs of alerts.

Example:

command[check_disk1]=/usr/lib64/nagios/plugins/check_disk -w 10% -c 5% -p /dev/sda1

If you were to get a warning from this check_disk1, it would send the output of df -h, showing the complete output of df -h. This would allow the administrator to quickly identify and t-shoot because it provided a snapshot of df -h and provided this details of the triggered alarm with in the email alert.

Let me know if more details are required..

Re: Custom NRPE Configuration File/ Changing output of alarm

Posted: Tue Apr 30, 2013 1:01 pm
by abrist
The output of check_disk is formatted by the plugin code itself. check_disk is a binary, so unless you want to edit the source code, you are best off writing your own script to run df -h.
See the Plugin Developement Guidelines

Re: Custom NRPE Configuration File/ Changing output of alarm

Posted: Fri Jun 07, 2013 1:55 pm
by Technology_Vacation
Thank you...