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

check_essential_services

Rating
0 votes
Favoured:
0
Last Release Date
2014-09-12
Compatible With
  • Nagios 3.x
E-mail
Hits
11378
Files:
FileDescription
check_essential_services.plcheck_essential_services.pl
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
check_essential_services takes a string of services and returns critical if any are not running.

It is written in perl, and works fine with tinyperl. I put my scripts (compiled first) and the tinyperl environment in nsclient++/scripts/perl
define host{
_ESSENTIALSERVICES tmlisten ntrtscan ds_agent
}

define command{
command_name check_essential_svc
command_line $USER1$/check_nrpe -t 10 -H $HOSTADDRESS$ -c check_essential_svc -a "$_HOSTESSENTIALSERVICES$"
}

define service{
use standardservice
service_description essential services
check_command check_essential_svc
}

nsclient.ini:
[/settings/external scripts/scripts]
check_essential_svc = scriptsperlcheck_essential_services.exe "$ARG1$"