- 论坛徽章:
- 0
|
本帖最后由 zhmysh 于 2010-07-30 13:27 编辑
安装pnp4nagios-0.6.0 步骤:
./configure --with-nagios-user=nagios --with-nagios-group-nagios --with-rrdtool=/usr/local/rrdtool/bin/rrdtool --with-perfdata-dir=/usr/local/nagios/share/perfdata
make
make all
make install
make install-config
make install-init
pnp4nagios-0.6.0 自动安装在此目录 :/usr/local/pnp4nagios
web 页面添加太阳图标:
在hosts.cfg 添加
process_perf_data 1
action_url /nagios/pnp/index.php?host=$HOSTNAME$
或者在sevice.cfg 添加
process_perf_data 1
action_url /nagios/pnp/index.php?host=$HOSTNAME$&srv=$SERVICEDESC$
都有错误提示:
Error: Invalid host object directive 'action_url'.
Error: Could not add object property in file '/usr/local/nagios/etc/hosts.cfg' on line 35.
以及另外一种添加方式,在services.cfg:
define serviceextinfo {
host_name keep1218
service_description check_load
action_url /nagios/pnp/index.php?host=$HOSTNAME$&srv=$SERVICEDESC$
}
错误提示:
Error: Service 'check_swap' on host 'keep1218' specified in extended service information is not defined anywhere!
Checked 1 extended service info definitions.
这是参考网上和pnp4nagios官网来添加的,都出现错误,郁闷呀。。 |
|