Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Fri May 26, 2017 3:53 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Threshold with CDEF values.
PostPosted: Mon Oct 03, 2016 10:12 am 
Offline

Joined: Mon Oct 03, 2016 9:55 am
Posts: 2
Hey guys, First post here.

I'm trying something that I never did in Cacti so I'm asking for help.

I'm monitoring disk space usage of my windows servers (2k12 and 2k8). The idea was to use threshold to generate alerts when a disk usage percentage get above n%.

The first problem: There is no data source, or OID, associated with "free disk space", so I used CDEF to generate information using the Total disk space and Used disk space (default information of Host MIB - Avaiable Disk Space Graph Template). (If someone need help with this, just PM me).

The second problem: First, I thought that just retrieving the free disk in MB would be necessary, but then realized that if I used percentage on disk graphics I could just generate one template to all graphics. So I used another CDEF to this task, convert free disk to percentage.

The third problem: Threshold plugin cannot use CDEF information to generate alerts, only data templates or data sources. And here is my problem, I dont have a data source associated to free disk space or percentage of free disk space. MY question is: Is there some way to make the Threshold Plugin use CDEF information OR Associate a CDEF value as a data source so I could use it in a Threshold Template?

Sorry for my bad english, hope my question is understandable.

If someone have a solution to my problem, I would be really grateful.

Cheers.


Top
 Profile  
 
 Post subject: Re: Threshold with CDEF values.
PostPosted: Mon Oct 03, 2016 10:50 am 
Offline
Developer

Joined: Thu Apr 07, 2005 3:29 pm
Posts: 2534
Location: B/CS Texas
You don't really need a CDEF to work with percentages and you don't need "Free Disk Space" since you have both "Total" and "Used" and can do the calculation off of that.

Create threshold using the datasource for "Used Space"

goto "Data Manipulation" and change "Data Type" to "Percentage"
now under that you will have a "Percent Datasource", set this to the datasource used for "Total"

Now it will automatically calculate the "Used" disk space for you. I generally set mine to alert if it goes over 80 (which means 80% used). See attached screenshot.


Attachments:
thold_precent.png
thold_precent.png [ 62.12 KiB | Viewed 681 times ]

_________________
CactiEZ CD
Top
 Profile  
 
 Post subject: Re: Threshold with CDEF values.
PostPosted: Mon Oct 03, 2016 11:45 am 
Offline

Joined: Mon Oct 03, 2016 9:55 am
Posts: 2
Thank you, Cigamit!

I was struggling for nothing, haha, I was introduced to Cacti a few weeks ago so sometimes I do this kind of thing.

Again, thank you very much.


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

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 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