z

Commercial Support Clients: Clients with support contracts can get escalated support assistance by visiting Nagios Answer Hub. These forums are for community support services. Although we at Nagios try our best to help out on the forums here, we always give priority support to our support clients.

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.

nagiosxi plugin to monitor String inside .Txt File

Postby apteancloud » Mon Dec 13, 2021 4:35 am

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
apteancloud
 
Posts: 47
Joined: Wed Sep 09, 2020 4:05 am

Re: nagiosxi plugin to monitor String inside .Txt File

Postby kfanselow » Mon Dec 13, 2021 5:49 pm

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
User avatar
kfanselow
 
Posts: 241
Joined: Tue Aug 31, 2021 3:25 pm


Return to Nagios XI

Who is online

Users browsing this forum: No registered users and 17 guests