nrdp not processing all data
Posted: Wed Oct 14, 2020 11:24 am
So I have a weird NRDP issue. I have NRDP installed on an appliance that runs every 5 minutes and sends 14 check results.
As you can see in this image the host plus 13 services highlighted are what is sent:
However, look at the Last Check column. Quite often that "Check ossec-syscheckd" doesn't report in, even though it is sent. It is the last line in the config. Every so often another 1 or two services don't get updated. Here is the config:
Then, I added a second config to this machine and have it running 1 time per day in cron:
Here is that config:
It is not updating Nagios. I try to send manually with his command:
and maybe 1 out of every 30 tries it actually updates in Nagios. I change the number on the output to know.
If I use the external command file to submit a passive result or the /nrdp url directly it updates XI everytime without fail. Running XI 5.6.14
Code: Select all
hdfs-chi-usm01:/tmp# /usr/local/nrdp/clients/nrds/nrds.pl -H 'hdfs-chi-usm01'
Sent 14 checks to https://xxxx.xxxx.com/nrdp/
hdfs-chi-usm01:/tmp# Code: Select all
hdfs-chi-usm01:/tmp# cat /usr/local/nrdp/clients/nrds/nrds.cfg
CONFIG_VERSION="5.3"
CONFIG_OS="Linux"
CONFIG_NAME="hdfs_usm"
URL="https://xxxxxx.xxxxx.com/nrdp/"
TOKEN="xxxxxxxxxx"
PLUGIN_DIR="/usr/local/nagios/libexec"
SEND_NRDP="/usr/local/nrdp/clients/send_nrdp.sh"
TMPDIR="/usr/local/nrdp/clients/tmp"
COMMAND_PREFIX=""
LOG_FILE=""
UPDATE_CONFIG="1"
UPDATE_PLUGINS="1"
command[__HOST__]=/usr/local/nagios/libexec/check_ping -H localhost -w 3000.0,80% -c 5000.0,100% -p 1
command[Check Load]=/usr/local/nagios/libexec/check_load -w 23,18,13 -c 27,22,17
command[Check Disk]=/usr/local/nagios/libexec/check_disk -w 20% -c 10%
command[Check CPU]=/usr/local/nagios/libexec/check_cpu_stats.sh -w 90,85,60 -c 95,95,70
command[Check Memory]=/usr/local/nagios/libexec/check_mem.pl -w 5 -c 1 -f -C
command[Check Sensor]=/usr/local/nagios/libexec/check_ping -H 10.67.69.10 -w 3000.0,80% -c 5000.0,100% -p 1
command[Check Swap]=/usr/local/nagios/libexec/check_swap -w 50% -c 30%
command[Check Update URL]=/usr/local/nagios/libexec/check_xx_curl_response.sh 10 http://data.alienvault.com
command[Check Internet]=/usr/local/nagios/libexec/check_xx_curl_response.sh 10 http://www.google.com
command[Check OTX URL]=/usr/local/nagios/libexec/check_xx_curl_response.sh 10 https://otx.alienvault.com
command[Check ossec-remoted]=/usr/local/nagios/libexec/check_procs_usm -C ossec-remoted -w 1: -c 1:
command[Check ossec-logcollector]=/usr/local/nagios/libexec/check_procs_usm -a ossec-logcollector -w 1: -c 1:
command[Check ossec-analysisd]=/usr/local/nagios/libexec/check_procs_usm -C ossec-analysisd -w 1: -c 1:
command[Check ossec-syscheckd]=/usr/local/nagios/libexec/check_procs_usm -C ossec-syscheckd -w 1: -c 1:
Code: Select all
hdfs-chi-usm01:/tmp# /usr/local/nrdp/clients/nrds/nrds.pl -H 'hdfs-chi-usm01' -c /usr/local/nrdp/clients/nrds/nrds2.cfg
Sent 1 checks to https://xxxx.xxxx.com/nrdp/
hdfs-chi-usm01:/tmp#
Code: Select all
hdfs-chi-usm01:/tmp# cat /usr/local/nrdp/clients/nrds/nrds2.cfg
CONFIG_VERSION="0.5"
CONFIG_OS="Linux"
CONFIG_NAME="hdfs_chi_usm_logs"
URL="https://xxxx.xxxx.com/nrdp/"
TOKEN="sifo85kli9uh"
PLUGIN_DIR="/usr/local/nagios/libexec"
SEND_NRDP="/usr/local/nrdp/clients/send_nrdp.sh"
TMPDIR="/usr/local/nrdp/clients/tmp"
COMMAND_PREFIX=""
LOG_FILE="/tmp/nagios.log"
UPDATE_CONFIG="1"
UPDATE_PLUGINS="1"
command[Check Oracle Logs]=/usr/local/nagios/libexec/check_xx_usm_log.sh /var/log/oracle.log.1 "hdfs-chi-sdb01 hdfs-chi-pdb01 hdfs-chi-pdb11"
Code: Select all
/usr/local/nrdp/clients/send_nrdp.sh -u https://xxxx.xxxx.com/nrdp/ -t xxxxxxxx -H "hdfs-chi-usm01" -s "Check Oracle Logs" -S 0 -o "This is a test6"If I use the external command file to submit a passive result or the /nrdp url directly it updates XI everytime without fail. Running XI 5.6.14