URGENT! Nagios flooding mail server but mailq is empty!

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: URGENT! Nagios flooding mail server but mailq is empty!

Post by dwhitfield »

Did you recently upgrade to 5.4.3? It seems like it did not install properly. If you did upgrade recently, can you post your upgrade.log?
dfmco
Posts: 257
Joined: Wed Dec 04, 2013 11:05 am

Re: URGENT! Nagios flooding mail server but mailq is empty!

Post by dfmco »

I did upgrade. Here is the log that I think you are looking for.
You do not have the required permissions to view the files attached to this post.
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: URGENT! Nagios flooding mail server but mailq is empty!

Post by avandemore »

Please try this instead:

Code: Select all

# psql -Unagiosxi nagiosxi -c "SELECT COUNT(*) FROM xi_eventqueue;"
Previous Nagios employee
dfmco
Posts: 257
Joined: Wed Dec 04, 2013 11:05 am

Re: URGENT! Nagios flooding mail server but mailq is empty!

Post by dfmco »

[root@bmcap-nagios01 ~]# psql -Unagiosxi nagiosxi -c "SELECT COUNT(*) FROM xi_eventqueue;"
count
-------
0
(1 row)
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: URGENT! Nagios flooding mail server but mailq is empty!

Post by avandemore »

How about:

Code: Select all

# psql -Unagiosxi nagiosxi -c "SELECT COUNT(*) FROM xi_events;"
Previous Nagios employee
dfmco
Posts: 257
Joined: Wed Dec 04, 2013 11:05 am

Re: URGENT! Nagios flooding mail server but mailq is empty!

Post by dfmco »

Same
[root@bmcap-nagios01 ~]# psql -Unagiosxi nagiosxi -c "SELECT COUNT(*) FROM xi_events;"
count
-------
0
(1 row)
dfmco
Posts: 257
Joined: Wed Dec 04, 2013 11:05 am

Re: URGENT! Nagios flooding mail server but mailq is empty!

Post by dfmco »

As an FYI, we were in violation of our contract (4 days down) so I had to turn on mail again. It seems that the queues have timed out as we have not gotten any alarms. I must understand what happened and it needs to be fixed as we now owe the customer an RFO due to the amount of time this has been down.
dfmco
Posts: 257
Joined: Wed Dec 04, 2013 11:05 am

Re: URGENT! Nagios flooding mail server but mailq is empty!

Post by dfmco »

You have me thinking about the upgrade. The last several upgrades had to be done manually from the CLI as the GUI upgrade would fail. Do you think that is related?
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: URGENT! Nagios flooding mail server but mailq is empty!

Post by avandemore »

Can you do the following?

Code: Select all

# tar cJvf /tmp/log.tar.xz /usr/local/nagios/var/nagios.log /usr/local/nagios/var/archives/nagios-04-* /usr/local/nagios/var/archives/nagios-03-3*
Then send me the file /tmp/log.tar.xz

I do not think this is related to an upgrade.
Previous Nagios employee
dfmco
Posts: 257
Joined: Wed Dec 04, 2013 11:05 am

Re: URGENT! Nagios flooding mail server but mailq is empty!

Post by dfmco »

log attached
You do not have the required permissions to view the files attached to this post.
Locked