HI,
Currently have a distributed setup of 1 x Central XI host, 3 x NagiosXI instances & 1 x Nagios Core.
Recently upgraded all the XI hosts to 3.1 from 1.4b. All upgrades worked fine. We took the oportunity to migrate from using NSCA as the forwarding mechanism to NRDP.
All hosts are identical:
ESX VM's
RHEL5 32bit (latest security/bug fixes & enhancement updates.)
2G Mem
2 x CPU
Loads of Disk
Of the 3 downstream XI hosts, NRDP refuses to work on 1(NSCA continues to work fine). On the problem host I can:
- Run up a browser & browse to the nrdp web page on the central host ok
- Invoke the command line client manually ok
To test this we added the following to log some output to a log file just before exit(0) in the function doit (in send_nrdp.php)
******
$file = fopen("/tmp/nrdp_out.txt", "a");
fwrite($file, date("M d Y H:i:s").": $hostname, $servicename, $output\r\n");
fclose($file);
******
On the hosts that seem to work, the log gets appended to ok. On the problem host, once the outbound settings are configured & applied, there is nothing appended to the log. Running the command line tool manually appends to the log file ok.
Ive double checked the host adress & token, theyre all identical.
Firewall disabled (all)
No SELinux
So symptomatically, it seems as though even with the outbound settings configured, the actual send_nrdp.php file isnt being called.
Am I right in that all I should need to do is configure the relevant settings in the outbound settings under admin (Since we're using XI)?
Appreciate any advice
thanks
NRDP Forwarding issue
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: NRDP Forwarding issue
can I have you run the following on the machine having problems sending to see if the send is showing up.
Code: Select all
tail -f /usr/local/nagiosxi/var/perfdataproc.logRe: NRDP Forwarding issue
Hi Scott,
thanks for the response.
Looks like that logs being hit:
*******************************************************
[root@***** ~]# tail -f /usr/local/nagiosxi/var/perfdataproc.log
Processing perfdata file '/usr/local/nagios/var/spool/xidpe/1340236222.perfdata.service'
Copying perfdata file to /usr/local/nagios/var/spool/perfdata/service-perfdata.1340236222
Sending passive check data to NRDP server(s)...
Processing perfdata file '/usr/local/nagios/var/spool/xidpe/1340236222.perfdata.host'
Copying perfdata file to /usr/local/nagios/var/spool/perfdata/host-perfdata.1340236222
Sending passive check data to NRDP server(s)...
Sending to NRDP target host: [Cental Nagios Host]
CMDLINE: /bin/cat /tmp/NRDPOUTnvTovp | php /usr/local/nrdp/clients/send_nrdp.php --url=http://[Cental Nagios Host]/nrdp/ --token=token --usestdin
Processing perfdata file '/usr/local/nagios/var/spool/xidpe/1340236237.perfdata.service'
Copying perfdata file to /usr/local/nagios/var/spool/perfdata/service-perfdata.1340236237
Sending passive check data to NRDP server(s)...
Processing perfdata file '/usr/local/nagios/var/spool/xidpe/1340236237.perfdata.host'
Copying perfdata file to /usr/local/nagios/var/spool/perfdata/host-perfdata.1340236237
Sending passive check data to NRDP server(s)...
Sending to NRDP target host: [Cental Nagios Host]
CMDLINE: /bin/cat /tmp/NRDPOUTHo8dcZ | php /usr/local/nrdp/clients/send_nrdp.php --url=http://[Cental Nagios Host]/nrdp/ --token=token --usestdin
Processing perfdata file '/usr/local/nagios/var/spool/xidpe/1340236252.perfdata.service'
Copying perfdata file to /usr/local/nagios/var/spool/perfdata/service-perfdata.1340236252
Sending passive check data to NRDP server(s)...
Processing perfdata file '/usr/local/nagios/var/spool/xidpe/1340236252.perfdata.host'
Copying perfdata file to /usr/local/nagios/var/spool/perfdata/host-perfdata.1340236252
Sending passive check data to NRDP server(s)...
tail: /usr/local/nagiosxi/var/perfdataproc.log: file truncated
DONE. Processed 10 files.
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/1340236372.perfdata.host'
Copying perfdata file to /usr/local/nagios/var/spool/perfdata/host-perfdata.1340236372
Sending passive check data to NRDP server(s)...
Processing perfdata file '/usr/local/nagios/var/spool/xidpe/1340236372.perfdata.service'
Copying perfdata file to /usr/local/nagios/var/spool/perfdata/service-perfdata.1340236372
Sending passive check data to NRDP server(s)...
Sending to NRDP target host: [Cental Nagios Host]
CMDLINE: /bin/cat /tmp/NRDPOUTU4HKCj | php /usr/local/nrdp/clients/send_nrdp.php --url=http://[Cental Nagios Host]/nrdp/ --token=token --usestdin
DONE. Processed 6 files.
usestdin
Processing perfdata file '/usr/local/nagios/var/spool/xidpe/1340236417.perfdata.host'
Copying perfdata file to /usr/local/nagios/var/spool/perfdata/host-perfdata.1340236417
Sending passive check data to NRDP server(s)...
Sending to NRDP target host: [Cental Nagios Host]
CMDLINE: /bin/cat /tmp/NRDPOUTyDt6Y9 | php /usr/local/nrdp/clients/send_nrdp.php --url=http://[Cental Nagios Host]/nrdp/ --token=token --usestdin
Processing perfdata file '/usr/local/nagios/var/spool/xidpe/1340236432.perfdata.service'
Copying perfdata file to /usr/local/nagios/var/spool/perfdata/service-perfdata.1340236432
Sending passive check data to NRDP server(s)...
Processing perfdata file '/usr/local/nagios/var/spool/xidpe/1340236432.perfdata.host'
Copying perfdata file to /usr/local/nagios/var/spool/perfdata/host-perfdata.1340236432
Sending passive check data to NRDP server(s)...
Sending to NRDP target host: [Cental Nagios Host]
CMDLINE: /bin/cat /tmp/NRDPOUTcKHDwq | php /usr/local/nrdp/clients/send_nrdp.php --url=http://[Cental Nagios Host]/nrdp/ --token=token --usestdin
tail: /usr/local/nagiosxi/var/perfdataproc.log: file truncated
DONE. Processed 10 files.
tail: /usr/local/nagiosxi/var/perfdataproc.log: file truncated
********************************
same logging is occuring in the hosts that work.. Looks like that means the CMD line is being built at least
Thanks
thanks for the response.
Looks like that logs being hit:
*******************************************************
[root@***** ~]# tail -f /usr/local/nagiosxi/var/perfdataproc.log
Processing perfdata file '/usr/local/nagios/var/spool/xidpe/1340236222.perfdata.service'
Copying perfdata file to /usr/local/nagios/var/spool/perfdata/service-perfdata.1340236222
Sending passive check data to NRDP server(s)...
Processing perfdata file '/usr/local/nagios/var/spool/xidpe/1340236222.perfdata.host'
Copying perfdata file to /usr/local/nagios/var/spool/perfdata/host-perfdata.1340236222
Sending passive check data to NRDP server(s)...
Sending to NRDP target host: [Cental Nagios Host]
CMDLINE: /bin/cat /tmp/NRDPOUTnvTovp | php /usr/local/nrdp/clients/send_nrdp.php --url=http://[Cental Nagios Host]/nrdp/ --token=token --usestdin
Processing perfdata file '/usr/local/nagios/var/spool/xidpe/1340236237.perfdata.service'
Copying perfdata file to /usr/local/nagios/var/spool/perfdata/service-perfdata.1340236237
Sending passive check data to NRDP server(s)...
Processing perfdata file '/usr/local/nagios/var/spool/xidpe/1340236237.perfdata.host'
Copying perfdata file to /usr/local/nagios/var/spool/perfdata/host-perfdata.1340236237
Sending passive check data to NRDP server(s)...
Sending to NRDP target host: [Cental Nagios Host]
CMDLINE: /bin/cat /tmp/NRDPOUTHo8dcZ | php /usr/local/nrdp/clients/send_nrdp.php --url=http://[Cental Nagios Host]/nrdp/ --token=token --usestdin
Processing perfdata file '/usr/local/nagios/var/spool/xidpe/1340236252.perfdata.service'
Copying perfdata file to /usr/local/nagios/var/spool/perfdata/service-perfdata.1340236252
Sending passive check data to NRDP server(s)...
Processing perfdata file '/usr/local/nagios/var/spool/xidpe/1340236252.perfdata.host'
Copying perfdata file to /usr/local/nagios/var/spool/perfdata/host-perfdata.1340236252
Sending passive check data to NRDP server(s)...
tail: /usr/local/nagiosxi/var/perfdataproc.log: file truncated
DONE. Processed 10 files.
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/1340236372.perfdata.host'
Copying perfdata file to /usr/local/nagios/var/spool/perfdata/host-perfdata.1340236372
Sending passive check data to NRDP server(s)...
Processing perfdata file '/usr/local/nagios/var/spool/xidpe/1340236372.perfdata.service'
Copying perfdata file to /usr/local/nagios/var/spool/perfdata/service-perfdata.1340236372
Sending passive check data to NRDP server(s)...
Sending to NRDP target host: [Cental Nagios Host]
CMDLINE: /bin/cat /tmp/NRDPOUTU4HKCj | php /usr/local/nrdp/clients/send_nrdp.php --url=http://[Cental Nagios Host]/nrdp/ --token=token --usestdin
DONE. Processed 6 files.
usestdin
Processing perfdata file '/usr/local/nagios/var/spool/xidpe/1340236417.perfdata.host'
Copying perfdata file to /usr/local/nagios/var/spool/perfdata/host-perfdata.1340236417
Sending passive check data to NRDP server(s)...
Sending to NRDP target host: [Cental Nagios Host]
CMDLINE: /bin/cat /tmp/NRDPOUTyDt6Y9 | php /usr/local/nrdp/clients/send_nrdp.php --url=http://[Cental Nagios Host]/nrdp/ --token=token --usestdin
Processing perfdata file '/usr/local/nagios/var/spool/xidpe/1340236432.perfdata.service'
Copying perfdata file to /usr/local/nagios/var/spool/perfdata/service-perfdata.1340236432
Sending passive check data to NRDP server(s)...
Processing perfdata file '/usr/local/nagios/var/spool/xidpe/1340236432.perfdata.host'
Copying perfdata file to /usr/local/nagios/var/spool/perfdata/host-perfdata.1340236432
Sending passive check data to NRDP server(s)...
Sending to NRDP target host: [Cental Nagios Host]
CMDLINE: /bin/cat /tmp/NRDPOUTcKHDwq | php /usr/local/nrdp/clients/send_nrdp.php --url=http://[Cental Nagios Host]/nrdp/ --token=token --usestdin
tail: /usr/local/nagiosxi/var/perfdataproc.log: file truncated
DONE. Processed 10 files.
tail: /usr/local/nagiosxi/var/perfdataproc.log: file truncated
********************************
same logging is occuring in the hosts that work.. Looks like that means the CMD line is being built at least
Thanks
Re: NRDP Forwarding issue
HI,
well after a bit of digging post the log grabbing request, we focussed on the performance data generation.
The majority of hosts being monitored on the problem server use a hp hardware plugin - check_hp. It wasnt passing any performance data (& thats the only service they have configured). Seems the actual plugin wasn't designed to pass performance data (This plugin has worked really well for us though!). We were able to modify it to pass the relevant state within the context of the plugin as the performance data & then the flood gates opened.
So end state: NRDP is working fine on all downstream nagios servers.
So will be turning off nsca soon.
Thanks for the assistance.
L
well after a bit of digging post the log grabbing request, we focussed on the performance data generation.
The majority of hosts being monitored on the problem server use a hp hardware plugin - check_hp. It wasnt passing any performance data (& thats the only service they have configured). Seems the actual plugin wasn't designed to pass performance data (This plugin has worked really well for us though!). We were able to modify it to pass the relevant state within the context of the plugin as the performance data & then the flood gates opened.
So end state: NRDP is working fine on all downstream nagios servers.
So will be turning off nsca soon.
Thanks for the assistance.
L