There are valid reasons for not collecting performance data at all. One of the most common reasons is on a poller, since pollers will send their check results to their master, and the performance data handling will then happen at the master regardless, which makes any processing on the poller end unnecessary.
Step 1: Disable performance data in Naemon
On older versions, even if
process_performance_data
is 0 (disabled), naemon will still create the perfdata file (although empty) defined by *_perfdata_file
, and it also runs the command specified by *_perfdata_file_processing_command
. This bug was fixed in 8.1.1 and 7.5.8. Avoid this issue on older versions by completely removing the values mentioned above from your configuration file if perfdata is disabled.Change this parameter in /opt/monitor/etc/naemon.cfg
:
process_performance_data=1
to:
process_performance_data=0
Step 2: Disable and mask the NPCD service
The NPCD service is responsible for shuffling performance data, and uses the process_perfdata.pl script. You can disable this service on EL7 by running:
# systemctl disable npcd --now
# systemctl mask npcd
Created symlink from /etc/systemd/system/npcd.service to /dev/null.
This service will no longer start.
Restart Naemon and Merlin together with:
# mon restart
More information on performance data and NPCD
Please see: How is performance data transformed into graph data?
Comments
0 comments
Please sign in to leave a comment.