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
nagiosxi plugin to monitor String inside .Txt File
-
- Posts: 47
- Joined: Wed Sep 09, 2020 4:05 am
Re: nagiosxi plugin to monitor String inside .Txt File
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
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