logging.c /* write the buffer to the syslog facility */ syslog(LOG_LOCAL2|LOG_INFO,"%s",buffer); ll logging.c -rw-rw-r-- 1 nagios nagios 12392 6月 12 15:53 logging.c 只是吧syslogd 重定向到local2这个设备里面去 然后syslogd.conf里面配置以下 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/5591/showart_418757.html
by snowtty - Linux文档专区 - 2007-11-09 21:22:21 阅读(764) 回复(0)
环境: 系统:Red Hat Enterprise Linux Server (2.6.18-128.el5) apache环境:Apache/2.2.10 PHP/5.2.6 nagios环境 :nagios Core 3.2.0 NSCA(被动模式插件) nsca以xinetd服务启动,并开启aggregate_writes 监控主机200台(全国各地),约1000个检测服务。每台主机以cron任务调度检测脚本,生成检测数据,通过send_nsca发往监控机器。(每5分钟) 问题描述: 主机死活检测正常,检测时间也很及时。 但是服...
nagios web页面提示错误 (时而提示错误 时而能显示数据) It appears as though you do not have permission to view information for any of the hosts you requested... If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI and check the authorization options in your CGI configuration file.
在用nagios的组件check_mrtgtraf导出的流量监控数据和MRTG的图标显示相差很远。有什么好的解决办法吗?? define service{ use generic-service ; Inherit values from a template host_name 192.168.12.121 service_description Port G1 Bandwidth Usage check_command check_local_mrtgtraf!/var/www/html/mrtg/192.168.12.121_49.log!AVG!10...
简单快速安装nagios 准备软件包 在nagios官网下 在做安装之前确认要对该机器拥有root权限. 在安装nagios前确认已经安装下如软件包 apache gcc gd 库与开发 可以运行rpm -qa | grep gd gdb-6.5-16.el5 gdbm-1.8.0-26.2.1 gdm-2.16.0-30.el5 gdbm-devel-1.8.0-26.2.1 sysklogd-1.4.1-39.2 gd-2.0.33-9.4.el5_1.1 ...
http://192.168.10.54/nagios/pnp/ Initalising Using /usr/local/nagios/share/perfdata// RRDTool /usr/bin/rrdtool found. RRDTool /usr/bin/rrdtool is executable PHP Function proc_open is enabled PHP Function fpassthru is enabled PHP Function xml_parser_create is enabled PHP zlib Support found. PHP GD Support found. RRD Base Directory /usr/local/nagios/share/perfdata// found. Hostname localh...
http://netsecurity.51cto.com/art/200706/48728_1.htm /usr/local/apache/bin/htpasswd –c /usr/local/nagios/etc/htpasswd sery ,就会生成web的合法访问用户sery;命令交互执行,需要输入2次密码,然后就在文件/usr/local/nagios/etc/htpasswd写入一行-第一个字段是刚生成的用户名,第二个是加密后的密码,如果还要添加更多的用户,执行命令 htpasswd 就不需要选项 “-c”,否则就会覆盖所有已经生成的行。 配置完成后,执行...
About nagios of config 两种模式:ssh采集数据,nrpe采集数据 /usr/local/nagios/etc/nagios.cfg [root@prmonitor01 etc]# cat nagios.cfg|grep prmweb01.cfg cfg_file=/usr/local/nagios/etc/panta/prmweb01.cfg [root@prmonitor01 etc]# cat nagios.cfg|grep commands.cfg cfg_file=/usr/local/nagios/etc/commands.cfg [root@prmonitor01 etc]# cat nagios.cfg|grep pr_config.cfg cfg_file=/usr/local/nagios/etc/panta/pr...