Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Sat Dec 15, 2018 10:28 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Configuration of Disk Space Threshold
PostPosted: Thu Nov 22, 2018 5:27 am 
Offline

Joined: Mon Jul 02, 2018 8:37 am
Posts: 4
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:
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


Top
 Profile  
 
 Post subject: Re: Configuration of Disk Space Threshold
PostPosted: Fri Nov 23, 2018 9:54 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 1818
Can you post a screenshot of your exact settings of the threshold?

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Configuration of Disk Space Threshold
PostPosted: Tue Nov 27, 2018 4:57 am 
Offline

Joined: Mon Jul 02, 2018 8:37 am
Posts: 4
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%
Attachment:
Threshold_Templates.JPG
Threshold_Templates.JPG [ 89.49 KiB | Viewed 54 times ]


Also i have generate a new Device Template
Attachment:
Device_Template.JPG
Device_Template.JPG [ 113.13 KiB | Viewed 54 times ]


Add the Device to the new Template
Attachment:
Device.JPG
Device.JPG [ 153 KiB | Viewed 54 times ]


and after "Apply Threshold"
Attachment:
Threshold.JPG
Threshold.JPG [ 73.37 KiB | Viewed 54 times ]


On Server Site:
I have the following disk space (17%)
Code:
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:
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
Attachment:
Alarm.JPG
Alarm.JPG [ 78.31 KiB | Viewed 54 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


Top
 Profile  
 
 Post subject: Re: Configuration of Disk Space Threshold
PostPosted: Tue Nov 27, 2018 5:51 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 1818
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?

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Configuration of Disk Space Threshold
PostPosted: Tue Nov 27, 2018 6:38 am 
Offline

Joined: Mon Jul 02, 2018 8:37 am
Posts: 4
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:
Attachment:
HDD_Graph.JPG
HDD_Graph.JPG [ 40.61 KiB | Viewed 52 times ]


Thanks in advanced
TheBob


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

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


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