graphios icon indicating copy to clipboard operation
graphios copied to clipboard

pip install makes problematic changes to nagios.cfg

Open EWsssfhioewhg opened this issue 10 years ago • 0 comments

Installing with pip on an openSUSE 13.2 box, these lines were automatically written in the nagios.cfg file:

service_perfdata_file_processing_command=graphios_perf_service
host_perfdata_file_processing_command=graphios_perf_host

They differ from the commands in configuration steps 2 and 3, which are written as "graphite_perf" instead of "graphios_perf," so adding the commands listed in step 3 to the commands.cfg file will produce warnings:

Warning: Service performance file processing command 'graphios_perf_service' was not found - service performance data file will not be processed!
Warning: Host performance file processing command 'graphios_perf_host' was not found - host performance data file will not be processed!

It's easy to alter these, but perhaps either the pip installation or the configuration steps should be changed so as they both reflect the same command names.

Also, the pip install wrote:

cfg_dir=/etc/nagios/objects

at the bottom of my nagios.cfg file. Already having config settings for files in that directory, it produced warnings from Nagios about duplicate commands, as it was trying to read them twice. I'm not really sure it's necessary for graphios to write that line.

EWsssfhioewhg avatar Jan 18 '15 23:01 EWsssfhioewhg