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

Directory Tree

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
4155
Nagios CSP

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