- 論壇徽章:
- 0
|
服務(wù)端
nrpe.cfg
command[check_http]=/usr/local/nagios/libexec/check_http -w 30% -c 10%
commands.cfg
define command{
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
}
define command{
command_name check_http
command_line $USER1$/check_http $ARG1$
}
remote-linux.cfg
define service {
use generic-service;
host_name pctheme
service_description HTTP
check_command check_nrpe!check_http
notifications_enabled 0
}
受控端
nrpe.cfg
command[check_http]=/usr/local/nagios/libexec/check_http -w 20% -c 10%
要實現(xiàn)監(jiān)控http站點是否正常,不知應(yīng)該如何設(shè)置的,監(jiān)控網(wǎng)站為http://www.bac.com/index.htmlnagios返回的結(jié)果為"NRPE: Command 'check_http' not defined ",不知何原因???
在服務(wù)直接執(zhí)行
./check_http -H www.bac.com -u /index.html
命令,沒有問題的.返回正確的值 |
|