Page 3 of 3

Re: Passive Checks

Posted: Thu Apr 10, 2014 2:55 pm
by scottwilkerson
On the sending server do you still have the correct info in Admin -> Outbound Transfer settings ?
is "Enable Outbound Transfers" checked?
What are the filters set to?
On the NRDP tab, do you have selected "Enable NRDP Output:" ? Is the correct IP , method, and token in there?
Is processing of performance data enabled on the sending server? Have you changed any of these settings?
Is crond running on the sending server

Code: Select all

service crond status
tail /var/log/cron
If all of that is correct run the following on the RECEIVING server to clear the unconfigured objects cache files

Code: Select all

rm -f /usr/local/nagiosxi/var/corelog.*

Re: Passive Checks

Posted: Fri Apr 11, 2014 11:55 am
by rentsys
I do have "Enable Outbound Transfers" checked.
The filter is set to exclude localhost.
It is the correct IP and Token.
How do i check to see if performance data is enabled?

Code: Select all

[root@csvmmon01 ~]# service crond status
crond (pid  1735) is running...
[root@csvmmon01 ~]# tail /var/log/cron
Apr 11 11:51:01 csvmmon01 CROND[31927]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php > /usr/local/nagiosxi/var/perfdataproc.log 2>&1)
Apr 11 11:51:01 csvmmon01 CROND[31925]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/nom.php > /usr/local/nagiosxi/var/nom.log 2>&1)
Apr 11 11:52:01 csvmmon01 CROND[2230]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php > /usr/local/nagiosxi/var/cmdsubsys.log 2>&1)
Apr 11 11:52:01 csvmmon01 CROND[2231]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php > /usr/local/nagiosxi/var/eventman.log 2>&1)
Apr 11 11:52:01 csvmmon01 CROND[2232]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/nom.php > /usr/local/nagiosxi/var/nom.log 2>&1)
Apr 11 11:52:01 csvmmon01 CROND[2234]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/cleaner.php > /usr/local/nagiosxi/var/cleaner.log 2>&1)
Apr 11 11:52:01 csvmmon01 CROND[2233]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php > /usr/local/nagiosxi/var/sysstat.log 2>&1)
Apr 11 11:52:01 csvmmon01 CROND[2236]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/reportengine.php > /usr/local/nagiosxi/var/reportengine.log 2>&1)
Apr 11 11:52:01 csvmmon01 CROND[2237]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php > /usr/local/nagiosxi/var/perfdataproc.log 2>&1)
Apr 11 11:52:01 csvmmon01 CROND[2238]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php > /usr/local/nagiosxi/var/feedproc.log 2>&1)
[root@csvmmon01 ~]#
Can you describe how NRDP works, so I can help more in troubleshooting?
I would like to know more about how a server does outgoing transfers.
Lets say you have include localhost only, and I have the current IP address and token put in.
What happens in the background to make it send checks to the receiving Nagios server?
What is the timeline from after I click update settings to the time that the Nagios server sends the information?

Re: Passive Checks

Posted: Fri Apr 11, 2014 2:53 pm
by lmiltchev
You can enable/disable processing the perf data on a host/service level (CCM->Hosts/Services->Modify->Check Settings->Process perf data) or globally, in the nagios.cfg (process_performance_data= ).

Perfdata results are sent on a cron job every minute.

Code: Select all

grep perfdataproc.php /etc/cron.d/nagiosxi

Re: Passive Checks

Posted: Fri Apr 11, 2014 3:15 pm
by rentsys
I ran

Code: Select all

cat /usr/local/nagiosxi/var/perfdataproc.log
and got this

Code: Select all

[root@csvmmon01 ~]# cat /usr/local/nagiosxi/var/perfdataproc.log
PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 84 bytes) in /usr/local/nagiosxi/cron/perfdataproc.php on line 426
[root@csvmmon01 ~]#

Re: Passive Checks

Posted: Fri Apr 11, 2014 7:55 pm
by scottwilkerson
Ok, it looks like the sending machine is running out of memory in PHP, possibly because there are too many file in xidpe directory

run

Code: Select all

rm -f /usr/local/nagios/var/spool/xidpe/*

Re: Passive Checks

Posted: Wed Apr 16, 2014 1:32 pm
by rentsys
before you replied, I changed the maximum amount to be higher. It started outputing this instead

Code: Select all

Copying perfdata file to /usr/local/nagios/var/spool/perfdata/host-perfdata.1397672640
Copying perfdata file to /usr/local/nagios/var/spool/perfdata/service-perfdata.13976726 
The passive checks still didn't work, so I changed the variable back. I left it like that and took a few days off.
Now it works again. I don't really know why, but it works.
I never had the chance to remove files from the xidpe directory.
This can be closed