No Outbound Check Transfer...

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
mroter
Posts: 80
Joined: Sun Apr 29, 2012 12:43 pm

No Outbound Check Transfer...

Post by mroter »

:shock:
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???
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: No Outbound Check Transfer...

Post by scottwilkerson »

Can you verify that on the sending machine the perfdataproc.php cron is running

Code: Select all

ps -ef |grep /perfdataproc.php
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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
mroter
Posts: 80
Joined: Sun Apr 29, 2012 12:43 pm

Re: No Outbound Check Transfer...

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: No Outbound Check Transfer...

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
mroter
Posts: 80
Joined: Sun Apr 29, 2012 12:43 pm

Re: No Outbound Check Transfer...

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: No Outbound Check Transfer...

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
mroter
Posts: 80
Joined: Sun Apr 29, 2012 12:43 pm

Re: No Outbound Check Transfer...

Post 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
mroter
Posts: 80
Joined: Sun Apr 29, 2012 12:43 pm

Re: No Outbound Check Transfer...

Post 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:
.....
?>
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: No Outbound Check Transfer...

Post 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: =

Code: Select all

/^localhost/
/^127\.0\.0\.1/
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
mroter
Posts: 80
Joined: Sun Apr 29, 2012 12:43 pm

Re: No Outbound Check Transfer...

Post 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?
Locked