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?
Issues with ack alerts, multiple sms and post-upgrade issues
Issues with ack alerts, multiple sms and post-upgrade issues
Last edited by dbsaust on Fri May 08, 2015 10:05 am, edited 1 time in total.
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Issues with ack alerts, multiple sms and post-upgrade is
Can you please run this:
Now Apply Configuration and send us the output that is generated.
Code: Select all
tail -f /usr/local/nagiosxi/var/cmdsubsys.logAs of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Issues with ack alerts, multiple sms and post-upgrade is
Here you go - not too much to offer unfortunately:
...............^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@...
PROCESSED 0 COMMANDS
...............^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@...
PROCESSED 0 COMMANDS
Re: Issues with ack alerts, multiple sms and post-upgrade is
Can you run "reconfigure_nagios.sh" successfully as a nagios user?
Code: Select all
su nagios
cd /usr/local/nagiosxi/scripts
./reconfigure_nagios.shBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Issues with ack alerts, multiple sms and post-upgrade is
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.
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.
You do not have the required permissions to view the files attached to this post.
Re: Issues with ack alerts, multiple sms and post-upgrade is
Try running the following to fix the sudoers file.
Then run the following to see if it is fixed.
Code: Select all
dos2unix /etc/sudoersCode: Select all
su nagios
cd /usr/local/nagiosxi/scripts
./reconfigure_nagios.sh
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Issues with ack alerts, multiple sms and post-upgrade is
Thanks that has now fixed the issue!