Configuration of Disk Space Threshold

Support questions about the Threshold plugin

Moderators: Moderators, Developers

Post Reply
Author
Message
TheBob
Posts: 5
Joined: Mon Jul 02, 2018 8:37 am

Configuration of Disk Space Threshold

#1 Post by TheBob » Thu Nov 22, 2018 5:27 am

Dear all,

we would like to use Thresold for check if disk space are lower than 30% or has use more than 70%.
How are the procedure for that?

My test configuration:
Cacti Version 1.1.38
Create Thresold for Server (hdd_used)

Warning - High / Low Settings
No Settings

Alert - High / Low Settings
High Threshold = 70
Low Threshold = NA

Data Manipulation
Data Type = Exact Value

The Server has actual 68% disk space in use: Checked with:

Code: Select all

df / | grep / | awk '{ print $5}' | sed 's/%//g'
No Alerts accoured.
I create a File 1GB and have now 73% used disk space.
Alerts accoured
I delete the 1GB File and have again 68% used disk space
Alerts are still active

How can I solved the problem with use / or unused disk space?
Pls help
Thank you very much

wrbrgds
THeBob

netniV
Cacti Guru User
Posts: 2872
Joined: Sun Aug 27, 2017 12:05 am

Re: Configuration of Disk Space Threshold

#2 Post by netniV » Fri Nov 23, 2018 9:54 am

Can you post a screenshot of your exact settings of the threshold?

TheBob
Posts: 5
Joined: Mon Jul 02, 2018 8:37 am

Re: Configuration of Disk Space Threshold

#3 Post by TheBob » Tue Nov 27, 2018 4:57 am

Hello netniV,

sorry for delayed answer but I did some more test about that.
Here are some more infos:
I have generate some Threshold Templates for disk space from 50 to 80%
Threshold_Templates.JPG
Threshold_Templates.JPG (89.49 KiB) Viewed 417 times
Also i have generate a new Device Template
Device_Template.JPG
Device_Template.JPG (113.13 KiB) Viewed 417 times
Add the Device to the new Template
Device.JPG
Device.JPG (153 KiB) Viewed 417 times
and after "Apply Threshold"
Threshold.JPG
Threshold.JPG (73.37 KiB) Viewed 417 times
On Server Site:
I have the following disk space (17%)

Code: Select all

Filesystem                              Size  Used Avail Use% Mounted on
udev                                    2,4G     0  2,4G   0% /dev
tmpfs                                   496M  756K  495M   1% /run
/dev/mapper/subu--claust--rv4--vg-root   24G  3,7G   19G  17% /
No Threshold Alarm occured!
I add a File with 500 MB an have now 19%

Code: Select all

Filesystem                              Size  Used Avail Use% Mounted on
udev                                    2,4G     0  2,4G   0% /dev
tmpfs                                   496M  756K  495M   1% /run
/dev/mapper/subu--claust--rv4--vg-root   24G  4,2G   19G  19% /
And now i have 2 Alarms for 50 and 55% Usage
Alarm.JPG
Alarm.JPG (78.31 KiB) Viewed 417 times
I delete 500MB File and have again 17% and both alarms ware gone.

So the first question is:
Why is the alarm by 50 and 55 % if diskusage is by 17-19%
Is my configuration the right one?

Thank you for helping.

beste regards TheBob

netniV
Cacti Guru User
Posts: 2872
Joined: Sun Aug 27, 2017 12:05 am

Re: Configuration of Disk Space Threshold

#4 Post by netniV » Tue Nov 27, 2018 5:51 am

Are you using 64-bit counters or 32-bit ones? If 32-bit, the maximum size will be 2,147,483,647 and not 20,401,094,656 which is the value for 20G. So, you are likely wrapping around because it's overflowing in some way maybe?

TheBob
Posts: 5
Joined: Mon Jul 02, 2018 8:37 am

Re: Configuration of Disk Space Threshold

#5 Post by TheBob » Tue Nov 27, 2018 6:38 am

netniV wrote:Are you using 64-bit counters or 32-bit ones?
Sorry but how can I find out which one i using and how can I chanhe it?
Actual i have this graph for the Servers HDD:
HDD_Graph.JPG
HDD_Graph.JPG (40.61 KiB) Viewed 415 times
Thanks in advanced
TheBob

Post Reply