nagiosxi still send email even if is shutdown

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
pkrk
Posts: 27
Joined: Tue Sep 05, 2017 8:12 am

nagiosxi still send email even if is shutdown

Post by pkrk »

Hi,

I have shutdown nagiosxi , but it still send email via postfix , i had removed all entries from contacts.cfg , but i still received emails,
how can this be possible?

kr,
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: nagiosxi still send email even if is shutdown

Post by mcapra »

Postfix has it's own internal mail queue:
https://www.wirehive.com/thoughts/5-top ... ail-queue/

There's also sub-systems within Nagios XI that queue-up and ship emails. So unless the entire machine is completely and totally dead, it could have some messages still in the queue that it's churning through while the Nagios daemon is stopped. More info on that:
https://support.nagios.com/kb/article/n ... re-69.html.

There's probably a MySQL table you could truncate to stop the messages, but I'll defer to a technician for that answer.
Former Nagios employee
https://www.mcapra.com/
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: nagiosxi still send email even if is shutdown

Post by dwhitfield »

OP, what exactly did you shut down? If you just turned off the nagios service, the XI email queue could still be working, and it uses the mysqld and ndo2db processes.

Without knowing if you are using MySQL or postgres for the XI db, I can't give you specific commands, but making the assumption you are using MySQL, you could try the following:

Code: Select all

echo "truncate table xi_events; truncate table xi_meta; truncate table xi_eventqueue;" | mysql -u root -pnagiosxi nagiosxi
Can you PM me your Profile? You can download it by going to Admin > System Config > System Profile and click the ***Download Profile*** button towards the top. If for whatever reason you *cannot* download the profile, please put the output of View System Info (5.3.4+, Show Profile if older) in the thread (that will at least get us some info). This will give us access to many of the logs we would otherwise ask for individually. If security is a concern, you can unzip the profile take out what you like, and then zip it up again. We may end up needing something you remove, but we can ask for that specifically.

You can also generate a profile manually using the script at /usr/local/nagiosxi/html/includes/components/profile/getprofile.sh

That should generate a profile in /usr/local/nagiosxi/var/components/ which you can get off the server with an application such as FileZilla.

After you PM the profile, please update this thread. Updating this thread is the only way for it to show back up on our dashboard.

If you get an error that PROFILE BUILD FAILED, please see https://support.nagios.com/kb/article.p ... ategory=44
Locked