Page 1 of 1

Nagios Shutting Down

Posted: Wed Dec 02, 2015 9:26 am
by delboy1966
Is there any reason the Nagios process would shut itself down?
Its happened a few times today and I've restarted it.

The log shows the following just before it shuts down:

###############
Dec 2 14:18:51 nagla01lv nagios: wproc: 'Core Worker 25101' seems to be choked. ret = -1; bufsize = 130936: errno = 32 (Broken pipe)
Dec 2 14:18:51 nagla01lv nagios: wproc: 'Core Worker 25101' seems to be choked. ret = -1; bufsize = 36421: errno = 32 (Broken pipe)
Dec 2 14:18:51 nagla01lv nagios: wproc: 'Core Worker 25101' seems to be choked. ret = -1; bufsize = 36427: errno = 32 (Broken pipe)
Dec 2 14:18:51 nagla01lv nagios: wproc: 'Core Worker 25101' seems to be choked. ret = -1; bufsize = 36305: errno = 32 (Broken pipe)
Dec 2 14:18:51 nagla01lv nagios: wproc: Job with id '5081' doesn't exist on Core Worker 25101.
Dec 2 14:18:51 nagla01lv nagios: wproc: Job with id '5083' doesn't exist on Core Worker 25101.
Dec 2 14:18:51 nagla01lv nagios: wproc: Job with id '5085' doesn't exist on Core Worker 25101.
Dec 2 14:18:51 nagla01lv nagios: wproc: iocache_read() from Core Worker 25101 returned -1: Connection reset by peer
Dec 2 14:18:51 nagla01lv nagios: wproc: Socket to worker Core Worker 25101 broken, removing
Dec 2 14:18:51 nagla01lv nagios: Caught SIGSEGV, shutting down...
###############

It looks like its shut down from command line but I am the only one that has access to the server and haven't shut it down at all.

Using Nagios 4.1.1 with, mod_gearman and livestatus.

Thanks
Tony

Re: Nagios Shutting Down

Posted: Wed Dec 02, 2015 5:44 pm
by tgriep
For a test, can you remove the gearman and livestatus settings from the nagios.cfg file and see if the process continues to run?

Re: Nagios Shutting Down

Posted: Thu Dec 03, 2015 1:58 am
by delboy1966
I disabled both modules in the config file and restarted the Nagios process.
Within 20 minutes the process stopped again.
Seems to happen at least once an hour.

Tony

Re: Nagios Shutting Down

Posted: Thu Dec 03, 2015 10:19 am
by hsmith
How did you install Nagios, and what OS is it running on?

Re: Nagios Shutting Down

Posted: Thu Dec 03, 2015 10:31 am
by rkennedy
How many host / service checks are running on this machine? How many workers are you running with Nagios? Can you post the output of the following command -

Code: Select all

top|head -5