Home Directory Addons Active Checks check_serviceaut

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_serviceaut

Rating
1 vote
Favoured:
0
Current Version
1.0
Last Release Date
2021-04-05
Compatible With
  • Nagios 4.x
License
GPL
Hits
3665
Files:
FileDescription
check_service.ps1check_service.ps1
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_serviceaut
# check_serviceaut


Plugin for nagios to check service status and autostart if service is stopped.
Plugin para Nagios que chequea el estado del servicio y lo arranca de forma automática si esta parado.

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

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

2.-Define Service in Host.cfg

define service{
use generic-service
host_name YOUR_HOST
service_description WinRM Service
check_command check_serviceaut! -a WinRM

}

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

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

[/settings/external scripts/wrapped scripts]
check_serviceaut = check_service.ps1 $ARG1$
Reviews (1)
bybigadam, April 24, 2021
Easy to implement, just one script to master them all, start any service easily and quickly