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

Support questions about the Threshold plugin

Moderators: Developers, Moderators

Locked
Markus21
Posts: 12
Joined: Tue Sep 06, 2005 4:35 am

thank you, one question !

Post by Markus21 »

the koma was a write failure,

but, i used the url : http://cactiusers.org, but not http://cactiusers.org/index.php

do you know, why the thold plugin not run under Internet Explorer,

I can´t send testmail and mail, it comes javascript error ?

Nobody can answer me this question, my firm is using windows and IE and cacti is my projekt for education,

i can´t end my project when thold not run under ie

I need really help, by this quesiton

sorry for my englisch, it´s not so good,

greats markus21
collins.don
Posts: 1
Joined: Thu Oct 27, 2005 10:25 am

Polling Errors

Post by collins.don »

I have two version of cacti installed to see which one I can use error free. They both seem to work but also both produce different errors when running poller.php

The first install is on RHEL4 with cacti-0.8.6f and thold 0.2.5 and monitor 0.4.

I did not use an RPM for install and used a fresh install. I verified poller.php worked with no errors prior to adding any thresholds and it worked fine. If I define a threshold, the threshold/alerting for this threshold work great, but the poller produces errors. Sometimes I get the undefined offset and the command not found listed below, other times I get only the command not found error. If I delete my thresholds the poller runs without errors.


OK u:0.00 s:0.00 r:1.00
OK u:0.00 s:0.00 r:1.00
OK u:0.00 s:0.00 r:1.00
OK u:0.00 s:0.00 r:1.00
OK u:0.00 s:0.00 r:1.00
OK u:0.00 s:0.00 r:1.00
OK u:0.00 s:0.00 r:1.00
OK u:0.00 s:0.00 r:1.00
Content-type: text/html
X-Powered-By: PHP/4.3.9

10/27/2005 04:11:52 PM - SYSTEM STATS: Time: 1.0192 s, Method: cmd.php, Processes: 1, Threads: N/A, Hosts: 3, Hosts/Process: 3, Data Sources 11, RRDs Processed 8
[root@vanagios cacti-0.8.6f]# sh: line 1: -e: command not found
PHP Notice: Undefined offset: 2 in /usr/local/cacti-0.8.6f/plugins/thold/thold-functions.php on line 52

-------------------------------------------------------------------------------------------------------------------

The second install is on RHEL4 with cacti-0.8.6g and thold 0.2.5 and monitor 0.4
Without any thresholds configured I receive the following errors


No log handling enabled - turning on stderr logging
Cannot find module (NONE): At line 0 in (none)

OK u:0.00 s:0.00 r:1.00
OK u:0.00 s:0.00 r:1.00
OK u:0.00 s:0.00 r:1.00
OK u:0.00 s:0.00 r:1.00
OK u:0.00 s:0.00 r:1.00
OK u:0.00 s:0.00 r:1.00
OK u:0.00 s:0.00 r:1.00
OK u:0.00 s:0.00 r:1.00
Content-type: text/html
X-Powered-By: PHP/4.3.9

10/27/2005 04:27:24 PM - SYSTEM STATS: Time:1.0213 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:11 RRDsProcessed:8
[root@vanagios cacti-0.8.6g]#
No log handling enabled - turning on stderr logging
Cannot find module (NONE): At line 0 in (none)
[root@vanagios cacti-0.8.6g]# No log handling enabled - turning on stderr logging
Cannot find module (NONE): At line 0 in (none)
No log handling enabled - turning on stderr logging
Cannot find module (NONE): At line 0 in (none)

I was told those errors could be fixed with some patched files referenced by TheWitness... The problem is those patched files do not take into consideration the plugin architecture Id like to use.

If I run php on check-thold.php manually I get

[root@vanagios thold]# php check-thold.php
Content-type: text/html
X-Powered-By: PHP/4.3.9

