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_WinLogs

Rating
0 votes
Favoured:
0
Current Version
1.0
Last Release Date
2021-03-30
Compatible With
  • Nagios 4.x
License
GPL
Hits
3303
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!
Check_WinLogs
Plugin for nagios to check string inside file (for Windows files)
Plugin para buscar una cadena de texto dentro de un fichero log (construido para Windows)
# Check_WinLogs

Plugin for nagios to check string inside file

1.- Define command in /usr/local/nagios/etc/objects/commands.cfg

define command{
command_name check_winlog
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -p 5666 -c check_winlog $ARG1$ $ARG2$
}

2.-Define Service in Host.cfg (this example check file c:/test.log and find string Error)

define service{
use generic-service
host_name YOUR_HOST
service_description Check_logs_test
check_command check_winlog! -a c:/test.log Error
}

3.- Put Check_WinLog.ps1 in C:/Program Files/NSClient++/scripts

4.- Edit nsclient.ini in your Host and add the following lines

[/settings/external scripts/wrapped scripts]
check_winlog = Check_WinLog.ps1 $ARG1$ $ARG2$