No Outbound Check Transfer...

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: No Outbound Check Transfer...

Post 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.
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 »

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

Re: No Outbound Check Transfer...

Post 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
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 »

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

Re: No Outbound Check Transfer...

Post 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
You do not have the required permissions to view the files attached to this post.
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 »

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 :)
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: No Outbound Check Transfer...

Post 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
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 »

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

Re: No Outbound Check Transfer...

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

Re: No Outbound Check Transfer...

Post 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!
You do not have the required permissions to view the files attached to this post.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart