Nagios 4.2.0 not working on Solaris 10

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.
sainudani
Posts: 28
Joined: Mon Sep 05, 2016 8:59 pm

Nagios 4.2.0 not working on Solaris 10

Post 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
Last edited by dwhitfield on Mon Oct 17, 2016 9:53 am, edited 1 time in total.
Reason: marking with green check mark
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Nagios 4.2.0 not working on Solaris 10

Post 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
Former Nagios Employee
sainudani
Posts: 28
Joined: Mon Sep 05, 2016 8:59 pm

Re: Nagios 4.2.0 not working on Solaris 10

Post 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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios 4.2.0 not working on Solaris 10

Post 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.
Former Nagios employee
sainudani
Posts: 28
Joined: Mon Sep 05, 2016 8:59 pm

Re: Nagios 4.2.0 not working on Solaris 10

Post 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
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios 4.2.0 not working on Solaris 10

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
sainudani
Posts: 28
Joined: Mon Sep 05, 2016 8:59 pm

Re: Nagios 4.2.0 not working on Solaris 10

Post 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
jfrickson

Re: Nagios 4.2.0 not working on Solaris 10

Post by jfrickson »

I'm going to try testing on a couple of different Solaris hosts. I'll report back as soon as I can.
sainudani
Posts: 28
Joined: Mon Sep 05, 2016 8:59 pm

Re: Nagios 4.2.0 not working on Solaris 10

Post by sainudani »

Ok.Thanks.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios 4.2.0 not working on Solaris 10

Post 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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked