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.
custom script to check log file on Nagios server
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: custom script to check log file on Nagios server
You would just want to add the plugin and command as described in this document
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Re: custom script to check log file on Nagios server
Thank you for the link, it was helpful.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: custom script to check log file on Nagios server
Great!wjoyner wrote:Thank you for the link, it was helpful.