nagiosxi plugin to monitor String inside .Txt File

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
apteancloud
Posts: 47
Joined: Wed Sep 09, 2020 4:05 am

nagiosxi plugin to monitor String inside .Txt File

Post by apteancloud »

Hi Team,

We have a requirement on one of our Windows 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 Windows machines with NSclient++ agent :)

Thanks in Advance
User avatar
kfanselow
Posts: 241
Joined: Tue Aug 31, 2021 3:25 pm

Re: nagiosxi plugin to monitor String inside .Txt File

Post by kfanselow »

Hi apteancloud,

If you know the strings you are looking for and using NSclient++, writing a VB or powershell script might be the best/easiest route to go. Here's a link to their guide on writing external scripts along with the nagios plugin guidelines:

https://docs.nsclient.org/howto/external_scripts/

https://nagios-plugins.org/doc/guidelines.html

Thanks and Best Regards,
Keith
Locked