URGENT - Flush Pending Notifications?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
rkane
Posts: 114
Joined: Wed Aug 15, 2018 3:56 pm

URGENT - Flush Pending Notifications?

Post by rkane »

I have hundreds of messages backed up in the notification queue....how do I flush these. We're still receiving notifications from an outage a day ago. This is urgent, sorry for the new thread
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: URGENT - Flush Pending Notifications?

Post by scottwilkerson »

Code: Select all

echo "truncate table xi_events; truncate table xi_meta; truncate table xi_eventqueue;" | mysql -uroot -pnagiosxi nagiosxi
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
rkane
Posts: 114
Joined: Wed Aug 15, 2018 3:56 pm

Re: URGENT - Flush Pending Notifications?

Post by rkane »

scottwilkerson wrote:

Code: Select all

echo "truncate table xi_events; truncate table xi_meta; truncate table xi_eventqueue;" | mysql -uroot -pnagiosxi nagiosxi
Thank you!! Any way to check the queue and make sure it is cleared?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: URGENT - Flush Pending Notifications?

Post by scottwilkerson »

There isn't a place to see them waiting other than looking at the database tables that command just deleted.

You can see any new ones being processed though by tailing the eventman.log

Code: Select all

tail -f /usr/local/nagiosxi/var/eventman.log
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
rkane
Posts: 114
Joined: Wed Aug 15, 2018 3:56 pm

Re: URGENT - Flush Pending Notifications?

Post by rkane »

Appreciate it, want to close this thread and we can work through it on the other?
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: URGENT - Flush Pending Notifications?

Post by benjaminsmith »

Appreciate it, want to close this thread and we can work through it on the other?
Ok. Sounds good, I will go ahead and lock this post, and if you're unable to resolve this issue please use the other post. Thanks.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked