Page 2 of 3

Re: No Outbound Check Transfer...

Posted: Mon Jul 02, 2012 11:06 am
by scottwilkerson
Actually, this log output is different than what you showed before and it actually looks correct.

Are you receiving data on the remote machine now, or at least the unconfigured objects if they are new to the machine.

Re: No Outbound Check Transfer...

Posted: Mon Jul 02, 2012 11:49 am
by mroter
NO - I get nothing (no data and no unconfiguered objects - all is new).
I can see in the log that it tries to send to the correct url and token.
Can you please explain why the --usestdin is sending the program source and not data?

Re: No Outbound Check Transfer...

Posted: Mon Jul 02, 2012 12:00 pm
by scottwilkerson
It is sending data, the data is being cat'd and piped to the command,
/bin/cat /tmp/NRDPOUTsrrklN |
the send_nrpe.php can take data piped to it if you use the --usestdin flag

Re: No Outbound Check Transfer...

Posted: Mon Jul 02, 2012 12:09 pm
by mroter
Great, thanks I'm not that of a techi...
So how do we take it from here?
I verified that I can get data though NRDP from this remote site using the send_nrdp.sh program.
We see its sending (from the log as you've explained)
We are about to buy few NagiosXI servers (one for each site) and my multisite design depend on this feature...

Re: No Outbound Check Transfer...

Posted: Mon Jul 02, 2012 12:31 pm
by scottwilkerson
Actually, I may have found the problem looking at the output you sent previously

Can you unzip the attached file and place in /usr/local/nagiosxi/cron on the sending machine

wait a couple minutes for the cron job to start using the new file

Then run the following again and leave it run for several minutes and post the output

Code: Select all

tail -f /usr/local/nagiosxi/var/perfdataproc.log

Re: No Outbound Check Transfer...

Posted: Mon Jul 02, 2012 1:17 pm
by mroter
Please see the attaced log file.
I saw you changed the line:

Code: Select all

$cmdline="/bin/cat $tmpfname | /usr/bin/php /usr/local/nrdp/clients/send_nrdp.php 
Its using the new file but... with no effect (:
I'm closing for the day and hope you'll find a solution overnight :)

Re: No Outbound Check Transfer...

Posted: Mon Jul 02, 2012 3:24 pm
by scottwilkerson
One more thing, it seems php short tags are off on your system,

edit usr/local/nrdp/clients/send_nrdp.php and change line 2 to read

Code: Select all

<?PHP

Re: No Outbound Check Transfer...

Posted: Tue Jul 03, 2012 6:55 am
by mroter
Its working :D

Regarding
it seems php short tags are off on your system
I'm using the prebuilt v3.1 VMware macine (manually upgraded to 3.2) so its a "bug" you should look to fix.

Many thanks for your help
Matty

Re: No Outbound Check Transfer...

Posted: Wed Jul 04, 2012 2:32 am
by mroter
Now that it is working I have 2 more questions (if I may):
1. It seems checks that has no "performance data" are not sent (e.g. check_vmware for cluster/datacenter state). Correct? what do you suggest as a workaround?
2. Should I expect to see graphs of the remote NagiosXI hosts & services?

Re: No Outbound Check Transfer...

Posted: Thu Jul 05, 2012 4:56 pm
by scottwilkerson
mroter wrote:I'm using the prebuilt v3.1 VMware macine (manually upgraded to 3.2) so its a "bug" you should look to fix.
Yep, I am working on getting this in the next release.
mroter wrote:1. It seems checks that has no "performance data" are not sent (e.g. check_vmware for cluster/datacenter state). Correct? what do you suggest as a workaround?
This is correct, the easy outbound transfers in XI do rely on the checks having performance data. The alternative takes a bit more configuration and would use the obsess_over_services and obsess_over_hosts commands in the nagios.cfg along with a custom command you would have to create to submit the checks.

You can feel free to submit a feature request to our tracker if you would like to see items without performance data transferred.

mroter wrote:2. Should I expect to see graphs of the remote NagiosXI hosts & services?
:oops: another bug uncovered... I have attached a fix that will need to be unzipped and go in the /usr/local/nagiosxi/cron on all sending XI instances.

Thanks for notifying us of these!