Re: Monitoring HTTPD
Posted: Mon Nov 26, 2018 1:34 pm
if this works from the remote server and the Nagios server how do I now add it in the NagiosXI console?
Support for Nagios products and services
https://support.nagios.com/forum/
Code: Select all
command[check_procs]=/usr/local/nagios/libexec/check_procs $ARG1$Code: Select all
/usr/local/nagios/libexec/check_nrpe -H <remote ip> -c check_procs -a '-c 1: -C httpd'Code: Select all
define service {
host_name myhost
service_description Procs HTTPD
use xiwizard_nrpe_service
check_command check_nrpe!check_procs!-a '-c: 1 -C httpd'
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
notifications_enabled 1
contacts nagiosadmin
_xiwizard linux-server
register 1
}Code: Select all
[root@nag libexec]# /usr/local/nagios/libexec/check_nrpe -H 192.168.1.42 -c check_procs -a '-c 1: -C httpd'
PROCS OK: 5 processes with command name 'httpd' | procs=5;;1:;0;
You have mail in /var/spool/mail/root
[root@nag libexec]#