Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Tue Oct 16, 2018 10:08 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: How to execute external script when threshold breaches
PostPosted: Tue Nov 11, 2014 2:49 am 
Offline

Joined: Tue Nov 11, 2014 2:44 am
Posts: 1
I have installed thold plugin and its working fine.
I am getting alert mails also.
I want to trigger a script when the threshold breaches.
Is it possible with thold plugin. If not then is there any other method we have ?


Top
 Profile  
 
 Post subject: Re: How to execute external script when threshold breaches
PostPosted: Tue Nov 11, 2014 9:15 am 
Offline
Developer

Joined: Thu Apr 07, 2005 3:29 pm
Posts: 2724
Location: B/CS Texas
Not at this time.

_________________
Report a bug
Download Releases
1.X Compatible Plugins


Top
 Profile  
 
 Post subject: Re: How to execute external script when threshold breaches
PostPosted: Fri Nov 28, 2014 5:43 am 
Offline

Joined: Fri Nov 28, 2014 5:01 am
Posts: 1
I have almost the same issue:

working instance of Cacti together with THOLD and SYSLOG. Thold messages are logged into mysql, however I need to run an external command on threshold breach, instead of sending mail. The command is sending data to an external system and is working fine when executed from the cli.
This is my alert definition:
Attachment:
syslog1.jpg
syslog1.jpg [ 191.64 KiB | Viewed 2001 times ]

However, although I can see the
"Centreon host - Traffic - eth0 [traffic_in] went above threshold of 6000 with 7161.6 at trigger 1 out of 1 - http://172.16.199.31/cacti/graph.php?local_graph_id=28&rra_id=all" message in SYSLOG "Syslogs", there is no action when the alert should have been triggered; furthermore, there are no entries in the "Alert Logs". Is there a way to see what the Syslog plugin attempts to run/execute?


Top
 Profile  
 
 Post subject: Re: How to execute external script when threshold breaches
PostPosted: Thu Jun 08, 2017 1:27 pm 
Offline
User avatar

Joined: Thu Sep 01, 2016 8:06 pm
Posts: 24
I know this is post is old, but hopefully the reply will help someone. Here is a video of how you can execute external scripts with Cacti.

http://www.virtuops.com/nochero-cacti-integration


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group