Page 1 of 2
problem with data replications
Posted: Mon Apr 29, 2013 12:32 pm
by ravish78
Team,
We have configured nsca between master and slave .
Monitoring on slave server is fine but the the data is not completely reflected in master server.
Getting below message OK: No data received yet.
Attached screenshot for this.
Can you please help us to rectify this.
Thanks
Ravi
Re: problem with data replications
Posted: Mon Apr 29, 2013 12:46 pm
by scottwilkerson
This won't populate until the next time the slave runs the check and sends to the master
Re: problem with data replications
Posted: Mon Apr 29, 2013 1:04 pm
by ravish78
I see below output in service-perfdata.1367258503
Copying perfdata file to /usr/local/nagios/var/spool/perfdata/service-perfdata.1367258503
Sending passive check data to NSCA server(s)...
Sending to NSCA target host: 13.145.126.165
CMDLINE: /bin/cat /tmp/NSCAOUTuDOyHJ | /usr/local/nagios/libexec/send_nsca -H 13.145.126.165 -to 10 -c /usr/local/nagios/etc/send_nsca-13.145.126.165.cfg
190 data packet(s) sent to host successfully.
Sending passive check data to NRDP server(s)...
Sending to NRDP target host: 13.145.126.165
CMDLINE: /bin/cat /tmp/NRDPOUTxiItfd | php /usr/local/nrdp/clients/send_nrdp.php --url=
https://13.145.126.165/nrdp/ --token=th1sAt0k3n --usestdin
DONE. Processed 8 files.
Re: problem with data replications
Posted: Mon Apr 29, 2013 3:14 pm
by scottwilkerson
Does the master have more results than the 2 OK's it had earlier?
Re: problem with data replications
Posted: Wed May 01, 2013 9:22 am
by ravish78
Hi,
we have imported around 200+ servers data.Now most of them are showing (Return code of 127 is out of bounds - plugin may be missing) and some of them are showing correct results.
Re: problem with data replications
Posted: Wed May 01, 2013 9:46 am
by slansing
When you say most are receiving 127 out of bounds but some are not, what are the differences between these two, are all of the services returning some ok results, and some out of bounds? Or are entire servers reporting normally, where other entire servers are reporting all 127 error codes? Are they all NSCA, or NRDP checks? You may have imported them but it is likely that they are not configured properly for the new XI server's credentials i.e "matching encryption/password/token."
Re: problem with data replications
Posted: Thu May 02, 2013 10:28 am
by ravish78
Some are returning OK and some are returning out of bound error for each server.
Around 40% results are errors.
We have imported using NSCA, NRDP checks.
Password and encrytion token are same
Re: problem with data replications
Posted: Thu May 02, 2013 10:43 am
by sreinhardt
Just to verify, can you run
on one of the remote server having issues. Let's be sure that the plugins you wish to use are actually there and have the permissions that they need.
Re: problem with data replications
Posted: Thu May 02, 2013 3:41 pm
by ravish78
We configured 3 servers as slave.Only one of the server is pushing data and as mentioned in the ticket we have some are ok but some are with return errors
(Return code of 127 is out of bounds - plugin may be missing) .
Verified Permissions and they seems to be correct.
Two of servers are not pushing data and it is showing below error in two servers
-bash-4.1$ tail -f /usr/local/nagiosxi/var/perfdataproc.log
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 28 bytes) in /usr/local/nagiosxi/cron/perfdataproc.php on line 138
ls: write error: Broken pipe
Re: problem with data replications
Posted: Thu May 02, 2013 7:36 pm
by scottwilkerson
ravish78 wrote:Two of servers are not pushing data and it is showing below error in two servers
-bash-4.1$ tail -f /usr/local/nagiosxi/var/perfdataproc.log
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 28 bytes) in /usr/local/nagiosxi/cron/perfdataproc.php on line 138
ls: write error: Broken pipe
Looks like either the server is running out of memory, or it is reaching a php memory_limit in /etc/php.ini