Nagios core getting iocache error and pipe broken

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
ragu6ds
Posts: 13
Joined: Wed Apr 04, 2018 4:53 am

Nagios core getting iocache error and pipe broken

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

Re: Nagios core getting iocache error and pipe broken

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
ragu6ds
Posts: 13
Joined: Wed Apr 04, 2018 4:53 am

Re: Nagios core getting iocache error and pipe broken

Post by ragu6ds »

thank you,

is there any specific reason for this issue, is there any work around
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios core getting iocache error and pipe broken

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
ragu6ds
Posts: 13
Joined: Wed Apr 04, 2018 4:53 am

Re: Nagios core getting iocache error and pipe broken

Post by ragu6ds »

Dear Expert,

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

return a unix sh script to get data from router
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios core getting iocache error and pipe broken

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
ragu6ds
Posts: 13
Joined: Wed Apr 04, 2018 4:53 am

Re: Nagios core getting iocache error and pipe broken

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

Re: Nagios core getting iocache error and pipe broken

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked