Zero Traffic Threshold Trigger

Support questions about the Threshold plugin

Moderators: Moderators, Developers

Post Reply
Author
Message
mikecarel
Cacti User
Posts: 68
Joined: Thu Jun 03, 2010 10:00 pm

Zero Traffic Threshold Trigger

#1 Post by mikecarel » Wed Oct 13, 2010 1:14 am

Hi to all;

Is it possible to create thold trigger when the interface traffic goes down to Zero or 0%?


Thanks,

Mike

User avatar
TheWitness
Developer
Posts: 14804
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Zero Traffic Threshold Trigger

#2 Post by TheWitness » Thu Oct 14, 2010 8:15 am

Of course.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Central Plugin Repository
Central Templates Repository


I'm still out there people. Getting excited for Cacti 1.2. I think it will be a great release.

mikecarel
Cacti User
Posts: 68
Joined: Thu Jun 03, 2010 10:00 pm

Re: Zero Traffic Threshold Trigger

#3 Post by mikecarel » Fri Oct 15, 2010 4:34 am

I've been trying to test on this but I can't make it work. I have a CDEF for Traffic in percent which is working for High traffic Threshold.
For a Zero Percent Trigger what should be the best approach?

I've already tried the following:
1. Threshold type : high/low , High Threshold 0, Low threshold 0, Data Type: Exact --- NOT WORKING
2. Threshold type : high/low , High Threshold 0, Low threshold 0, Data Type: Percentage, CDEF: Traffic in % --- NOT WORKING

Please help me on this.

Thanks,

Mike

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

Re: Zero Traffic Threshold Trigger

#4 Post by cigamit » Tue Oct 26, 2010 12:30 am

Try
Low threshold 1
With 0, you are saying it must go BELOW 0, which would be negative traffic.

mikecarel
Cacti User
Posts: 68
Joined: Thu Jun 03, 2010 10:00 pm

Re: Zero Traffic Threshold Trigger

#5 Post by mikecarel » Tue Oct 26, 2010 8:04 am

thanks for the reply,

I've tried the following:
1. Threshold type : high/low , High Threshold 0, Low threshold 1, Data Type: Exact --- NOT WORKING
2. Threshold type : high/low , High Threshold 0, Low threshold 1, Data Type: Percentage, CDEF: Traffic in % --- NOT WORKING

both of the triggering when it has traffic.

I'm using Thold 0.4.2.

Mike

mikecarel
Cacti User
Posts: 68
Joined: Thu Jun 03, 2010 10:00 pm

Re: Zero Traffic Threshold Trigger

#6 Post by mikecarel » Thu Oct 28, 2010 9:36 am

shame on me!!! Just recently realized that thold was counting up to 4 decimal value. I should be setting low thold value to 0.00001.

My final working config for setting a high thold of 70% and low Thold of zero:

Threshold type : high/low , High Threshold 70, Low threshold 0.00001, Data Type: Percentage, CDEF: Traffic in %

It's triggering when traffic was reaching more that 70% and also when it doesn't have traffic at all(Zero traffic).

Thanks for the tip on how to use the lowthold setting.

Mike

sukanta
Cacti User
Posts: 139
Joined: Tue Jan 26, 2010 6:12 am

Re: Zero Traffic Threshold Trigger

#7 Post by sukanta » Tue Dec 21, 2010 2:58 pm

Hi Mike,
Can you l share your % cdef as it is not working for me...showing 0 always....

My cdef=CURRENT_DATA_SOURCE,8,*,CURRENT_DS_MAXIMUM_VALUE,/,100,*

mikecarel
Cacti User
Posts: 68
Joined: Thu Jun 03, 2010 10:00 pm

Re: Zero Traffic Threshold Trigger

#8 Post by mikecarel » Thu Dec 23, 2010 3:16 am

You need to apply the patch by TheHack. Read this thread http://forums.cacti.net/viewtopic.php?f=17&t=29050


Mike

Post Reply