Page 1 of 1

Issues with ack alerts, multiple sms and post-upgrade issues

Posted: Thu Apr 30, 2015 8:11 pm
by dbsaust
Hi guys,

Our version of NagiosXI has been playing up recently and we have a few issues:

1. Multiple contacts started to get 2 x SMS/Emails for service alerts over the past few days, yet the event log is suggesting only 1 event at a time. We checked with our SMS carrier and they couldn't see an issue at our end.

2. After acknowledging an alert, all of a sudden these acks would still show in the "Open service problems" window - its as if the ack didn't work even though the ack comments were clearly visible.

We decided to upgrade to the latest version of Nagios XI (from 2014R2.6 to 2014R2.7) to see if that would help, but no luck.

3. I had a problem with the upgrade where I had to remove some lines from the sudoers config file as detailed in this thread:
http://support.nagios.com/forum/viewtop ... 16&t=30826

After removing the 3 x lines for sudoers the upgrade worked ok. However we then try to apply new configuration and we are getting the same issue as we do after previous upgrade attempts.

Error such as:
Error: Could not find a service matching host name 'ftp.x.com.au' and description 'Ping' (config file '/usr/local/nagios/etc/serviceescalations.cfg', starting on line 38)

However this service escalation does not exist in our config.

I've seen this before and I applied the same fix as usual as detailed here: (remove the sudo command from config file)
http://support.nagios.com/forum/viewtop ... 16&t=31065

However this time we still get the same apply config error even after changing - previously we have never received this error after making this change.

I tried to roll-back the sudoers config change and also the change in point 2, before applying config and still the same issue.

Can you please help me to understand and fix what is going on?

Re: Issues with ack alerts, multiple sms and post-upgrade is

Posted: Fri May 01, 2015 10:33 am
by Box293
Can you please run this:

Code: Select all

tail -f /usr/local/nagiosxi/var/cmdsubsys.log
Now Apply Configuration and send us the output that is generated.

Re: Issues with ack alerts, multiple sms and post-upgrade is

Posted: Mon May 04, 2015 1:25 am
by dbsaust
Here you go - not too much to offer unfortunately:

...............^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@...
PROCESSED 0 COMMANDS

Re: Issues with ack alerts, multiple sms and post-upgrade is

Posted: Mon May 04, 2015 9:15 am
by lmiltchev
Can you run "reconfigure_nagios.sh" successfully as a nagios user?

Code: Select all

su nagios
cd /usr/local/nagiosxi/scripts
./reconfigure_nagios.sh

Re: Issues with ack alerts, multiple sms and post-upgrade is

Posted: Mon May 04, 2015 6:11 pm
by dbsaust
HI lmiltchev,

All ok except for this part:

Things look okay - No serious problems were detected during the pre-flight check
RET: 0
>>> /etc/sudoers: syntax error near line 97 <<<
>>> /etc/sudoers: syntax error near line 98 <<<
>>> /etc/sudoers: syntax error near line 100 <<<
>>> /etc/sudoers: syntax error near line 102 <<<
sudo: parse error in /etc/sudoers near line 97
sudo: no valid sudoers sources found, quitting


I have attached the sudoers file for reference.

Re: Issues with ack alerts, multiple sms and post-upgrade is

Posted: Tue May 05, 2015 9:01 am
by tgriep
Try running the following to fix the sudoers file.

Code: Select all

dos2unix /etc/sudoers
Then run the following to see if it is fixed.

Code: Select all

su nagios
cd /usr/local/nagiosxi/scripts
./reconfigure_nagios.sh

Re: Issues with ack alerts, multiple sms and post-upgrade is

Posted: Fri May 08, 2015 10:04 am
by dbsaust
Thanks that has now fixed the issue!