Page 1 of 1
URGENT - I have a problem with notifications
Posted: Tue Dec 14, 2021 11:00 am
by gaguilard
Any know bug for new XI version? - Nagios XI 5.8.7.
Notification stop to work. The server says that mail was delivered ( maillog) but there is not any email receives for clients.
Test email works.
I checked all again three times and all is ok.
Thanks for your answers.
Gastón.
Re: URGENT - I have a problem with notifications
Posted: Tue Dec 14, 2021 3:16 pm
by pbroste
Hello Gastón,
Thanks for taking the time to reach out on this issue, want to get the System Profile from you so we can see what is going on.
To send us your system profile.
- Login to the Nagios XI GUI using a web browser.
- Click the "Admin" > "System Profile" Menu
- Click the "Download Profile" button
- Save the profile.zip file and send via Private Message
Thanks,
Perry
Re: URGENT - I have a problem with notifications
Posted: Wed Dec 15, 2021 4:53 am
by gaguilard
Hi Perry:
I tried to download the system profile as you request, but I can´t download it, I received a message which says "refused to connect". I issued the procces descibed in
https://support.nagios.com/kb/article.p ... ategory=44, and after this workarround was applied, the problem with the profile download continue.
I rebooted the server too.
Is there another way to get this info from nagios and send it to you?.
Thanks in advance for your help.
Gastón.
Re: URGENT - I have a problem with notifications
Posted: Wed Dec 15, 2021 11:24 am
by gaguilard
Hi:
One point to clarlify is, notification works well for users created as contacts ( created in admin users ), but not for contacts (CMM contacts)
I tested it creating a user for a contact and it user starts to receive emails.
I think that maybe ther is some problem with the script (php?) which convert emails to smpt emails.
I do not have more ideas... My books are burning.
Thanks!
Gastón
Re: URGENT - I have a problem with notifications
Posted: Wed Dec 15, 2021 1:08 pm
by pbroste
Hello
@gaguilard
Thanks for following up, let's run the 'getprofile.sh' via the script using a 'superuser' or root.
Code: Select all
rm -rf /usr/local/nagiosxi/var/components/profile.zip
/usr/local/nagiosxi/scripts/components/getprofile.sh SUPPORT
Then send the resulting /usr/local/nagiosxi/var/components/profile.zip file via Private Message.
Without reviewing the System Profile we can have you run the Core Config Manager (CCM) re-index.
[*]Reindex the Core Configuration Manager (CCM) configs[/*]
Code: Select all
rm -rf /usr/local/nagios/etc/import/*
- 1: Terminal command list all running /bin/nagios -> ps -aux | grep -E '/bin/nagios'
- 2: Terminal command -> killall -9 nagios (or pkill nagios)
- 3: Terminal command check to see if /bin/nagios processes are stopped
- 4: Nagios XI web console
==> Core Configuration Manager (CCM)
==> Config File Management
==> [Delete Files]
==> [Write Files]
==> [Verify Files]
- 6: Core Configuration Manager (CCM)
==> Under Quick Tools
==> "Apply Configuration"
- 7: Restart nagios.service by terminal command: systemctl restart nagios
[list]
[/list]
Verify that the host and services look good in pre-flight with no errors in core by:
Code: Select all
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Please PM your updated system profile if the issue persists.
Thanks,
Perry
Re: URGENT - I have a problem with notifications
Posted: Wed Dec 15, 2021 6:40 pm
by gaguilard
Hi Perry:
I made the proccess that you propose. All run with success.
I will check the notifications emails in the morning ( now here is 00:40 AM) and I will let you know about results.
Thank you very much for your help.
Kind regards.
Gastón.
Re: URGENT - I have a problem with notifications
Posted: Thu Dec 16, 2021 6:20 am
by gaguilard
Hi Perry:
Do you received my PM?
Thank you.
Gastón
Re: URGENT - I have a problem with notifications
Posted: Thu Dec 16, 2021 12:35 pm
by pbroste
Hello
@gaguilard
Thanks for taking the time to send over the System Profile, and after review, we do see log message in eventman.log 'ERROR: User has (global) notifications disabled!' and to tackle the
database issues that we see since it could be related.
[ERROR] mysqld: Table './nagios/nagios_logentries' is marked as crashed and last (automatic?) repair failed
211210 12:28:46 [Warning] Could not increase number of max_open_files to more than 1024 (request: 1075)
We see that the 'nagios_logentries' in the database has been crashing in the past and want to have you check on the size:
Code: Select all
echo "SELECT table_name AS 'Table', round(((data_length + index_length) / 1024 / 1024), 2) 'Size in MB' FROM information_schema.TABLES WHERE table_schema IN ('nagios', 'nagiosql', 'nagiosxi');" | mysql -h 127.0.0.1 -uroot -pnagiosxi --table
If you find that the tables sizes are large you will want to truncate:
Code: Select all
mysql -u ndoutils -pn@gweb nagios -e 'TRUNCATE TABLE nagios_logentries'
mysql -u ndoutils -pn@gweb nagios -e 'TRUNCATE TABLE nagios_notifications'
Want to also take a look at the "max_open_files" issue that is logged as well and here is a support document:
If you see that your os is hitting as open file limits you may want to increase in '/etc/security/limits.conf'
Add/edit the following lines to the end of the file:
* soft nofile 10000
* hard nofile 10000
Save the file
Let's run through the database repair and let us know how it looks,
Perry