Thold 2.x - Thresholding/Alerting module for cacti 8.6

Support questions about the Threshold plugin

Moderators: Developers, Moderators

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

Re: thold 2.1a and disk monitor strange behavior

Post by cigamit »

mlist wrote:Hi john le lardon,

yes, also I think it's the highest number for the variable in source search.

I do not understand as it is possible that nobody is able of giving some suggestion. Am I the only person who has tried to send warnings for hd usage??? :(
May be it is a thold (or cacti) bug????

thanks
You are not the only one who sends warnings for HD, I do believe that the particular problem you have is because of the column in thold_data

Code: Select all

thold_hi int(50)
changing this to something like

Code: Select all

thold_hi varchar(100)
should do the trick.

I personally do not have this problem, as I have rewritten the templates and script to also return the HD% as a data source (and to not return floppies, cd-roms, ect...), which allows me to set a threshold on the % of used space. So whenever we hit 90%, it alerts me no matter what size the drive is.
mlist
Cacti User
Posts: 50
Joined: Thu May 26, 2005 3:12 pm

thold 2.1a and disk monitor strange behavior

Post by mlist »

Hi cigamit

thanks a lot for the help!!!!!!
Your suggestion is correct, this was the last thing in order to put cacti in my production environment.
Thanks Thanks!!!!

Only 2 questions:

1) Only one curiosity: Why thold_hi is set to int(50) as default? Is it a bug?

2) you told:
personally do not have this problem, as I have rewritten the templates and script to also return the HD% as a data source (and to not return floppies, cd-roms, ect...), which allows me to set a threshold on the % of used space. So whenever we hit 90%, it alerts me no matter what size the drive is.

Can you provide me a step by step guide to make the same thing?? How can I find your template and can you write all necessaries step to use it?
I ask you a guide because unfortunately I'm not a guru and I think also this could be useful for others stupid people like me.
I would like also write a manual with screenshots and steps I followed for beginners like me.

Thanks a lot!!!





:D
john le lardon
Cacti User
Posts: 52
Joined: Fri May 06, 2005 7:39 am
Location: france
Contact:

Post by john le lardon »

1) think about useless memory and faster operation, and some devloper do variable like this because don't realize the use of this variables ( in first way is for monitoring the link in network, do you have a link with more than 2GB of bandwith?)
mlist
Cacti User
Posts: 50
Joined: Thu May 26, 2005 3:12 pm

Re: thold 2.1a and disk monitor strange behavior

Post by mlist »

mlist wrote:Hi cigamit

thanks a lot for the help!!!!!!
Your suggestion is correct, this was the last thing in order to put cacti in my production environment.
Thanks Thanks!!!!

There is only another small problem that I ask you to solve; it hasn't high priority thus I can wait but it is annoying.
In current column the value is always 2147483647. I suppose I shoud change another value in the table. Can you tell me exactely what I need to change? I attach a screenshot.

I have also 2 questions:

1) Only one curiosity: Why thold_hi is set to int(50) as default? Is it a bug? Can you set it to varchar(100) as default for next release?

2) you told:
personally do not have this problem, as I have rewritten the templates and script to also return the HD% as a data source (and to not return floppies, cd-roms, ect...), which allows me to set a threshold on the % of used space. So whenever we hit 90%, it alerts me no matter what size the drive is.

Can you provide me a step by step guide to make the same thing?? How can I find your template and can you write all necessaries step to use it?
I ask you a guide because unfortunately I'm not a guru and I think also this could be useful for others stupid people like me.
I would like also write a manual with screenshots and steps I followed for beginners like me.

Thanks a lot!!!





:D
Attachments
threshold.JPG
threshold.JPG (126.23 KiB) Viewed 5532 times
mlist
Cacti User
Posts: 50
Joined: Thu May 26, 2005 3:12 pm

Post by mlist »

Hi john le lardon,

yes, I agree with you, a programmer must pay attention to declare variables and their size but, although I haven't never seen 2gb of bandwith, I think is quite common to have 80/100/200 gb of hd.

by
Marco
john le lardon
Cacti User
Posts: 52
Joined: Fri May 06, 2005 7:39 am
Location: france
Contact:

Post by john le lardon »

but it can be intesting to have a function ( change unity Bytes, kiloBytes, GigaBytes, TeraBytes ) no?
mvam
Cacti User
Posts: 87
Joined: Wed Jun 01, 2005 2:00 pm
Location: Seattle

Post by mvam »

ppollet73 wrote:Hello,
I have just installer the script, and the error is:
Cannot redeclare rrd_last() in /var/www/html/cacti/lib/thold-functions.php on line 19

any idea ?

Thankls

Pipol
i know this is old news, but i'm getting the same thing. i read the entire thread and didnt really see a solution to this. i could try a reinstall of cacti, but i'd rather not unless its unavoidable.

i'm using:

debian 3.1
apache 1.3.33
php 4.3.10-13
mysql 4.1.11-3

i get this error from the command line trying to run check-thold.php or when i try to add a new threshold via cacti.
mvam
Cacti User
Posts: 87
Joined: Wed Jun 01, 2005 2:00 pm
Location: Seattle

Post by mvam »

mvam wrote:
ppollet73 wrote:Hello,
I have just installer the script, and the error is:
Cannot redeclare rrd_last() in /var/www/html/cacti/lib/thold-functions.php on line 19

any idea ?

Thankls

Pipol
i know this is old news, but i'm getting the same thing. i read the entire thread and didnt really see a solution to this. i could try a reinstall of cacti, but i'd rather not unless its unavoidable.

i'm using:

debian 3.1
apache 1.3.33
php 4.3.10-13
mysql 4.1.11-3

i get this error from the command line trying to run check-thold.php or when i try to add a new threshold via cacti.

i made a new install of cacti and ran into the same problem.
john le lardon
Cacti User
Posts: 52
Joined: Fri May 06, 2005 7:39 am
Location: france
Contact:

Post by john le lardon »

how you have install thold ? do you have install cacti arch ? then go see the cacti arch there are two arch one with thold installed an one without thold .
john le lardon
Cacti User
Posts: 52
Joined: Fri May 06, 2005 7:39 am
Location: france
Contact:

Post by john le lardon »

how you have install thold ? do you have install cacti arch ? then go see the cacti arch there are two arch one with thold installed an one without thold .
wishbringer
Posts: 1
Joined: Thu Jun 02, 2005 7:07 am

Thold and Cactid

Post by wishbringer »

Hi,

Thanks cacti team for a great product, really something I've been looking for years now.

I am using cacti and thold using the normal poller.cmd, I want to switch to cactid but worried that this may break things.

Can someone confirm that the use of cactid poller will keep things running the way they are?

Thanks
User avatar
Pumpi
Cacti User
Posts: 259
Joined: Wed Jan 14, 2004 3:23 am
Location: Germany

Problem thold do not read current values

Post by Pumpi »

I'm running Cacti 0.8.6d with cmd.php and have installed thold [thold-cacti-0.8.6d.zip) posted by [asm].

I can't se the current value and setting low threshold to one for example shows always an alert because no date are checked.

Any ideas ?
Attachments
ScreenShot005.jpg
ScreenShot005.jpg (33.3 KiB) Viewed 5375 times
adesimone
Posts: 32
Joined: Mon Jan 24, 2005 12:46 am
Contact:

Post by adesimone »

I have been away from this project for a while -

I would appreciate if the contributors could send me a PM or email me - aurelio_desimone@yahoo.com - so I can get caught up on the fixed bugs and the exisiting ones -

I want to make sure thold will be compatable with 8.6e and 9...

thanks
Aurelio
hcamacho
Posts: 2
Joined: Tue Mar 01, 2005 11:28 am

netmap error

Post by hcamacho »

this looks really nice and have installed it with cacti verion D. and the new version of thold. i get this error though after i install netmap and try to add a device.


Notice: Undefined index: icon in /opt/cacti/tree.php on line 120

Warning: Cannot add header information - headers already sent by (output started at /opt/cacti/tree.php:120) in /opt/cacti/tree.php on line 124


THanks for your help.
john le lardon
Cacti User
Posts: 52
Joined: Fri May 06, 2005 7:39 am
Location: france
Contact:

Post by john le lardon »

Pumpi : do you have try to run poller under a terminal and give back information :)
Locked

Who is online

Users browsing this forum: No registered users and 0 guests