Thold 2.x - Thresholding/Alerting module for cacti 8.6
Moderators: Developers, Moderators
thank you, one question !
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
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
-
- Posts: 1
- Joined: Thu Oct 27, 2005 10:25 am
Polling Errors
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
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
-
- Cacti User
- Posts: 367
- Joined: Tue Apr 05, 2005 9:52 am
- Location: Munich, Germany
Re: Dead Hosts notifications
Hi,
same to me:host notification is not running.
(see http://forums.cacti.net/viewtopic.php?p=47166#47166)
greetings Torsten
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
-
- Posts: 41
- Joined: Mon Nov 07, 2005 11:21 pm
Setting Threshold for Multi-CPU machines
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.
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.
Re: Setting Threshold for Multi-CPU machines
I will see about adding the option to apply a CDEF to the value, shouldn't be hard at all to get it working.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.
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
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
-
- Posts: 41
- Joined: Mon Nov 07, 2005 11:21 pm
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
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 (146.36 KiB) Viewed 7249 times
-
- error1.jpg (43.77 KiB) Viewed 7249 times
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 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
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
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
Who is online
Users browsing this forum: No registered users and 0 guests