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

Support questions about the Threshold plugin

Moderators: Developers, Moderators

Locked
a2line59
Posts: 45
Joined: Mon May 23, 2005 8:20 am
Location: France

Post by a2line59 »

OK thanks Pumpi
that was a little problem for me because i want user can see graphs and threshold
i will prefer create only one user for that but if i need 2, i create 2
ChupaMe
Posts: 9
Joined: Sat Jun 25, 2005 6:40 am

Re: too high values for traffic graph

Post by ChupaMe »

ChupaMe wrote:i have a strange problem with thold. it shows me too high values for traffic graphs. all other things are working(cpu, hdd used etc.)

See the attached screenshot. I think the Current value should be something like 1800000

What can i do?
can somebody help me? http://forums.cacti.net/viewtopic.php?p ... hold#35696

cacti0.8.6c
scavenger67
Posts: 49
Joined: Fri Mar 18, 2005 7:33 am
Location: France

changing email program

Post by scavenger67 »

Hi all, i want to change the php mail that use cacti with a program that run more 'perfectly' under windows : BLAT.
Have one of you using this kind of software because, i try to change the settings in php.ini but fails.
Helps will be great.
thanks

Version used :
Apache 2.053 - Mysql 4.1.10a - rdtool 1.0.49 - Cacti 0.8.6.c - PHP 5.03 - netsnmp 5.2.1.1 - windows 2000-sp4.
a2line59
Posts: 45
Joined: Mon May 23, 2005 8:20 am
Location: France

Post by a2line59 »

i have an other question for threhold

on each switches, i graph error and discard value for inbound and outbound

can i have threshold with these values

i auto-create threshold for these devices but i obtain no value in threshold and i have some switches with errors
Sigy
Posts: 6
Joined: Tue Jun 21, 2005 3:57 pm
Location: Amsterdam-Holland

SuSe and thold

Post by Sigy »

hello all,

I'm trying to install a fresh instalation of cacti 0.8.6e on a new Suse server.
Every time i try to install thold it's ocour that this app is asking for mysql
headers. I've installed a previous version of cacti on another machine also Suse without any problems.

Can someone explain me how to get this working ?
somulss
Posts: 3
Joined: Fri Jun 10, 2005 5:29 am
Contact:

Help me please

Post by somulss »

Hi,

I am getting this error after installation

Notice: Undefined offset: 0 in /opt/apache/2.0.50/cacti/lib/thold-functions.php on line 36
prozzerg
Posts: 1
Joined: Mon Jul 18, 2005 1:32 am

Re: Help me please

Post by prozzerg »

somulss wrote:Hi,

I am getting this error after installation

Notice: Undefined offset: 0 in /opt/apache/2.0.50/cacti/lib/thold-functions.php on line 36
i'm getting this error too, using cacti 0.8.6f.

Anyone got a solution for this problem?
a2line59
Posts: 45
Joined: Mon May 23, 2005 8:20 am
Location: France

Post by a2line59 »

I have too this problem
but for me the problem is not appear after the installation but later.

i have this message :
"Notice: Undefined offset: 0 in c:\inetpub\wwwroot\cacti\graph_thold.php on line 122"

this line appears each time i have a device in threshold. So if i have 10 devices in threshold, i have this line 10 times.

thanks a lot for your help
Exo7
Cacti User
Posts: 136
Joined: Wed Jul 13, 2005 4:50 pm

Post by Exo7 »

I have made a repackage which fixes some common bugs of Thold 2.1a including :

- max integer was 2147483647 (thold_lo, thold_hi and lastread were int instead of varchar(100))
- template import was broken for Cacti 0.8.6d
- misbehaviour of weekend exemption (worked sunday but not saturday)
- not alerting when polling was above threshold.

It is a "Thold 2.1b" of some sort, compiled from various comments found in this thread.
As I am not a maintainer of Thold, I'm not sure if I can post it. I use in on Debian Sarge with Cacti 0.8.6c (should work on 0.8.6d too).
everclear
Posts: 1
Joined: Tue Jul 19, 2005 6:23 am

Post by everclear »

I monitor HTTP response times with Cacti. The numbers returned are quite small decimals and zero if the service times out. The service response times should be between 0 and 1, so the fact the threshold rounds numbers and doesn't store decimals means it won't work.

I could multiply the response times by 100, but I think that it would be good if threshold could handle decimals. With the varchar changes mentioned in the last post it just requires some changes to the round functions in thold-functions.php. I've replaced round($x) with round($x, 2) and it seems to be working.
chadd
Cacti User
Posts: 382
Joined: Thu Mar 24, 2005 3:53 pm
Location: Ocoee, Florida

Errors with cacti 0.8.6f and thold2.1a

Post by chadd »

I am getting this error message when trying to go to the next page of 'devices':

Fatal error: Call to undefined function: sanitize_search_string() in /usr/local/share/cacti/host.php on line 665

It is complaining about this piece of code:

/* clean up search string */
if (isset($_REQUEST["filter"])) {
$_REQUEST["filter"] = sanitize_search_string(get_request_var("fi
lter"));
}

Which, it's right, there is no function called 'sanitize_search_string'.. I know this was not happening before I installed thold, so I am confused..

Can anyone help? Thanks.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Replace your config.php with config.php.dist. Dont forget to make database changes.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
scavenger67
Posts: 49
Joined: Fri Mar 18, 2005 7:33 am
Location: France

same problem

Post by scavenger67 »

The witness, i got the same problem"Fatal error: Call to undefined function: sanitize_search_string() in /usr/local/share/cacti/host.php on line 665
"
you speak about replaing the config.php from tha original cacti distrib, but the problem still.
any idea ?
what you mean about database change ?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Please note "sanitize_search_string" can be found in lib/functions.php on line 1643. Have you made any modifications to functions.php? Does you apache log have any other errors? Does functions.php compile successfully "php -l <cacti>/lib/functons.php"

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
pizzaman
Posts: 7
Joined: Wed Feb 23, 2005 11:37 pm

Post by pizzaman »

Everthing else works fine with Thold, but I can't seem to get it working properly with AIX 's aixFsSize. Anyone has already had this fixed? Thanks.
Locked

Who is online

Users browsing this forum: No registered users and 2 guests