Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Check_WinLogs
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!
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$
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$
Reviews (0)
Be the first to review this listing!