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
3735
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