THOLD - Disk Percentage calculations

Support questions about the Threshold plugin

Moderators: Developers, Moderators

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

Post by cigamit »

The next version of thold will have built in percentage calculations. For instance you could create a thold for hdd_used. You then select "Percentage" on one of the dropdowns. A new drop down will appear with all the remaining Datasource items, in this case you would select hdd_total from that drop down. You can then set the HIGH threshold value to 90 (meaning 90%) and it will alert and display the data as that.
apperrault
Cacti User
Posts: 379
Joined: Fri Feb 16, 2007 11:37 am
Location: Emeryville, CA
Contact:

Post by apperrault »

Woo Hoo!!!

That is the only thing stopping me from installing Thold in it's current state!!!

app
[b]Cacti Version[/b] - 0.8.7b
[b]Plugin Architecture[/b] - 2.2 Beta
[b]Poller Type[/b] - CMD.php
[b]Server Info[/b] - Linux 2.6.9-78.0.1.ELsmp
[b]Web Server[/b] - Apache/2.0.52 (Red Hat)
[b]PHP[/b] - 4.3.9
[b]MySQL[/b] - 4.1.22
[b]RRDTool[/b] - 1.2.23
[b]SNMP[/b] - 5.1.2
[b]Plugins[/b][list]Global Plugin Settings (settings - v0.5)
SuperLinks (superlinks - v0.72)
Host Info (hostinfo - v0.2)
Report Creator (reports - v0.3)
Update Checker (update - v0.4)
Realtime for Cacti (realtime - v0.35)
Cacti Log View (clog - v1.1)
RRD File Cleaner (rrdclean - v0.36)
Network Discovery (discovery - v0.9)
Uptime (uptime - v0.4)[/list]
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

This actually opens the possibilities to be expanded also. For instance, the drop down that allows percentage actually has 3 options

Exact Number
CDEF
Percentages

the first is ofcourse just the number. CDEF is if you want to apply a CDEF.

What I am thinking of adding is adding another option for "Normal", which would work the way it does in the graph. So for example, you could put
1M as the high threshold, and it would actually translate that into its numerical value 1000000 or 1048576 depending on its base. It would also display it in this form also, so if you are alerting on 1M but are not breached yet, the threshold display might currently show it at 292K instead of 292000. It would also know the difference between 10KB and 10Kb, etc...
apperrault
Cacti User
Posts: 379
Joined: Fri Feb 16, 2007 11:37 am
Location: Emeryville, CA
Contact:

Post by apperrault »

Is it going to be in the SVN? I would love to do some testing. How long until it is ready?

Maybe a Christmas Gift for all!!! Ho, Ho, Ho

keep up the great work.

thanks

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

Post by cigamit »

Its ready, its just undergoing a bit of final testing before release. Its currently only in my private SVN, so I wouldn't bother searching for it just yet. I will move it over when its done.
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

cigamit wrote:Its ready, its just undergoing a bit of final testing before release. Its currently only in my private SVN, so I wouldn't bother searching for it just yet. I will move it over when its done.
Looking forward to this - sounds fantastic !
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
deu439356
Cacti User
Posts: 73
Joined: Wed Aug 13, 2008 8:08 am

Post by deu439356 »

cigamit,
You then select "Percentage" on one of the dropdowns. A new drop down will appear with all the remaining Datasource items, in this case you would select hdd_total from that drop down.
Will I be able to select a DS from a different Data Template? I have two data templates set up to use Get SNMP Data for Cisco router memory: one for memory used and one for memory free. I would like to be able to calculate the percentage of used memory. Currently, thold won't let me if the DS are from two separate data templates. I am anxiously awaiting the new THOLD! Thanks for your hard work!

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

Post by cigamit »

Nope, it is currently limited to the current datasource, since that is the only Data I can guarantee I will receive in the same polling "thread" so that I am not looking at new data for 1 DS and old data for another DS at the time of processing.
westsyde
Posts: 23
Joined: Tue Sep 23, 2008 12:44 pm

thold action

Post by westsyde »

Is the new version going to have the ability to take an action like run a script if a threshold is breached?
apperrault
Cacti User
Posts: 379
Joined: Fri Feb 16, 2007 11:37 am
Location: Emeryville, CA
Contact:

Post by apperrault »

Hi Cigamit, i was wondering how the testing was going on the new version of THold. I just installed the old version so i can start setting up alerts on disk space, and then i remembered why i hadn't installed it before, no Percentages. I was wondering when we might be able to look for the new version. I am going to uninstall what i just did until we get the new version out.

thanks

app
[b]Cacti Version[/b] - 0.8.7b
[b]Plugin Architecture[/b] - 2.2 Beta
[b]Poller Type[/b] - CMD.php
[b]Server Info[/b] - Linux 2.6.9-78.0.1.ELsmp
[b]Web Server[/b] - Apache/2.0.52 (Red Hat)
[b]PHP[/b] - 4.3.9
[b]MySQL[/b] - 4.1.22
[b]RRDTool[/b] - 1.2.23
[b]SNMP[/b] - 5.1.2
[b]Plugins[/b][list]Global Plugin Settings (settings - v0.5)
SuperLinks (superlinks - v0.72)
Host Info (hostinfo - v0.2)
Report Creator (reports - v0.3)
Update Checker (update - v0.4)
Realtime for Cacti (realtime - v0.35)
Cacti Log View (clog - v1.1)
RRD File Cleaner (rrdclean - v0.36)
Network Discovery (discovery - v0.9)
Uptime (uptime - v0.4)[/list]
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: thold action

Post by cigamit »

westsyde wrote:Is the new version going to have the ability to take an action like run a script if a threshold is breached?
This is currently slated for the version after this next one (don't want to introduce too many new features at once, makes it hard to figure what new feature broke functionality).

Current Version (these are the documented, lots of minor undocumented features)

Code: Select all

	--- 0.4.0 ---
		Bug:     Fix for multiple poller intervals, use RRD Step of Data Source instead of Polling Interval
		Feature: Add filtering to listthold.php
		Feature: Use time periods instead of number of pollings when specifying Repeat Alerts and Fail Triggers
		Feature: Time Based Threshold Checking
		Feature: Percentage Calculation
		Feature: Add Threshold Sub Tabs with Both Threshold and Host Status
		Feature: Allow Naming of Threshold Templates and Thresholds
		Feature: Allow Thresholds to be added in mass via a Data Sources dropdown
		Feature: Allow Thresholds to be added in mass via a Graph Management dropdown
		Feature: Added Background Color Legend for Multiple Interfaces
		Feature: Add Threshold creation Wizard
		Feature: Make Wizard Design Consistent
		Feature: Add Filtering to User Threshold View and Host Status View
		Feature: Allow Disable/Enable/Edit/View Graph Actions from Main Page
		Feature: Allow Edit Host from Host Status
		Feature: Enable Toggle VRULE On/Off to show breached Thresholds on the graph images
		Feature: Allow Adding Thresholds from Graphs Page
		Feature: Use Cacti User Permissions when viewing and editing Thresholds
		Feature: Allow Weekend Exemptions per Threshold
		Feature: Allow the disabling of the Restoration Email per Threshold
		Feature: Allow logging of all Threshold Breaches to Cacti Log File
		Feature: Allow logging of all Threshold creations / changing / deletions to Cacti Log File
		Feature: Allow global disabling of all Thresholds
		Feature: Allow setting of Syslog Facility for Syslog Logging
v0.5 will allow threshold escalation, different ways of alerting (scripts, snmp write, snpm trap, etc...), and a few other needed features.
marcinr
Posts: 2
Joined: Wed Feb 18, 2009 3:58 am

Re: thold action

Post by marcinr »

cigamit wrote:
westsyde wrote:Is the new version going to have the ability to take an action like run a script if a threshold is breached?
This is currently slated for the version after this next one (don't want to introduce too many new features at once, makes it hard to figure what new feature broke functionality).

Current Version (these are the documented, lots of minor undocumented features)

Code: Select all

	--- 0.4.0 ---
Where can i download v 0.4.0??
temak82
Cacti User
Posts: 59
Joined: Tue May 02, 2006 3:00 pm

Post by temak82 »

I'd like to know where you can download the latest thold version as well. :)

This also may be a dumb question, but where does it say what current version of Thold we have installed? I have looked all of over but cannot seem to find it.

Thanks
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

The current version of THOLD can be taken from either SVN, or from Cigamit's site at http://cactiusers.org

There should be a readme in the directory where you have THOLD installed which should show you the version number. If you have the latest PIA, the version will be shown under Plugin Management.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
temak82
Cacti User
Posts: 59
Joined: Tue May 02, 2006 3:00 pm

Post by temak82 »

mcutting,

Thanks again for your help. I upgraded my thold and cacti version. Saw the Percentage drop down and created a new thold, but does not seem to work correctly for some reason. I had to modify a few files to add the Total_HDD_Value and use that. The percentages now look correct.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests