(SOLVED) Down System Notification

Support questions about the Threshold plugin

Moderators: Moderators, Developers

Post Reply
Author
Message
Cornel
Posts: 49
Joined: Fri Jun 27, 2014 7:19 am

(SOLVED) Down System Notification

#1 Post by Cornel » Tue Jul 01, 2014 10:12 am

Hello,
I have setup all our Remote Sites for ping ONLY, and I want to have an email when one of the Remote Sites is down.
I setup the down system notification, but I do NOT get an email when the system is down. I can receive other emails from other things like ping too high, etc.
But for a system down, I DO NOT get an email. Ive attached a screenshot of the setup. Can someone PLEASE PLEASE help me wit this one. Its very crucial I get this working. Our sites go down quite often, and I need some type of an alert, and this one seems to be the only one that might work.

I see some other posts where it says it works for them, but not sure why it wont work for me.
Im running Ubuntu Server 12.04 with Cacti 0.8.8b
Attachments
Email-Error5.JPG
Email-Error5.JPG (184.06 KiB) Viewed 2214 times
Email-Error4.JPG
Email-Error4.JPG (63.18 KiB) Viewed 2214 times
Email-Error3.JPG
Email-Error3.JPG (33.95 KiB) Viewed 2214 times
Email-Error2.JPG
Email-Error2.JPG (83.78 KiB) Viewed 2214 times
Email-Error1.JPG
Email-Error1.JPG (131.3 KiB) Viewed 2214 times
Last edited by Cornel on Fri Jul 18, 2014 7:16 am, edited 1 time in total.

cigamit
Developer
Posts: 2780
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: Down System Notification

#2 Post by cigamit » Tue Jul 01, 2014 11:55 pm

Just to start off, what do you have for Settings >> Poller.

Host Up/Down Settings
Failure Count
The number of polling intervals a host must be down before logging an error and reporting host as down.
Recovery Count
The number of polling intervals a host must remain up before returning host to an up status and issuing a notice.

Cornel
Posts: 49
Joined: Fri Jun 27, 2014 7:19 am

Re: Down System Notification

#3 Post by Cornel » Wed Jul 02, 2014 7:30 am

cigamit wrote:Just to start off, what do you have for Settings >> Poller.

Host Up/Down Settings
Failure Count
The number of polling intervals a host must be down before logging an error and reporting host as down.
Recovery Count
The number of polling intervals a host must remain up before returning host to an up status and issuing a notice.
Here you go. I attached a screenshot.
Attachments
Pic5.JPG
Pic5.JPG (150.07 KiB) Viewed 2196 times
Pic4.JPG
Pic4.JPG (167.12 KiB) Viewed 2196 times

cigamit
Developer
Posts: 2780
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: Down System Notification

#4 Post by cigamit » Wed Jul 02, 2014 9:16 am

Ok, everything looks pretty normal there. Can you do one last thing. Run this SQL query when you have a host that has been down for a bit.

Code: Select all

SELECT * FROM  `plugin_thold_host_failed` 
That will tell us if thold is even checking them and putting them in its table.

Cornel
Posts: 49
Joined: Fri Jun 27, 2014 7:19 am

Re: Down System Notification

#5 Post by Cornel » Wed Jul 02, 2014 9:27 am

cigamit wrote:Ok, everything looks pretty normal there. Can you do one last thing. Run this SQL query when you have a host that has been down for a bit.

Code: Select all

SELECT * FROM  `plugin_thold_host_failed` 
That will tell us if thold is even checking them and putting them in its table.

Sorry im a noob when it comes to this. Where can I run this command from? From inside Ubuntu Server? Or from Cacti GUI?
Sorry, really not that good with this Cacti YET.

Thanks.

cigamit
Developer
Posts: 2780
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: Down System Notification

#6 Post by cigamit » Wed Jul 02, 2014 9:35 am

You have to run that from within mysql.

Google would probably help you more, but basically
Goto Ubuntu terminal
type "mysql" (assuming the root account wasn't setup with a password, otherwise google the proper switches to supply a username/password)
you should be in the mysql prompt now, so type
use cacti; (replace cacti with the actual name of your cacti database)
then type the above command

Cornel
Posts: 49
Joined: Fri Jun 27, 2014 7:19 am

Re: Down System Notification

#7 Post by Cornel » Thu Jul 17, 2014 9:04 pm

cigamit wrote:You have to run that from within mysql.

Google would probably help you more, but basically
Goto Ubuntu terminal
type "mysql" (assuming the root account wasn't setup with a password, otherwise google the proper switches to supply a username/password)
you should be in the mysql prompt now, so type
use cacti; (replace cacti with the actual name of your cacti database)
then type the above command

OK I was able to figure out how to run that command. I attached screenshots...
Attachments
sql02.JPG
sql02.JPG (43.58 KiB) Viewed 2113 times
sql01.JPG
sql01.JPG (42.96 KiB) Viewed 2113 times

cigamit
Developer
Posts: 2780
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: Down System Notification

#8 Post by cigamit » Thu Jul 17, 2014 11:02 pm

Sorry, you need a ; on the end of any MySQL commands

Cornel
Posts: 49
Joined: Fri Jun 27, 2014 7:19 am

Re: Down System Notification

#9 Post by Cornel » Fri Jul 18, 2014 7:16 am

cigamit wrote:Sorry, you need a ; on the end of any MySQL commands
Its working. For some reason, it seems when I put certain mail settings for the server side on the Settings Tab, it wont send down system emails, specially when I try to do txt emails directly to my phone.
So, its not the system that does not work, its the setup, I gotta figure out the txt email setup, and I think its might be my ASA Firewall.
Thanks for the help, really appreciate it. I hope you could solve my routerconfig issue on the other thread, and I really appreciate that one. Backing up my router configs is very crucial, and I hate doing it manually :).
Thanks again Cigamit, really appreciate your time for this.

Richmond1985
Posts: 1
Joined: Fri Aug 16, 2019 6:51 am

Re: (SOLVED) Down System Notification

#10 Post by Richmond1985 » Fri Aug 16, 2019 6:54 am

Cornel how did you get it working? What did you change in settings? Am struggling with the same problem. Thanks in advance

Post Reply