Page 1 of 1

custom script to check log file on Nagios server

Posted: Wed Apr 10, 2019 7:03 am
by wjoyner
I built a custom script checklog.sh to check a log file for a messages and want to alert on it.
If this was on a remote machine I would use NRPE, but because this is on the Nagios server itself I am unsure how to do this.
Any help would be appreciated.

Re: custom script to check log file on Nagios server

Posted: Wed Apr 10, 2019 7:39 am
by scottwilkerson
You would just want to add the plugin and command as described in this document
https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Re: custom script to check log file on Nagios server

Posted: Thu Apr 11, 2019 7:05 am
by wjoyner
Thank you for the link, it was helpful.

Re: custom script to check log file on Nagios server

Posted: Thu Apr 11, 2019 8:18 am
by scottwilkerson
wjoyner wrote:Thank you for the link, it was helpful.
Great!