分类: LINUX
2007-08-15 15:10:18
process_performance_data=1
service_perfdata_command=process-service-perfdata #默认此句被注释掉了 |
process_perf_data 1 |
define command{ command_name process-service-perfdata command_line /usr/local/nagios/libexec/process_perfdata.pl } |
./configure --with-rrdtool=/usr/local/rrdtool/bin/rrdtool --with-perfdata-dir=/usr/local/nagios/share/perfdata/ make all make install |
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg |
/etc/init.d/nagios restart |
chinaunix网友2008-11-07 16:12:16
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 localhost is set. Directory /usr/local/nagios/share/perfdata//localhost found. Service Description Current_Load i
chinaunix网友2008-11-07 10:53:38
我想问一下,process_performance_data=1这个是全局定义的还是对每一个监控项都要定义? Blog作者的回复: 这个值是全局定义,每个监控项也需要单独设置一个“ process_perf_data 1 ” ,两者目前还是缺一不可的。 在templates.cfg中默认process_perf_data=1的,并且在每个service定义中都调用了这个模板,还需要再单独指定吗?