Page 1 of 3
No Outbound Check Transfer...
Posted: Sun Jul 01, 2012 9:31 am
by mroter
I'm using 2 servers running Nagios XI 3.2
I've configured NRDP and tested it using send_nrdp.sh from the remote servers to the central server.
I've configured the outbound check transfer on the remote server to use NRDP and the only filter I have is exclude of localhost but yet data is not sent from the remote server to the central server (for the other hosts)
What am I doing wrong???
Re: No Outbound Check Transfer...
Posted: Mon Jul 02, 2012 8:11 am
by scottwilkerson
Can you verify that on the sending machine the perfdataproc.php cron is running
Also, make sure on the sending machine, in the nagios.cfg you have the following and not a different similar command
Code: Select all
service_perfdata_file_processing_command=process-service-perfdata-file-bulk
host_perfdata_file_processing_command=process-host-perfdata-file-bulk
Re: No Outbound Check Transfer...
Posted: Mon Jul 02, 2012 8:31 am
by mroter
[root@localhost ~]# ps -ef |grep /perfdataproc.php
nagios 2913 2908 0 21:19 ? 00:00:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php > /usr/local/nagiosxi/var/perfdataproc.log 2>&1
nagios 2919 2913 0 21:19 ? 00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php
root 3063 2775 0 21:19 pts/0 00:00:00 grep /perfdataproc.php
I've also verified that the sending machine nagios.cfg have the original settings:
service_perfdata_file_processing_command=process-service-perfdata-file-bulk
host_perfdata_file_processing_command=process-host-perfdata-file-bulk
What's next?
Thanks
Matty
Re: No Outbound Check Transfer...
Posted: Mon Jul 02, 2012 8:50 am
by scottwilkerson
Lets tail the log on the remote system to see if it show them sending
Code: Select all
tail -f /usr/local/nagiosxi/var/perfdataproc.log
Re: No Outbound Check Transfer...
Posted: Mon Jul 02, 2012 9:41 am
by mroter
The following is working for me (i'm getting the data on the Unconfiged objects of the central server)
Code: Select all
[root@localhost libexec]# sh send_nrdp.sh -u http://xxx.xxx.xxx.xxx/nrdp/ -t yyyyyyyyy -H test-sin -s test-srv -S 0 -o Passed
Sent 1 checks to http://xxx.xxx.xxx.xxx/nrdp/
So I guess NRDP Inbound settings & FW are OK
Re: No Outbound Check Transfer...
Posted: Mon Jul 02, 2012 9:43 am
by scottwilkerson
scottwilkerson wrote:Lets tail the log on the remote system to see if it show them sending
Code: Select all
tail -f /usr/local/nagiosxi/var/perfdataproc.log
Re: No Outbound Check Transfer...
Posted: Mon Jul 02, 2012 10:05 am
by mroter
Is this what you are looking for?
Code: Select all
tail: /usr/local/nagiosxi/var/perfdataproc.log: file truncated
DONE. Processed 8 files.
tail: /usr/local/nagiosxi/var/perfdataproc.log: file truncated
Processing perfdata file '/usr/local/nagios/var/spool/xidpe/1341240655.perfdata.host'
Copying perfdata file to /usr/local/nagios/var/spool/perfdata/host-perfdata.1341240655
Sending passive check data to NRDP server(s)...
Processing perfdata file '/usr/local/nagios/var/spool/xidpe/1341240655.perfdata.service'
Copying perfdata file to /usr/local/nagios/var/spool/perfdata/service-perfdata.1341240655
Sending passive check data to NRDP server(s)...
DONE. Processed 8 files.
What does it mean "sending passive check data to NRDP server(s)..."?
I want to send ALL (but localhost) resultes (both active and passive) from the remote server to the central server
Re: No Outbound Check Transfer...
Posted: Mon Jul 02, 2012 10:24 am
by mroter
I probabaly don't understand how it works BUT it looks like it IS trying to send the wrong data
Code: Select all
Processing perfdata file '/usr/local/nagios/var/spool/xidpe/1341241750.perfdata.service'
Copying perfdata file to /usr/local/nagios/var/spool/perfdata/service-perfdata.1341241750
Sending passive check data to NRDP server(s)...
Sending to NRDP target host: xxx.xxx.xxx.xxx
CMDLINE: /bin/cat /tmp/NRDPOUTsrrklN | php /usr/local/nrdp/clients/send_nrdp.php --url=http://xxx.xxx.xxx.xxx/nrdp/ --token=yyyyyyyyy --usestdin
<?
// send_nrdp.php
//
// Copyright (c) 2010-2011 Nagios Enterprises, LLC.
// Portions Copyright (c) others - see source code below.
/* License:
.....
?>
Re: No Outbound Check Transfer...
Posted: Mon Jul 02, 2012 10:32 am
by scottwilkerson
On the sending machine can you verify you have the following setup with the correct IP and Token
Admin -> Outbound Transfers -> NRDP Tab
Also, under
Admin -> Outbound Transfers -> Global Options
make sure you have
Filter Mode: = Exclude Matches
Host Name Filters: =
Re: No Outbound Check Transfer...
Posted: Mon Jul 02, 2012 10:43 am
by mroter
As you can see from the log:
Code: Select all
Sending passive check data to NRDP server(s)...
Sending to NRDP target host: xxx.xxx.xxx.xxx
CMDLINE: /bin/cat /tmp/NRDPOUTsrrklN | php /usr/local/nrdp/clients/send_nrdp.php --url=http://xxx.xxx.xxx.xxx/nrdp/ --token=yyyyyyyyy --usestdin
The xxx.xxx.xxx.xxx is the correct IP and the yyyyyyyyy is the correct token (I've modified for security reason)
I also had the localhost excluded as you suggested below.
Why the --usestdin is sending "the send_nrdp.php program code" and not the data/XML?