Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
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?
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.
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 />
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
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?
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 '' ?
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:
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.