日志标签 ‘nagios’

Nagios报错

2009年12月3日

当执行Host Commands时报错

you have chosen to not use the authentication
functionality of the CGIs.
I don’t want to be personally responsible for what may happen as a
result of allowing unauthorized users to issue commands to Nagios,so
you’ll have to disable this safeguard if you are really stubborn and
want to invite trouble.
Read the section on CGI authentication in the HTML documentation to
learn how you can enable authentication and why you should want to.

解决办法为在cgi.nfg中
use_authentication=1

nagios机器分组批量检测

2009年9月11日

我一直不太喜欢用nagios,主要原因是配置太过复杂,有些时候可能自己写几行脚本就能搞定的事情却要修改一堆配置,太麻烦了。插件虽然很多但也会常常需要二次开发,实在没有那个精力。

这里说说今天改配置文件时候发现的一些技巧,在监控大量服务器时会更省力一些

» 阅读更多: nagios机器分组批量检测

自建nagios命令

2009年8月4日

将nagios迁移过后又陆续添加了一些机器进去,这时候遇到一个麻烦,使用check_http无法验证网站,提示失败。
但是我直接使用libexec下的文件时却能够探测的到,因为公司的check_http是根据squid改写的,所以在参数上可能有一些问题。

» 阅读更多: 自建nagios命令

nagios和cacti排错

2009年7月24日

这几天负责迁移公司原来的nagios并在新环境重新部署cacti(原来的cacti随着raid一起死了),服务器都是64位系统,解决lib和丢失文件的问题废了不少时间,现在把遇到的问题总结一下.
感谢深夜排错时在身边陪伴着的女友,没有你恐怕我的肩膀又要难受了.

nagios迁移问题—————————————————————————————————————————————

1.启动时出现缺少/lib64/libssl.so.4时

ln -s /lib64/libssl.so.0.9.7a /lib64/libssl.so.4

./check_mysql: error while loading shared libraries: libmysqlclient.so.15: cannot open shared object file: No such file or directory
检查/lib64和/lib
vi /etc/ld.so.conf 查看链接位置是否有mysql的lib文件,编辑后需要使用ldconfig重新加载。
ln -s libmysqlclient.so.15.0.0 libmysqlclient.so.15
ln -s libmysqlclient_r.so.15.0.0 libmysqlclient_r.so.15

» 阅读更多: nagios和cacti排错

实践证明xampp有点肾阳虚……

2009年4月21日

xampp是www.apachefriends.org出的一个工具,用来快速搭建AMP的实验环境。各个平台的版本都有,深受广大人民群众的喜爱。

装nrpe的时候报错了

checking for SSL headers… configure: error: Cannot find ssl headers

从nrpe的configure中截取一段代码来说明这个问题
» 阅读更多: 实践证明xampp有点肾阳虚……

 Site Optimization by PHP Speedy