Unable to receive alerts from Thold
Moderators: Developers, Moderators
Unable to receive alerts from Thold
I am new to Cacti, i found this tool very useful for my network. I installed cacti -0.8.7h and PA - 0.8.7h -PA-3.0 Version. Settings 0.71 and thold 0.4.7-1. Cacti is working fine. But thold is not sending email alerts. i applied threshold for monitoring the number of process in a server. In Threshold tab current level gets updated correctly and exceeding the High value specified, but i am not getting emails. Test email i am getting correctly. i am not able to see any log for THOLD too in log/cacti.log. I am not able to trace where i am going wrong. Kindly help.
Prasanna
Thanks for your quick reply. But the same problem exists. I have enclosed the screenshot of my setting.
Prasanna
Prasanna
Thanks for your quick reply. But the same problem exists. I have enclosed the screenshot of my setting.
Prasanna
Last edited by escort146 on Thu Oct 20, 2011 8:39 am, edited 1 time in total.
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Unable to receive alerts from Thold
The problem is resolved by v0.4.8-1 located here: http://docs.cacti.net/plugin:thold?&#download
TheWitness
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?
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?
Re: Unable to receive alerts from Thold
Thanks for your quick reply. But i am still facing the same issue. I have enclosed my setting kindly go through.
Prasanna
Prasanna
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Unable to receive alerts from Thold
And you upgraded to 0.4.8-1?
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?
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?
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Unable to receive alerts from Thold
Show the log page for this threshold.
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?
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?
Re: Unable to receive alerts from Thold
I have enclosed the Threshold Log screenshoot. I checked the log file log/cacti.log i dont see any log related to "THOLD" but thold database tables are being updated. I feel the alert function of thold is not being called.
P Prasanna
P Prasanna
- Attachments
-
- threshold1.JPG (50.84 KiB) Viewed 3615 times
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Unable to receive alerts from Thold
That's a problem. It looks like thold is not quite functioning. You should see log messages like this:
Do you find anything in the Apache Error Log. Or can you edit the CLI version of the PHP.INI file and uncomment the "error_log" and change to this:
Then watch that file for errors.
TheWitness
Code: Select all
10/21/2011 08:10:04 AM - SYSTEM THOLD STATS: Time:0.3230 Tholds:37 Hosts:0
Code: Select all
error_log=/tmp/php.log
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?
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?
Re: Unable to receive alerts from Thold
Hi,
In my http error log i can find this.
[client x.x.x.x] PHP Notice: Undefined variable: item in X/cacti/plugins/thold/thold_functions.php on line 1126, referer: http://x/cacti/plugins/thold/thold_templates.php
[client x.x.x.x] PHP Notice: Undefined variable: item in X/cacti/plugins/thold/thold_functions.php on line 1126, referer: http://x/cacti/plugins/thold/thold_temp ... =edit&id=1
P Prasanna
In my http error log i can find this.
[client x.x.x.x] PHP Notice: Undefined variable: item in X/cacti/plugins/thold/thold_functions.php on line 1126, referer: http://x/cacti/plugins/thold/thold_templates.php
[client x.x.x.x] PHP Notice: Undefined variable: item in X/cacti/plugins/thold/thold_functions.php on line 1126, referer: http://x/cacti/plugins/thold/thold_temp ... =edit&id=1
P Prasanna
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Unable to receive alerts from Thold
Edit that line and change the '$item' to '$thold'. Keep that log going, as this would only affect 'Warning' type thold notifications.
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?
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?
Re: Unable to receive alerts from Thold
Hi
Thanks for your fast reply, but still the same remains, but i found one more error from syslog error file
Oct 21 18:45:02 x php: PHP Fatal error: Call to undefined function: log_cacti_stats() in x/cacti/tcacti/cacti/poller.php on line 379
P Prasanna
Thanks for your fast reply, but still the same remains, but i found one more error from syslog error file
Oct 21 18:45:02 x php: PHP Fatal error: Call to undefined function: log_cacti_stats() in x/cacti/tcacti/cacti/poller.php on line 379
P Prasanna
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Unable to receive alerts from Thold
That sounds more significant. Are you sure your configuration is not hosed?
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?
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?
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Unable to receive alerts from Thold
If you are running PHP4, you need to upgrade to PHP5. We don't really support PHP4 anymore.
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?
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?
Re: Unable to receive alerts from Thold
I have the same problem, but I am using PHP5, Cacti 0.8.7g, and the latest release of thold (thold-v0.4.8-1). I have no errors reported in any log file. I have thold logging enabled but nothing shows up in the log despite having two thresholds that are violated.
Can you suggest what I might do to debug this? I am fairly familiar with php.
Any tips appreciated.
Thanks,
John
Can you suggest what I might do to debug this? I am fairly familiar with php.
Any tips appreciated.
Thanks,
John
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Unable to receive alerts from Thold
Edit the cli's php.ini file and set 'display_errors=On' and 'error_log=/tmp/php.log'. Watch the log file and report what you find.
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?
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?
Re: Unable to receive alerts from Thold
I did that but nothing ever shows up in the log file. So my steps were:
edited the php.ini as you stated, added the entries, and restarted apache
I disabled the thresholds, waited a poll cycle, and turned the thresholds back on. Nothing shows up in the /tmp logfile. I even added a new threshold that should have triggered immediately and it never triggered nor did any entries show up in the /tmp logfile.
Not sure what to do next. Perhaps add some logging statements to one or more of the thold php files?
Any suggestions appreciated.
Thanks,
John
edited the php.ini as you stated, added the entries, and restarted apache
I disabled the thresholds, waited a poll cycle, and turned the thresholds back on. Nothing shows up in the /tmp logfile. I even added a new threshold that should have triggered immediately and it never triggered nor did any entries show up in the /tmp logfile.
Not sure what to do next. Perhaps add some logging statements to one or more of the thold php files?
Any suggestions appreciated.
Thanks,
John
Who is online
Users browsing this forum: No registered users and 2 guests