Code: Select all
/usr/lib64/nagios/plugins/check_init_service bgpd Code: Select all
Redirecting to /bin/systemctl status bgpd.service
bgpd.service - BGP routing daemon
Loaded: loaded (/usr/lib/systemd/system/bgpd.service; enabled)
Active: active (running) since Tue 2015-10-27 10:40:44 CDT; 2h 18min ago
Process: 2081 ExecStart=/usr/sbin/bgpd -u quagga -g quagga -f /etc/quagga/bgpd.conf -d -P 17500 (code=exited, status=0/SUCCESS)
Main PID: 2267 (bgpd)
CGroup: /system.slice/bgpd.service
└─2267 /usr/sbin/bgpd -u quagga -g quagga -f /etc/quagga/bgpd.conf -d -P 17500
Code: Select all
command[check_init1]=/usr/lib64/nagios/plugins/check_init_service bgpd
command[check_init2]=/usr/lib64/nagios/plugins/check_init_service zebra
Code: Select all
./check_nrpe -n -H 192.168.255.70 -t 30 -c check_init_service bgpd Code: Select all
NRPE: Command 'check_init_service' not definedfrom commands.cfg:
Code: Select all
# 'check_init_service' command definition
define command{
command_name check_init_service
command_line $USER1$/check_nrpe -n -H $HOSTADDRESS$ -t 30 -c check_init_service -a $ARG1$
}
Code: Select all
define service{
use unix-service ; Name of service template to use
host_name <my_domain>
service_description Quagga-bgpd
check_command check_nrpe-2.24!check_init1
notification_period workhours
notifications_enabled 1
}
define service{
use unix-service ; Name of service template to use
host_name <my_domain>
service_description Quagga-zebra
check_command check_nrpe-2.24!check_init2
notification_period workhours
notifications_enabled 1
}