Nagios Core command to search for String and return output

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
apteancloud
Posts: 47
Joined: Wed Sep 09, 2020 4:05 am

Nagios Core command to search for String and return output

Post by apteancloud »

Hi Team,

We have a requirement on one of our unix machines to Monitor Text/log files for specific content in the file and give output.

Basically, we will get an output file(consisting of String values Green, Orange, and Red) from one of the job scripts in .txt format and we have planned to monitor the file based on it, such that
Green = Ok
Orange = Warning
Red = Critical

Could you guys please suggest which plugin suits the above requirement on UNIX machines with nrpe/ncpa agent :)

Thanks in Advance
Locked