这样导致很多图片获取不到,用网页工具查看到有很多图片的路径(根据nginx的配置不同而不同)不正确
Chmod 777/usr/local/nagios/share/pnp/images
将action_url /nagios/pnp/index.php?host=$HOSTNAME$&srv=$SERVICEDESC$改为:
action_url /pnp/index.php?host=$HOSTNAME$&srv=$SERVICEDESC$
service nagios reload
图片就显示出来了:

升级到0.6.*
1. planning the new setup
2. perform test installation and acquaintoneself with the new system
3. create backup of the old installation
4. install PNP 0.6.x at /usr/local/pnp4nagios
5. make install-config
6. make install-webconf
7. reload Apache
8. test Apache-config
I. call of /pnp4nagios has to report anempty perfdata directory
9. create /usr/local/pnp4nagios/etc/npcd.cfg from npcd.cfg-sample
I. check paths and adapt changes from 0.4.xif necessary
10. adjustall paths in nagios.cfg to the new PNP installation
11. adjustall paths in the command definitions
12. stopnpcd using /etc/init.d/npcd stop
13. make install-init installsthe new init script for npcd
14. /etc/init.d/nagios stop
15. copy /usr/local/nagios/share/perfdata to /usr/local/pnp4nagios/var/perfdata.Attention: check the permissions
16. /etc/init.d/npcd start
17. /etc/init.d/nagios start
