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
Nagios core getting iocache error and pipe broken
-
- 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
You may need to restart nagios.
If that fails can we see the whole nagios log starting from when the service attempts to start
Code: Select all
service nagios restart
Re: Nagios core getting iocache error and pipe broken
thank you,
is there any specific reason for this issue, is there any work around
is there any specific reason for this issue, is there any work around
-
- 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
To be honest I've never seen this error before. Is this a stock install or have you customized it with addons?ragu6ds wrote:thank you,
is there any specific reason for this issue, is there any work around
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
Dear Expert,
am getting huge volume of data while monitoring router device....
return a unix sh script to get data from router
am getting huge volume of data while monitoring router device....
return a unix sh script to get data from router
-
- 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
I don't understand the questionragu6ds wrote: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
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.
[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.
-
- 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
Well we would need to see the whole command that it is executing to know for sure, but this says a lot
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
Code: Select all
[1530597742] Warning: Return code of 160 for check of service 'routerservice' on host 'router' was out of bounds.
Nagios Plugins Development Guidelines
https://nagios-plugins.org/doc/guidelines.html