Nagios监控rsync server

详见:http://exchange.nagios.org/directory/Plugins/Network-Protocols/Rsync/check_rsync/details

定义command.cfg

#’check_rsync’ command definition
define command{
command_name check_rsync
command_line $USER1$/check_rsync2 -H $HOSTADDRESS$
}

定义services.cfg

define service{
use  generic-service,srv-pnp  ; Name of service template to use
host_name  web_53
service_description  Rsync
check_command  check_rsync!10.60.30.53
}

[root@10.60.30.53 /usr/local/nagios/libexec]$ ./check_rsync2 -H 10.60.30.53

OK: Rsync is up

check_rsync2支持pnp输出图像。

如下图:

5

 

此条目发表在Nagios分类目录。将固定链接加入收藏夹。