Page 1 of 2

Nagios 4.2.0 not working on Solaris 10

Posted: Mon Sep 05, 2016 9:10 pm
by sainudani
Hi there,
My Nagios Core is running on Solaris 10 64bit.
I have recently upgraded from version Core 3.3 to 4.1.1
After upgrade , cpu load on the system has increased tremendously (100% cpu is utilised).
And later I found this is a bug on 4.1.1

Decided to upgrade to recent version 4.2.
unfortunately I am not successful in starting Nagios after upgrade.
Below is the error that I get.

#/etc/init.d/nagios start
-n Starting nagios:
Bus Error - core dumped
CONFIG ERROR! Start aborted. Check your Nagios configuration.

Any help please?

Thanks,
Sainu Daniel

Re: Nagios 4.2.0 not working on Solaris 10

Posted: Tue Sep 06, 2016 2:41 pm
by rkennedy
Are you able to verify your configuration? Please attempt to, and post the full output. Modify the paths as needed since they may be different in your environment.

Code: Select all

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

Re: Nagios 4.2.0 not working on Solaris 10

Posted: Thu Sep 15, 2016 9:03 pm
by sainudani
Hi,
Please find below requested logs.

bash-3.2# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

Nagios Core 4.2.0
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-01-2016
License: GPL

Website: https://www.nagios.org
Reading configuration data...
Warning: use_embedded_perl_implicitly is deprecated and will be removed.
Warning: enable_embedded_perl is deprecated and will be removed.
Warning: p1_file is deprecated and will be removed.
Warning: sleep_time is deprecated and will be removed.
Warning: external_command_buffer_slots is deprecated and will be removed. All commands are always processed upon arrival
Warning: command_check_interval is deprecated and will be removed. Commands are always handled on arrival
Read main config file okay...
Warning: failure_prediction_enabled is obsoleted and no longer has any effect in host type objects (config file '/usr/local/nagios/etc/objects/templates.cfg', starting at line 49)
Warning: failure_prediction_enabled is obsoleted and no longer has any effect in service type objects (config file '/usr/local/nagios/etc/objects/templates.cfg', starting at line 162)
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
Bus Error (core dumped)
bash-3.2#


Thanks,
SD

Re: Nagios 4.2.0 not working on Solaris 10

Posted: Fri Sep 16, 2016 12:13 pm
by tmcdonald
We saw something similar on Solaris 11:

https://support.nagios.com/forum/viewto ... 52#p194452

I'll see if our C dev can comment on either thread.

Re: Nagios 4.2.0 not working on Solaris 10

Posted: Mon Sep 26, 2016 7:51 pm
by sainudani
Hi,
Any update from Dev ?
I have upgraded to latest version 4.2.1 and it started working but having high cpu usage issue as mentioned in the thread

https://support.nagios.com/forum/viewto ... 6&start=10

Re: Nagios 4.2.0 not working on Solaris 10

Posted: Tue Sep 27, 2016 4:21 pm
by lmiltchev
You could try recompiling Core with:

Code: Select all

./configure --with-iobroker=poll
If this doesn't help, try:

Code: Select all

./configure --with-iobroker=select

Re: Nagios 4.2.0 not working on Solaris 10

Posted: Sun Oct 02, 2016 12:07 am
by sainudani
Tried both but didn't help.

After running with 'select', polling has been stopped (Service status not getting updated for past 1hr) and all client services shows previous time stamp.

New error started to appear in /var/adm/messages,
[ID 702911 user.info] wproc: 'Core Worker 13757' seems to be choked. ret = -1; bufsize = 5658: errno = 11 (Resource temporarily unavailable)
[ID 702911 user.info] wproc: 'Core Worker 13759' seems to be choked. ret = -1; bufsize = 5464: errno = 11 (Resource temporarily unavailable)
[ID 702911 user.info] wproc: 'Core Worker 13762' seems to be choked. ret = -1; bufsize = 5746: errno = 11 (Resource temporarily unavailable)
sainudani Posts: 18Joined: Mon Sep 05, 2016 9:59 pm

Re: Nagios 4.2.0 not working on Solaris 10

Posted: Mon Oct 03, 2016 1:48 pm
by jfrickson
I'm going to try testing on a couple of different Solaris hosts. I'll report back as soon as I can.

Re: Nagios 4.2.0 not working on Solaris 10

Posted: Tue Oct 04, 2016 8:49 pm
by sainudani
Ok.Thanks.

Re: Nagios 4.2.0 not working on Solaris 10

Posted: Wed Oct 05, 2016 2:41 pm
by lmiltchev
I posted the issue on GitHub - https://github.com/NagiosEnterprises/na ... issues/285 to make sure it is not going to "fall in the cracks". Thank you!