Page 1 of 1

passiv checks

Posted: Mon May 31, 2021 8:01 am
by scharft
We are using very often the passiv check for our backup_log service check.
Very often all checks are good, but not everytime.
Sometimes it's possible to send the check "OK" signal from the host and Nagios receives it, sometimes not.
We don't find out where is the problem, any ideas?

Re: passiv checks

Posted: Tue Jun 01, 2021 3:36 pm
by ssax
Please send me a copy of your profile, you can download it from Admin > System Profile by clicking the Download Profile button.

What type of passive check is it? SNMP Trap, from an agent such as NCPA/NRDS/etc? Is it using NRDP or NSCA or another method?

Re: passiv checks

Posted: Tue Jun 08, 2021 8:28 am
by scharft
it's an SNMP Trap using NSCA.
the profil is attached.

Moderator's Note: The profile has been shared with the support team but has been removed from the public forum.

Re: passiv checks

Posted: Tue Jun 08, 2021 2:35 pm
by ssax
Sorry, it would either be using NSCA/NRDP/NRDS or it's a SNMP trap, it would not be both.

If it's a SNMP trap, please run this command as root and send me the resulting /tmp/SNMPFILES.tar.gz file:

Code: Select all

tar czvf /tmp/SNMPFILES.tar.gz /etc/snmp
And let me know the name of an OID that you know should have been received but wasn't.

Re: passiv checks

Posted: Wed Jun 09, 2021 3:44 am
by scharft
I'm sorry, we are using NSCA.
The file is attached.

Re: passiv checks

Posted: Thu Jun 10, 2021 9:45 am
by ssax
Are you seeing the missing passive checks show up in Admin > Unconfigured Objects?

What is the output of this command?

Code: Select all

cat /etc/xinetd.d/nsca
Please edit this file:

Code: Select all

/usr/local/nagios/etc/nsca.cfg
Change this:

Code: Select all

debug=0
To this:

Code: Select all

debug=1
Then try to replicate the issue with the check being sent but not received. Once that occurs look in /var/log/messages for any errors.

Disable debugging after that so /var/log/messages doesn't fill up the hard drive with debug data from NSCA. That's really the only way to see what's occurring with NSCA passive results.


While likely unrelated, please edit this file:

Code: Select all

/usr/local/nagiosxi/html/config.inc.php
Change this:

Code: Select all

        "charset" => "latin1",
To this:

Code: Select all

        "charset" => "utf8",