nagios监控http(nrpe插件)

 

nagios监控http(nrpe插件)


安装nagios-plugin插件和nrpe插件(步骤略)


# vi /usr/local/nagios/etc/nrpe.cfg


command[check_http]=/usr/local/nagios/libexec/check_http -I 192.168.1.12

:wq


重启nrpe

# killall nrpe

# /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d

# vi /usr/local/nagios/etc/objects/ming.cfg

 

define service {
  
               use                generic-service
               host_name           ming
               service_description  check_http
               check_command        check_nrpe!check_http
}


:wq


重启nagios


# service nagios restart

 

 

你可能感兴趣的:(nagios,监控http)