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

Support questions about the Threshold plugin

Moderators: Developers, Moderators

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

Undefined offset

Post by Pumpi »

Code: Select all

Notice: Undefined offset: 0 in /usr/local/httpd/htdocs/cacti/lib/thold-functions.php on line 36
Data Source Item [fwAccepted] - Current value: [0]
I getting this error from one datasource, same for another Checkpoint firewalls works.

Any idea ?
mainstreetexpress
Posts: 11
Joined: Fri Apr 02, 2004 4:52 am

Post by mainstreetexpress »

I have successfully installed cacti 0.8.6c and THold. Everything looks fine and I have setup it up to monitor CPU usage etc

However if for example the threshold is exceeded, the Threshold 'page' does not show this, it just says 'currently triggered' as green. Am I missing something blatantly obvious?

Regards

Mark
cterpreau
Posts: 6
Joined: Tue Mar 15, 2005 9:17 am
Contact:

host up/down alerting

Post by cterpreau »

Hi all,

i'm trying to use host up/down alerting but i don't know how to set up.
Is it with ping latency ??



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

Post by Pumpi »

@ cterpreau

host up/down alerting is automatically done if you can poll & graph one value of your device.

Dead Hosts notifications is enabled per default under Cacti Settings (Alerting/Thold)

@ myself

Seems that I haven't set root rights to the tholdxxx.php files - problem fixed

@ adesimone

Will cactid be 100% supported by thold in future ? My device list is growing & growing :wink:
cterpreau
Posts: 6
Joined: Tue Mar 15, 2005 9:17 am
Contact:

Post by cterpreau »

Pumpi,

i've some ping latency graph for servers and when i disconnect them from the network i don't recieve anything.

Dead Hosts notifications is checked on settings.


Thanks !
t3d
Posts: 1
Joined: Tue Mar 15, 2005 11:09 am

solved

Post by t3d »

[quote="brain"]hi

it seems, i have found a bug, perhaps others have met this already. in the mysql table there are some column types defined as INT(50). well, on my debian box, it did not worked for numbers larger than 32 bits (so larger than int(11)). this was bad, because if u try to monitor hard disk usage, then the max value a trigger can have is around 2 gigs. and that's not so much :)

so i changed all int(50) to bigint in the table thold_data, and now it works for me. has anyone already faced this problem?

debian sarge
mysql Ver 12.22 Distrib 4.0.23, for pc-linux-gnu (i386)[/quote]

First of all, we want to express our gratitude to people who developed such a wonderful function!

I faced with a similar problem. but solved by your favor.
I'm lucky boy.
User avatar
Pumpi
Cacti User
Posts: 259
Joined: Wed Jan 14, 2004 3:23 am
Location: Germany

Post by Pumpi »

cterpreau,

have you ever get an threshold alarm mail ?
Is your sendmail working ?
cterpreau
Posts: 6
Joined: Tue Mar 15, 2005 9:17 am
Contact:

Post by cterpreau »

Hi,

yes sendmail works fine but i've contacted adesimone and he told me that up/down host checking is not working correctly for the moment.

So that's why ...


Bye.
netana
Posts: 20
Joined: Wed Feb 16, 2005 6:36 am

The check-thold function does not work

Post by netana »

I am using Windows and cacti 0.8.6c and the configuration works okay. I have the tables in the cacti database and also the "new options threshold" on my cacti website. I am also able to select a data source. The problem is that there is a problem with the check-thold. As I read in the forum it is necessary to schedule a new task check-thold ... when i did it in the command line c:\php\php.exe c:\Apache2\htdocs\cacti\thold\check-thold.php i got the following error:

<b>Notice</b>: Undefined variable: handle in <b>c:\apache2\htdocs\cacti\thold\
check-thold.php</b> on line <b>142</b><br />
<br />
<b>Warning</b>: fwrite(): supplied argument is not a valid stream resource in <
b>c:\apache2\htdocs\cacti\thold\check-thold.php</b> on line <b>142</b><br />
ERROR: opening 'c:\apache2\htdocs\cacti/rra/*_23.rrd': Invalid argument
Der Befehl "grep" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
The file c:\apache2\htdocs\cacti/log/thold.log is not writable<br />
<b>Notice</b>: Undefined variable: handle in <b>c:\apache2\htdocs\cacti\thold\
check-thold.php</b> on line <b>142</b><br />
<br />
<b>Warning</b>: fwrite(): supplied argument is not a valid stream resource in <
b>c:\apache2\htdocs\cacti\thold\check-thold.php</b> on line <b>142</b><br />
ERROR: opening 'c:\apache2\htdocs\cacti/rra/*_24.rrd': Invalid argument
ERROR: opening 'c:\apache2\htdocs\cacti/rra/*_24.rrd': Invalid argument
Der Befehl "grep" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
The file c:\apache2\htdocs\cacti/log/thold.log is not writable<br />
<b>Notice</b>: Undefined variable: handle in <b>c:\apache2\htdocs\cacti\thold\
check-thold.php</b> on line <b>142</b><br />
<br />
<b>Warning</b>: fwrite(): supplied argument is not a valid stream resource in <
b>c:\apache2\htdocs\cacti\thold\check-thold.php</b> on line <b>142</b><br />
ERROR: opening 'c:\apache2\htdocs\cacti/rra/*_42.rrd': Invalid argument
ERROR: opening 'c:\apache2\htdocs\cacti/rra/*_42.rrd': Invalid argument
Der Befehl "grep" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
The file c:\apache2\htdocs\cacti/log/thold.log is not writable<br />
<b>Notice</b>: Undefined variable: handle in <b>c:\apache2\htdocs\cacti\thold\
check-thold.php</b> on line <b>142</b><br />
<br />
<b>Warning</b>: fwrite(): supplied argument is not a valid stream resource in <
b>c:\apache2\htdocs\cacti\thold\check-thold.php</b> on line <b>142</b><br />

Thanks in advance
Netana
mainstreetexpress
Posts: 11
Joined: Fri Apr 02, 2004 4:52 am

Post by mainstreetexpress »

After successfully installing and finally getting the threshold function running and monitoring devices etc, I would now like to remove a particular process from being monitored for threshold levels.

i.e. I am monitoring the threshold level for several router interfaces, however I would like to remove this on a particular interface, whilst still wanting to see the graph output.

Apart from removing the entire data source from the 'data sources' and therefore removing the item from being graphed at all, I can't seem to do it

Any thoughts?
benhanson
Posts: 43
Joined: Tue Feb 08, 2005 8:59 pm

IIS failure with thold.php 2.1a

Post by benhanson »

So I've narrowed it down to the following code:

if (isset($_REQUEST["hostid"])) {
$hostid=$_REQUEST["hostid"];
} else {
$_REQUEST["hostid"] = "";
}

if (isset($_REQUEST["rra"])) {
$rra=$_REQUEST['rra'];
} else {
$_REQUEST["rra"] = "";
}
if (!isset($_REQUEST["action"])) { $_REQUEST["action"] = ""; }

If the first If statement is commented out, I can go to datasources:templatename/Click for thold
and the page loads fine SOMETIMES. If it does load, a refresh will usually cause IIS to freeze. With the first If uncommented, it will always freeze. If the first AND second If statements are commented out, the page loads fine, though the graph and drop down menus do not load. Commenting out the third if doesn't ever help, I just included it because it appears relevant to If's 1 and 2.

What are these doing? Is the "hostid" variable linux specific? Is isset flaky on win32?
benhanson
Posts: 43
Joined: Tue Feb 08, 2005 8:59 pm

Single vs. Double quotes with _REQUEST

Post by benhanson »

So it appears that if I change the double quotes in _REQUEST["hostid"] to single quotes, _REQUEST['hostid'] that it fails LESS. Still works consistently if the first to If statements are removed, though this kills some functionality. What's the deal with "" or '' ?
fletch
Cacti User
Posts: 132
Joined: Mon Oct 06, 2003 5:40 pm
Location: Stanford, CA

RSS feed for thresholds exceeded

Post by fletch »

Can this module do RSS feeds of the thresholds exceeded?
That'd be cool :D
fletch
Cacti User
Posts: 132
Joined: Mon Oct 06, 2003 5:40 pm
Location: Stanford, CA

cacti threshold alerting through BigBrother

Post by fletch »

We're a BigBrother & Cacti shop here.
I like the separation of duties:
BigBrother for monitoring & alerting and uptime reporting
Cacti: for historical trending

Been running bb-cacti for months.
Now I see there is a new integration module "bigcactus" with thresholds:

http://www.deadcat.net/search.php?menuo ... ter=Filter

Anyone tried it?
benhanson
Posts: 43
Joined: Tue Feb 08, 2005 8:59 pm

Fixed my IIS problem

Post by benhanson »

Installed Apache 1.3.33

It looks like IIS just isn't happy with some the code in thold.php. Removing those first 2 if statements eliminates the problem by causing other code to fail rather than execute. Removing the following for loop:
foreach ($template_data_rrds as $template_data_rrd) {.....bunch of other stuff}

keeps IIS from freezing as well, unless you refresh rapidly.
Locked

Who is online

Users browsing this forum: No registered users and 7 guests