Custom Windows log file content monitoring
Posted: Mon Apr 10, 2017 10:27 am
Hi all,
I'd kindly like to request some help to configure some monitoring of custom log files being generated/overwritten every 30 minutes on a Windows 2012 Server running a SIEM application. The server is already being monitored by Nagios Core for standard physical server checks via NSClient++.
These text based log files contain a simple numeric count (messages per second / MPS) from the SIEM for a numerous entities; each numeric count for each entity has a specific threshold that I need to stipulate in Nagios if possible.
Here is an example of an entity:
Entity Name = ExampleA
Average Count = 200
Threshold = 500
80% warning threshold = 400
90% critical threshold = 450
Log file location: 'C:\Users\User_Name\Stats\MPS_ExampleA.txt'
I'd like to somehow monitor the MPS count for this entity via Nagios by reading the log file content (eg. 200) and alert if that number hits the warning or critical threshold (400 / 450). Essentially, I'd prefer to use a standard plugin if possible, but I'm certainly open to any ideas and further discussion.
I'd kindly like to request some help to configure some monitoring of custom log files being generated/overwritten every 30 minutes on a Windows 2012 Server running a SIEM application. The server is already being monitored by Nagios Core for standard physical server checks via NSClient++.
These text based log files contain a simple numeric count (messages per second / MPS) from the SIEM for a numerous entities; each numeric count for each entity has a specific threshold that I need to stipulate in Nagios if possible.
Here is an example of an entity:
Entity Name = ExampleA
Average Count = 200
Threshold = 500
80% warning threshold = 400
90% critical threshold = 450
Log file location: 'C:\Users\User_Name\Stats\MPS_ExampleA.txt'
I'd like to somehow monitor the MPS count for this entity via Nagios by reading the log file content (eg. 200) and alert if that number hits the warning or critical threshold (400 / 450). Essentially, I'd prefer to use a standard plugin if possible, but I'm certainly open to any ideas and further discussion.