custom script to check log file on Nagios server

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
wjoyner
Posts: 32
Joined: Thu Mar 22, 2018 7:28 am

custom script to check log file on Nagios server

Post 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.
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

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
wjoyner
Posts: 32
Joined: Thu Mar 22, 2018 7:28 am

Re: custom script to check log file on Nagios server

Post by wjoyner »

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

Post by scottwilkerson »

wjoyner wrote:Thank you for the link, it was helpful.
Great!
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked