Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

check_log.ps1

Rating
5 votes
Favoured:
2
Current Version
1.0
Last Release Date
2020-08-19
Compatible With
  • Nagios 4.x
  • Nagios XI
Owner
License
MIT
Hits
294
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
Powershell version of check_log.sh nagios plugin

Usage:
.\check_log.ps1
.\check_log.ps1 log_file old_log_file pattern
$Logfile - path to logfile
$Oldlog - temp path to file where will be stored part of log file checked by plugin, used to specify diff from $Logfile
$Query - case-sensitive search string, when plugin match pattern in log, it will return CRITICAL state
Example:
.\check_log.ps1 C:\Test.log C:\Temp\Test.log ERROR


Tested only on Windows!
Reviews (1)
bymikelye, January 4, 2021
1 of 1 people found this review helpful
works fine