10/27/2005 04:40:59 PM - POLLER: Poller[0] Checking Thresholds
sh: line 1: -e: command not found
PHP Notice: Undefined offset: 2 in /usr/local/cacti-0.8.6g/plugins/thold/thold-functions.php on line 52


Any Help on either install would be greatly appreciated. I am trying to avoid using Nagios and Cacti and just use cacti as I feel it is much less administrative overhead to manage just the one system. I am hoping cigamit sees this and can help :)


Thanks

Don

collins.don@orbital.com
kslt
Cacti User
Posts: 85
Joined: Tue Aug 02, 2005 4:12 am

Post by kslt »

hello all

i cant find the answer for "my current value doesnt change".

anybody got any idea ?
torstentfk
Cacti User
Posts: 367
Joined: Tue Apr 05, 2005 9:52 am
Location: Munich, Germany

Re: Dead Hosts notifications

Post by torstentfk »

Hi,

same to me:host notification is not running.
(see http://forums.cacti.net/viewtopic.php?p=47166#47166)

greetings Torsten
routermech wrote:Dead Hosts notifications email’s

When I get the Dead Hosts notification, the email list the IP Address of the dead host. Is it possible to change this to display the Description field? I don’t have a fully qualified domain names in my hostname field, just an IP.

I have 200+- nodes in Cacti and don't have all the IP's memorized... :’(

Host[303]: 66.x.x.x ERROR: HOST EVENT: Host is DOWN Message: Host did not respond to SNMP, Host is Alive

Host[300]: 66.x.x.x ERROR: HOST EVENT: Host is DOWN Message: SNMP not performed due to setting or ping result., UDP ping timed out

-Mike
spignataro
Posts: 41
Joined: Mon Nov 07, 2005 11:21 pm

Post by spignataro »

this is a great component. I have installed all plugins from the cactiuser.org site. Very nice.
Chester
Posts: 9
Joined: Wed Nov 16, 2005 1:12 pm

Setting Threshold for Multi-CPU machines

Post by Chester »

I currently have Thold set up and running. My problem is that I am using CDEF's to graph my quad-cpu machines so they are on a 100% scale instead of a 400% scale. I need to create thresholds, but for my quad-cpu machines, my 'current' data is always 4x what it should be.

So my graphs show 20% utilization and my current value shows [80].

This means I would need to set my thresholds to 4x what I would expect them to be. While this isnt a HUGE issue, the email that thold sends to admins will report something like:

TestSvr - CPU Usage - User[cpu_user] went above threshold of 320 with 340

Instead of threshold of 80 with 85.

Not all of my machines are quad cpu, so I cannot just divide by 4 in the function.

Is there anything I can do about this? Any suggestions would be appreciated.
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: Setting Threshold for Multi-CPU machines

Post by cigamit »

Chester wrote:I currently have Thold set up and running. My problem is that I am using CDEF's to graph my quad-cpu machines so they are on a 100% scale instead of a 400% scale. I need to create thresholds, but for my quad-cpu machines, my 'current' data is always 4x what it should be.

So my graphs show 20% utilization and my current value shows [80].

This means I would need to set my thresholds to 4x what I would expect them to be. While this isnt a HUGE issue, the email that thold sends to admins will report something like:

TestSvr - CPU Usage - User[cpu_user] went above threshold of 320 with 340

Instead of threshold of 80 with 85.

Not all of my machines are quad cpu, so I cannot just divide by 4 in the function.

Is there anything I can do about this? Any suggestions would be appreciated.
I will see about adding the option to apply a CDEF to the value, shouldn't be hard at all to get it working.
kghammond
Posts: 9
Joined: Wed Nov 16, 2005 5:36 pm
Contact:

Post by kghammond »

Couple thold issues:

First, which thold to use. I started with thold 2.1a which was at the start of this thread. I have recenlty come across vers 2.6 on cactiusers.org. Which should I use? Is there an upgrade procedure to go from 2.1a to 2.6?

Second 2.1a is not quite working. It seems to be working OK, except the threshold data does not seem to be collecting any data. I just tried to specify the full path of php in the cron. That seems to have helped some with this issue. But I am getting no values in the "current" value in the threshld page.

Any other proven tips and tricks to get thold working well?

Thank You,
Kevin
spignataro
Posts: 41
Joined: Mon Nov 07, 2005 11:21 pm

Post by spignataro »

2.6 is what i use...it works pretty decently.
kslt
Cacti User
Posts: 85
Joined: Tue Aug 02, 2005 4:12 am

filter

Post by kslt »

hello to all

i have too many devices and thresholds so i really need to filter them (like in graph or device zone).
does anybody can help me to insert this feature in treshold zone ?

thanks
chewy009
Posts: 38
Joined: Wed Jun 15, 2005 1:18 pm
Location: Washington State, USA

Post by chewy009 »

I am having 2 issues after installing the thold plugin. The first one is I am unable to send emails. A screenshot is below of what I get when I try to send a test email.

The other issue is when I go to Data Sources and clicking on the template name, i get some errors on the page that is displayed. A screen shot of that is also below.

My config is as follows:

W2k3 Server
Apache 2.0.54
MySQL 4.1.12a
Cacti 0.8.6g
Cactid 0.8.6f-1
net-snmp 5.2.1-1
php 5.0.4
ActivePerl 5.8.7.813
rrdtool-cygwin-1.2.11
Cacti Plugin Architecture
Attachments
error2.jpg
error2.jpg (146.36 KiB) Viewed 7245 times
error1.jpg
error1.jpg (43.77 KiB) Viewed 7245 times
spignataro
Posts: 41
Joined: Mon Nov 07, 2005 11:21 pm

Post by spignataro »

check to make sure the file is there
chewy009
Posts: 38
Joined: Wed Jun 15, 2005 1:18 pm
Location: Washington State, USA

Post by chewy009 »

both the thold.php and thold-functions.php are there. Do either of these files need to be modified in any way? The email-test.php file is also there.
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

chewy009 wrote:I am having 2 issues after installing the thold plugin. The first one is I am unable to send emails. A screenshot is below of what I get when I try to send a test email.

The other issue is when I go to Data Sources and clicking on the template name, i get some errors on the page that is displayed. A screen shot of that is also below.

My config is as follows:

W2k3 Server
Apache 2.0.54
MySQL 4.1.12a
Cacti 0.8.6g
Cactid 0.8.6f-1
net-snmp 5.2.1-1
php 5.0.4
ActivePerl 5.8.7.813
rrdtool-cygwin-1.2.11
Cacti Plugin Architecture
There seems to be a problem with your thold-functions.php file. The plugin is correctly installed (or else you couldn't see the links etc..) All the errors messages point to thold-functions.php, so you might try replacing it again, and check and make sure the permissions on it are correct.
chewy009
Posts: 38
Joined: Wed Jun 15, 2005 1:18 pm
Location: Washington State, USA

Post by chewy009 »

when you say check the permissions, you just mean the NTFS permissions on that file, right?

Also, I replaced the file with no luck. When I open that file it says it is "Threshold plugin 2.1a for cacti 8.6c". Is this version ok to work with 8.6g of cacti? This is the newest version of the Thold plugin.

What does the part of the error "(include_path='c:\php')" mean?

I get the following when I try to Autocreate Thresholds.

Warning: main(plugins/thold/thold-functions.php) [function.main]: failed to open stream: No such file or directory in C:\Apache2\htdocs\cacti\plugins\thold\thold.php on line 18

Warning: main() [function.include]: Failed opening 'plugins/thold/thold-functions.php' for inclusion (include_path='c:\php') in C:\Apache2\htdocs\cacti\plugins\thold\thold.php on line 18

Fatal error: Call to undefined function autocreate() in C:\Apache2\htdocs\cacti\plugins\thold\thold.php on line 60
Locked

Who is online

Users browsing this forum: No registered users and 0 guests