Cactiusers.org


It is currently Mon May 21, 2012 5:02 pm




Post new topic Reply to topic  [ 7 posts ] 
 thold and hard drives 
Author Message
Post thold and hard drives
Hi community,
i have run into a problem with thold. I would like to monitor the amount of used diskspace. But aparently the maximum of "high threshold" is 2147483647. So it appears to me, that I can just monitor a used space of a hdd which is limited to 2g.

What am I doing wrong?

Thanks in advance

dagonet


Wed Aug 24, 2005 3:33 pm
Site Admin

Joined: Thu Nov 11, 2004 11:12 am
Posts: 2007
Post Re: thold and hard drives
Anonymous wrote:
Hi community,
i have run into a problem with thold. I would like to monitor the amount of used diskspace. But aparently the maximum of "high threshold" is 2147483647. So it appears to me, that I can just monitor a used space of a hdd which is limited to 2g.

What am I doing wrong?

Thanks in advance

dagonet


The problem is with the database. You need to change these columns in your database.
Code:
  `thold_hi` int(50) default NULL,
  `thold_low` int(50) default NULL,
  `lastread` int(50) default NULL,

to this
Code:
  `thold_hi` varchar(100) default NULL,
  `thold_low` varchar(100) default NULL,
  `lastread` varchar(100) default NULL,

and it should start working for you.


Wed Aug 24, 2005 6:48 pm
New User

Joined: Tue Oct 04, 2005 8:15 am
Posts: 17
Post 
Does this same principle work if I want to change 100 to 1000? or will this cause problems?

I have several Terabyte size servers I am trying to set alerts for but because of the size it won't allow me to enter all the numbers needed.


Thu Oct 13, 2005 12:58 pm
Site Admin

Joined: Thu Nov 11, 2004 11:12 am
Posts: 2007
Post 
josh wrote:
Does this same principle work if I want to change 100 to 1000? or will this cause problems?

I have several Terabyte size servers I am trying to set alerts for but because of the size it won't allow me to enter all the numbers needed.


Techincally speaking VarChar(100) should work for Terabytes, and for even much, much larger drives. The problem before was that it was an INT which could not go over 32 bit, so the largest number it could store was 4294836225. With VarChar, you should even be able to bump it down to VarChar(14) and terabyte would still work, since it is storing it as a string instead of as a binary number.


Thu Oct 13, 2005 1:47 pm
New User

Joined: Tue Oct 04, 2005 8:15 am
Posts: 17
Post 
Then any idea why in the cacti program it only lets me enter

123456789012

As the maximum number spots. Although I could do all 9's to top it out. By my calculations If I wanted a warning at say 90% used on a 1.56terabyte drive I need it to warn me at value 1551335513702.4 the way cacti is reading the information

1551335513702.4 compared to...
123456789012

Not enough number slots for me to enter it in. I get those numbers by taking Windows reading of capacity in bytes and multiplying it by .9

-Josh

I just noticed cacti reads the hard drive as 1.7237061263E+012 as the total n' such. Does that mean I need to be using a different form to enter the data in to set the alert?


Thu Oct 13, 2005 2:18 pm
Site Admin

Joined: Thu Nov 11, 2004 11:12 am
Posts: 2007
Post 
Actually, the problem isn't the database, its the form itself limiting you. I have gone and updated the plugin to fix this issue. You should be able to enter 100 characters from now on.

Please redownload the plugin, and use the new thold.php and thold_templates.php as they are the only files that changed.

Let me know how it works for you after that.


Thu Oct 13, 2005 2:47 pm
New User

Joined: Tue Oct 04, 2005 8:15 am
Posts: 17
Post 
Thanks for the quick reply.. I was able to get the number in place just fine now.

Thanks,
-Josh


Thu Oct 13, 2005 4:09 pm
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 


Who is online

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