Page 1 of 1

Nagios core getting iocache error and pipe broken

Posted: Fri Jun 29, 2018 4:57 am
by ragu6ds
Dear Expert,

I have installed nagios core 4.3.4

after configuring device getting below error and not able to proceed, no services are running

[1530261690] wproc: iocache_read() from Core Worker 126257 returned -1: Connection reset by peer
[1530261690] wproc: Socket to worker Core Worker 126257 broken, removing
[1530261690] wproc: iocache_read() from Core Worker 126256 returned -1: Connection reset by peer
[1530261690] wproc: Socket to worker Core Worker 126256 broken, removing
[1530261692] Unable to send check for host 'service1' to worker (ret=-2)
[1530261696] Unable to run check for service 'service1' on host 'service1'
[1530261698] Unable to send check for host 'service2 to worker (ret=-2)
[1530261698] Unable to run check for service 'service2' on host 'service2'


please help me in this regard, it will be great help

thanks in advance

Re: Nagios core getting iocache error and pipe broken

Posted: Fri Jun 29, 2018 10:56 am
by scottwilkerson
You may need to restart nagios.

Code: Select all

service nagios restart
If that fails can we see the whole nagios log starting from when the service attempts to start

Re: Nagios core getting iocache error and pipe broken

Posted: Fri Jun 29, 2018 1:12 pm
by ragu6ds
thank you,

is there any specific reason for this issue, is there any work around

Re: Nagios core getting iocache error and pipe broken

Posted: Fri Jun 29, 2018 1:36 pm
by scottwilkerson
ragu6ds wrote:thank you,

is there any specific reason for this issue, is there any work around
To be honest I've never seen this error before. Is this a stock install or have you customized it with addons?

It appears the workers are just dying.

Also, can you send this
scottwilkerson wrote:If that fails can we see the whole nagios log starting from when the service attempts to start

Re: Nagios core getting iocache error and pipe broken

Posted: Mon Jul 02, 2018 3:04 am
by ragu6ds
Dear Expert,

am getting huge volume of data while monitoring router device....

return a unix sh script to get data from router

Re: Nagios core getting iocache error and pipe broken

Posted: Mon Jul 02, 2018 10:50 am
by scottwilkerson
ragu6ds wrote:Dear Expert,

am getting huge volume of data while monitoring router device....

return a unix sh script to get data from router
I don't understand the question

Re: Nagios core getting iocache error and pipe broken

Posted: Tue Jul 03, 2018 12:58 am
by ragu6ds
created a plugin to fetch router data, after adding this service am getting this error

[1530597682] wproc: SERVICE PERFDATA job 77 from worker Core Worker 44868 is a non-check helper but exited with return code 7
[1530597682] wproc: early_timeout=0; exited_ok=1; wait_status=1792; error_code=0;
[1530597682] wproc: stderr line 01: execvp(/bin/sh, ...) failed. errno is 7: Argument list too long
[1530597742] Warning: Return code of 160 for check of service 'routerservice' on host 'router' was out of bounds.

Re: Nagios core getting iocache error and pipe broken

Posted: Tue Jul 03, 2018 9:19 am
by scottwilkerson
Well we would need to see the whole command that it is executing to know for sure, but this says a lot

Code: Select all

[1530597742] Warning: Return code of 160 for check of service 'routerservice' on host 'router' was out of bounds.
your script exited with an exit code of 160, and valid exit codes are only 0,1,2,3

Nagios Plugins Development Guidelines
https://nagios-plugins.org/doc/guidelines.html