Broken report sending constant emails

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
snapon_admin
Posts: 952
Joined: Mon Jun 10, 2013 10:39 am
Location: Kenosha, WI
Contact:

Broken report sending constant emails

Post by snapon_admin »

One of my coworkers created a scheduled report (State History) and did something wrong so that he started getting emails every 5 minutes or so. He deleted the report to try and fix the issue but is still getting the emails, and has gotten about 980 since yesterday. How do I stop the emails coming in when there's no longer a report to remove?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Broken report sending constant emails

Post by lmiltchev »

I wonder if the report was not actually removed from cron for some reason, even though it is not visible in the GUI... You can run the following command from the command line to see all of the scheduled reports:

Code: Select all

crontab -u apache -l
You can check the usernames to see if this user's report is still scheduled.

Is it possible that the report was copied to a different user? Perhaps, the "original" user deleted it, but the report is sent by someone else?

If you find the offending line in the crontab, you can remove it by editing the file:

Code: Select all

crontab -u apache -e
Hope this helps.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
snapon_admin
Posts: 952
Joined: Mon Jun 10, 2013 10:39 am
Location: Kenosha, WI
Contact:

Re: Broken report sending constant emails

Post by snapon_admin »

How do I edit that file? Sorry, not super familiar with cron.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Broken report sending constant emails

Post by lmiltchev »

When you open the file by running:

Code: Select all

crontab -u apache -e
it should open in the "default" text editor. Most probably, this is going to be "vi".

Go up/down using the arrows on the keyboard. When the cursor lines up with the line that you would like to delete, hit the "d" button on the keyboard twice. The line should be gone now. To save changes, and exit, type:

Code: Select all

:wq
and hit "Enter".

Did you find the report that you need to remove?

Note: Keep in mind that if the report was not deleted from the GUI, it would still show up in the web UI, even though it would not run.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked