command_name process-service-perfdata
command_line /home/pnp4nagios/libexec/process_perfdata.pl ##命令路径按照编译时参数来-prefix=/home/pnp4nagios
}
define command{
command_name process-host-perfdata
command_line /home/pnp4nagios/libexec/process_perfdata.pl##命令路径按照编译时参数来-prefix=/home/pnp4nagios
}
define host {
name host-pnp
action_url /pnp4nagios/index.php/graph?host=$HOSTNAME$&srv=_HOST_' class='tips' rel='/pnp4nagios/index.php/popup?host=$HOSTNAME$&srv=_HOST_
register 0
}
define service {
name srv-pnp
action_url /pnp4nagios/index.php/graph?host=$HOSTNAME$&srv=$SERVICEDESC$' class='tips' rel='/pnp4nagios/index.php/popup?host=$HOSTNAME$&srv=$SERVICEDESC$
register 0
}
还有就是看看你的pnp4数据目录有数据没有和web服务的日志输出,往往都是重写规则没有正确。 感觉cacti更好用。呵呵:lol 顶 :em17: 回复 1# zriplj
http://blog.sina.com.cn/s/blog_a22229330102uyvp.html希望对你有帮助
多谢楼猪的分享http://www.wxgzpt.cc/weixinshiyongjiaocheng/386.html
页:
[1]