read() returned error 11
Posted: Thu Dec 15, 2016 6:12 am
Hi,
those strange things DrydenK described in https://support.nagios.com/forum/viewto ... =7&t=39856 are happening to me, too. I'm running nagios 4.2.4 on Oralce Linux Server release 6.8.
First of all, I don't understand why nagios is writing to /var/log/messages. This should be forbidden by use_syslog=0 in nagios.cfg. After setting debug_level=4 nagios does not write anything into nagios.debug. A possible reason for this behavior might be, that nagios has detected the service to be flapping.
The service that produces this output to /var/log/messages should check the syslog for the occurence of the string "error". Nagios is allowed to read syslog:
-rw-r--r-- 1 root root 3903114 Dec 15 11:33 /var/log/messages
While nagios is writing continously this blocks of 12 errors
Dec 15 11:21:53 nagsrv01 nagios: job 157 (pid=11009): read() returned error 11
Dec 15 11:21:53 nagsrv01 nagios: job 157 (pid=11013): read() returned error 11
Dec 15 11:21:53 nagsrv01 nagios: job 157 (pid=11015): read() returned error 11
Dec 15 11:21:53 nagsrv01 nagios: job 158 (pid=11019): read() returned error 11
Dec 15 11:21:53 nagsrv01 nagios: job 157 (pid=11010): read() returned error 11
Dec 15 11:21:53 nagsrv01 nagios: job 158 (pid=11016): read() returned error 11
Dec 15 11:21:53 nagsrv01 nagios: job 157 (pid=11014): read() returned error 11
Dec 15 11:21:53 nagsrv01 nagios: job 157 (pid=11011): read() returned error 11
Dec 15 11:21:53 nagsrv01 nagios: job 158 (pid=11018): read() returned error 11
Dec 15 11:21:53 nagsrv01 nagios: job 158 (pid=11017): read() returned error 11
Dec 15 11:21:53 nagsrv01 nagios: job 157 (pid=11008): read() returned error 11
Dec 15 11:21:53 nagsrv01 nagios: job 157 (pid=11012): read() returned error 11
it will find the string "error" of course. And so nagios makes the service flapping itself.
install environment:
Oralce Linux Server release 6.8, fully updated
Nagios Core 4.2.4 installed from tar-ball
Server with 16GB RAM, 8 CPU cores
How can I prevent nagios from writing into my syslog???
Thanks in advance,
arenist
those strange things DrydenK described in https://support.nagios.com/forum/viewto ... =7&t=39856 are happening to me, too. I'm running nagios 4.2.4 on Oralce Linux Server release 6.8.
First of all, I don't understand why nagios is writing to /var/log/messages. This should be forbidden by use_syslog=0 in nagios.cfg. After setting debug_level=4 nagios does not write anything into nagios.debug. A possible reason for this behavior might be, that nagios has detected the service to be flapping.
The service that produces this output to /var/log/messages should check the syslog for the occurence of the string "error". Nagios is allowed to read syslog:
-rw-r--r-- 1 root root 3903114 Dec 15 11:33 /var/log/messages
While nagios is writing continously this blocks of 12 errors
Dec 15 11:21:53 nagsrv01 nagios: job 157 (pid=11009): read() returned error 11
Dec 15 11:21:53 nagsrv01 nagios: job 157 (pid=11013): read() returned error 11
Dec 15 11:21:53 nagsrv01 nagios: job 157 (pid=11015): read() returned error 11
Dec 15 11:21:53 nagsrv01 nagios: job 158 (pid=11019): read() returned error 11
Dec 15 11:21:53 nagsrv01 nagios: job 157 (pid=11010): read() returned error 11
Dec 15 11:21:53 nagsrv01 nagios: job 158 (pid=11016): read() returned error 11
Dec 15 11:21:53 nagsrv01 nagios: job 157 (pid=11014): read() returned error 11
Dec 15 11:21:53 nagsrv01 nagios: job 157 (pid=11011): read() returned error 11
Dec 15 11:21:53 nagsrv01 nagios: job 158 (pid=11018): read() returned error 11
Dec 15 11:21:53 nagsrv01 nagios: job 158 (pid=11017): read() returned error 11
Dec 15 11:21:53 nagsrv01 nagios: job 157 (pid=11008): read() returned error 11
Dec 15 11:21:53 nagsrv01 nagios: job 157 (pid=11012): read() returned error 11
it will find the string "error" of course. And so nagios makes the service flapping itself.
install environment:
Oralce Linux Server release 6.8, fully updated
Nagios Core 4.2.4 installed from tar-ball
Server with 16GB RAM, 8 CPU cores
How can I prevent nagios from writing into my syslog???
Thanks in advance,
arenist