Disk space high threshold is always 2147483647 ????

Addons for Cacti and discussion about those addons

Moderators: Developers, Moderators

Post Reply
danviv
Posts: 5
Joined: Thu Sep 01, 2005 10:57 am

Disk space high threshold is always 2147483647 ????

Post by danviv »

I have installed the threshold module for Cacti (thanks to the great guys who developed it). Now i want to fix a high threshold value for diskspace of servers with Windows 2000. Whatever be the high value i enter beyond 2147483647 for high threshold value, i always get the value set as 2147483647.

Say, suppose i want to fix 3.5 gigabytes as the threshold value using 3500000000 (...alright 1000 is not 1024), it seems that the threshold module will not accept values (integers) more than 2147483647. Any turn around to overcome this problem would be very helpful? Many thanks in advance.
danviv
Posts: 5
Joined: Thu Sep 01, 2005 10:57 am

Post by danviv »

adding the screenshot for this topic...
Attachments
threshold.jpg
threshold.jpg (26.42 KiB) Viewed 4574 times
d0n7p4n1c
Posts: 5
Joined: Wed Jun 15, 2005 12:15 pm
Location: Tampa, FL

Post by d0n7p4n1c »

danviv,

I’ve been trying to setup some disk space monitoring for some Unix boxes and have run into the same thing. I’m assuming that 2147483647 is the max value that the field can handle (somebody else can confirm that, as it is an assumption on my part). I’ve been trying to edit the php script that does the snmp query so that it divides the returned value by 1073741824, but I haven’t had any luck (I’m not a programmer, so if anybody has any advice on how to do this, please share!!!).

What you may want to do for your windows box is use SNMP informant (http://www.snmp-informant.com/). The basic version is free and works great. You can get the value of free space for you drives in either Mbs or %. If you want, I’d be happy to share the templates that I created for use SNMP informant on my windows boxes.
d0n7p4n1c
Posts: 5
Joined: Wed Jun 15, 2005 12:15 pm
Location: Tampa, FL

Post by d0n7p4n1c »

Just found this post over at cactiusers.org. It has the fix for the 2147483647 limit.

http://cactiusers.org/forums/viewtopic.php?t=55

Not included in his fix, you also need to change lastread to the same as the other two.
danviv
Posts: 5
Joined: Thu Sep 01, 2005 10:57 am

Post by danviv »

dontpanic......you are a star...thanks for that link...that fixed it.
thanks also to the community at cactiusers forum
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests