Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_log.ps1
1.0
2020-08-19
- Nagios 4.x
- Nagios XI
MIT
4338
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
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!
$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)
works fine