Thold for Pecentage

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Thold for Pecentage

Post by TFC »

Hi,
I have graphic anf GPRINT that shows Utilization of an Network Interface as percentage.
In able to do this I create a CDEF that name is Percentage:

Code: Select all

cdef=CURRENT_DATA_SOURCE,8,*,CURRENT_DS_MAXIMUM_VALUE,/,100,*
And Graph is shows like
Selection_002.png
Selection_002.png (37.9 KiB) Viewed 1389 times
I try to create thold alarm that My interface utilization is over %40 aw warning and %50 critical
To do this, I Use data manipulation;
Data Type:CDEF
Threshold CDEF : Percentage
Shown below:
Selection_003.png
Selection_003.png (73.67 KiB) Viewed 1389 times
But there is no alarmcreating.Seems Thold cant read values:
Selection_005.png
Selection_005.png (33.83 KiB) Viewed 1387 times
What is wrong?
RustedKnight
Posts: 39
Joined: Fri Mar 18, 2016 8:49 am

Re: Thold for Pecentage

Post by RustedKnight »

First off your values look to be off. 2.9 meg is not 29% of a 1 gig interface, its .29%.
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Re: Thold for Pecentage

Post by TFC »

It is ifSpeed
But BW is 100Mbps. So I use CURRENT_DS_MAXIMUM_VALUE not |query_ifSpeed| to calculate utilization percentage
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests