Documentation Version 0.6.42
NPCD
NPCD (Nagios-Perfdata-C-Daemon) was written to provide an asynchronous mode to handle performance data with Introduction
In large nagios installations, your average check latency may increase to a non-acceptable high value. This means that Nagios should do a check at time If you tell the Nagios core that you want to process the performance data after every single check this is doing well for a certain amount of checks but above this limit you will run into latency problems.
To reduce the number of actions for each check you can use the Bulk Mode which gathers performance data for some time and then lets the
This move is a very fast action for the How it worksAs mentioned above the Nagios process has finished its work with moving the performance data file to a spool directory but this won't bring the data into the RRD files.
For this task you can start
After NPCD starts running it will build a list of filenames found in
Since the perfdata files in the spool dir are in the same format as for the 'normal' bulk mode NPCD should execute Advantages / DisadvantagesPro:
Con:
NPCD Config
You have to control NPCD with its own configuration file like the rolled out
Just rename it to /usr/local/pnp4nagios/bin/npcd -f /usr/local/pnp4nagios/etc/npcd.cfg or /usr/local/pnp4nagios/bin/npcd -d -f /usr/local/pnp4nagios/etc/npcd.cfg to run in Daemon Mode (background). Hint: If you decide to not rename the config file, it might be overwritten by a future update of PNP. npcd.cfg-sampleThese are the essential configuration directives for NPCD: # Privilege Options user = nagios group = nagios # Logging Options log_type = syslog log_file = /usr/local/pnp4nagios/var/npcd.log max_logfile_size = 10485760 log_level=0 # Processing Options perfdata_spool_dir = /usr/local/pnp4nagios/var/spool/ perfdata_file_run_cmd = /usr/local/pnp4nagios/libexec/process_perfdata.pl perfdata_file_run_cmd_args = -b # Thread Options npcd_max_threads=5 # greedy options use_load_threshold = 0 load_threshold = 10.0 # Process Options pid_file=/var/run/npcd.pid The directives
|
Menu
|
pnp4nagios-0.6.42 [ 04-17-2023 ]
|