Page 1 of 2

NRDP don't send information

Posted: Mon Oct 10, 2016 7:04 am
by hdurans
hello,


I have a problem with nrdp, it's configure and works until some days ago.

In this moment don“t send information to other server,

this is a log perfdataproc

Code: Select all

# tail -50 /usr/local/nagiosxi/var/perfdataproc.log
Copying perfdata file to /usr/local/nagios/var/spool/perfdata/host-perfdata.1475965746
Copying perfdata file to /usr/local/nagios/var/spool/perfdata/service-perfdata.1475965746

Processing perfdata file '/usr/local/nagios/var/spool/xidpe/1475965746.perfdata.host'
Sending passive check data to NRDP server(s)...


Processing perfdata file '/usr/local/nagios/var/spool/xidpe/1475965746.perfdata.service'
Sending passive check data to NRDP server(s)...

  Sending to NRDP target host: XXX.XXX.XXX.XXX
    CMDLINE: cat /tmp/NRDPOUTpgfjPT | /usr/local/nrdp/clients/send_nrdp.sh -u http:// XXX.XXX.XXX.XXX/nrdp/ -t secret
    STDOUT: ERROR: The NRDP Server said
    RETURN CODE: 2

Copying perfdata file to /usr/local/nagios/var/spool/perfdata/host-perfdata.1475965761
Copying perfdata file to /usr/local/nagios/var/spool/perfdata/service-perfdata.1475965761

Processing perfdata file '/usr/local/nagios/var/spool/xidpe/1475965761.perfdata.host'
Sending passive check data to NRDP server(s)...
I review configuration and I don't find issue.

Re: NRDP don't send information

Posted: Mon Oct 10, 2016 3:49 pm
by dwhitfield
Can you upload a copy of /usr/local/nrdp/server/config.inc.php, scrubbing any confidential information? Alternatively, you can PM it to me.

Also, can you verify that the token in send_nrdp.sh matches the output of grep authorized_tokens /usr/local/nrdp/server/config.inc.php?

Thanks!

Re: NRDP don't send information

Posted: Wed Oct 12, 2016 8:37 am
by hdurans
thanks for your help,


the server only send information, the nrpd server don't configured. the token is correct because it works fine until some days ago.

exist other server nagios xi configurate to recive to nrdp information, this works fine because recive data of other nagios to the same way.


when I make a test connection, it's works
[root@satelite ~]# telnet IPServerPrincipal 80
Trying IPServerPrincipal ...
Connected to IPServerPrincipal .
Escape character is '^]'.
when I make a test with send_nrdp.php, it's works, but when I try with send_nrdp.sh don't do it.


Thanks.

Re: NRDP don't send information

Posted: Wed Oct 12, 2016 11:18 am
by dwhitfield
Did you recently upgrade your XI? What XI are you on now? What OS are you running? Did you recently upgrade your OS on either machine in question? I'm just trying to figure out what might have changed.

Re: NRDP don't send information

Posted: Thu Oct 13, 2016 7:34 am
by hdurans
dwhitfield wrote:Did you recently upgrade your XI? What XI are you on now? What OS are you running? Did you recently upgrade your OS on either machine in question? I'm just trying to figure out what might have changed.
I don't change anything and don't update or upgrade someone.

the information of server
Nagios XI Installation Profile

Download Profile
System:

Nagios XI Version : 2014R2.7
src-dccw-012 2.6.32-573.3.1.el6.x86_64 x86_64
CentOS release 6.7 (Final)
Gnome is not installed
Apache Information

PHP Version: 5.3.3
Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36
Server Name: 10.92.65.98
Server Address: 10.92.65.98
Server Port: 80
Date/Time

PHP Timezone: America/Bogota
PHP Time: Thu, 13 Oct 2016 07:29:01 -0500
System Time: Thu, 13 Oct 2016 07:29:01 -0500
Nagios XI Data

License ends in:

nagios (pid 2074) is running...
NPCD running (pid 2012).
ndo2db (pid 2102) is running...
CPU Load 15: 0.21
Total Hosts: 23
Total Services: 309
Function 'get_base_uri' returns: http://10.92.65.98/nagiosxi/
Function 'get_base_url' returns: http://10.92.65.98/nagiosxi/
Function 'get_backend_url(internal_call=false)' returns: http://10.92.65.98/nagiosxi/includes/co ... rofile.php
Function 'get_backend_url(internal_call=true)' returns: http://localhost/nagiosxi/backend/
Ping Test localhost

Running:
/bin/ping -c 3 localhost 2>&1
PING localhost.localdomain (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=1 ttl=64 time=0.051 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=2 ttl=64 time=0.054 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=3 ttl=64 time=0.050 ms

--- localhost.localdomain ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2000ms
rtt min/avg/max/mdev = 0.050/0.051/0.054/0.008 ms
Test wget To localhost

WGET From URL: http://localhost/nagiosxi/includes/components/ccm/
Running:
/usr/bin/wget http://localhost/nagiosxi/includes/components/ccm/
--2016-10-13 07:29:03-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: "/usr/local/nagiosxi/tmp/ccm_index.tmp"

0K ........ 645K=0.01s

2016-10-13 07:29:04 (645 KB/s) - "/usr/local/nagiosxi/tmp/ccm_index.tmp" saved [9167]

Network Settings

1: lo: mtu 65536 qdisc noqueue state UNKNOWN

link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00

inet 127.0.0.1/8 scope host lo

inet6 ::1/128 scope host

valid_lft forever preferred_lft forever

2: eth0: mtu 1500 qdisc pfifo_fast state UP qlen 1000

link/ether 00:0c:29:21:99:d9 brd ff:ff:ff:ff:ff:ff

inet 10.92.65.98/24 brd 10.92.65.255 scope global eth0

inet6 fe80::20c:29ff:fe21:99d9/64 scope link

valid_lft forever preferred_lft forever


Kernel IP routing table

Destination Gateway Genmask Flags Metric Ref Use Iface

10.92.65.0 * 255.255.255.0 U 0 0 0 eth0

link-local * 255.255.0.0 U 1002 0 0 eth0

default 10.92.65.1 0.0.0.0 UG 0 0 0 eth0

Re: NRDP don't send information

Posted: Thu Oct 13, 2016 9:44 am
by dwhitfield
hdurans wrote: the token is correct because it works fine until some days ago.
Even if you did not intend for something to change, something has changed, since it was working before. Can you verify that the token in send_nrdp.sh matches the output of grep authorized_tokens /usr/local/nrdp/server/config.inc.php?. NRDP tokens don't expire, but maybe there is a weird corruption issue going on or another admin fat-fingered a file or something.

Re: NRDP don't send information

Posted: Wed Oct 19, 2016 5:46 am
by hdurans
hi,

I upgrade the nagios xi to last version, but don't solve the problem, It's the same error,

I'm thinking the isue is in "curl" comand.

Re: NRDP don't send information

Posted: Wed Oct 19, 2016 9:22 am
by dwhitfield
Did you verify that the token in send_nrdp.sh matches the output of grep authorized_tokens /usr/local/nrdp/server/config.inc.php? I know you said you didn't change it, but I just want to verify nothing weird happened.

Re: NRDP don't send information

Posted: Thu Oct 20, 2016 7:54 am
by hdurans
Yes, I verify and the token is correct, I try change but the error it's the same.

I'm try to nsca and it's work fine.

Re: NRDP don't send information

Posted: Thu Oct 20, 2016 10:54 am
by dwhitfield
hdurans wrote: I'm try to nsca and it's work fine.
For the sake of clarity, are you saying you have resolved the issue, or are you not wanting to use NSCA? Thanks!