手机版
你好,游客 登录 注册
背景:
阅读新闻

Nagios+pnp4nagios0.4画图

[日期:2012-07-18] 来源:Linux社区  作者:xiangliangyu2008 [字体:大 中 小]

这样导致很多图片获取不到,用网页工具查看到有很多图片的路径(根据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

linux
相关资讯       Nagios 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款