Unable to receive alerts from Thold

Support questions about the Threshold plugin

Moderators: Developers, Moderators

escort146
Posts: 6
Joined: Thu Oct 20, 2011 6:56 am

Unable to receive alerts from Thold

Post by escort146 »

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
slide1.JPG
slide1.JPG (79.96 KiB) Viewed 3638 times
slide2.JPG
slide2.JPG (77.62 KiB) Viewed 3638 times
threshold.JPG
threshold.JPG (49.55 KiB) Viewed 3638 times

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.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Unable to receive alerts from Thold

Post by TheWitness »

The problem is resolved by v0.4.8-1 located here: http://docs.cacti.net/plugin:thold?&#download

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?
escort146
Posts: 6
Joined: Thu Oct 20, 2011 6:56 am

Re: Unable to receive alerts from Thold

Post by escort146 »

Thanks for your quick reply. But i am still facing the same issue. I have enclosed my setting kindly go through.
slide1.JPG
slide1.JPG (79.96 KiB) Viewed 3639 times
slide2.JPG
slide2.JPG (77.62 KiB) Viewed 3639 times
threshold.JPG
threshold.JPG (49.55 KiB) Viewed 3639 times


Prasanna
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Unable to receive alerts from Thold

Post by TheWitness »

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?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Unable to receive alerts from Thold

Post by TheWitness »

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?
escort146
Posts: 6
Joined: Thu Oct 20, 2011 6:56 am

Re: Unable to receive alerts from Thold

Post by escort146 »

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
Attachments
threshold1.JPG
threshold1.JPG (50.84 KiB) Viewed 3615 times
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Unable to receive alerts from Thold

Post by TheWitness »

That's a problem. It looks like thold is not quite functioning. You should see log messages like this:

Code: Select all

10/21/2011 08:10:04 AM - SYSTEM THOLD STATS: Time:0.3230 Tholds:37 Hosts:0
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:

Code: Select all

error_log=/tmp/php.log
Then watch that file for errors.

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?
escort146
Posts: 6
Joined: Thu Oct 20, 2011 6:56 am

Re: Unable to receive alerts from Thold

Post by escort146 »

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
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Unable to receive alerts from Thold

Post by TheWitness »

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?
escort146
Posts: 6
Joined: Thu Oct 20, 2011 6:56 am

Re: Unable to receive alerts from Thold

Post by escort146 »

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
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Unable to receive alerts from Thold

Post by TheWitness »

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?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Unable to receive alerts from Thold

Post by TheWitness »

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?
jjarrettc
Posts: 3
Joined: Sat Oct 22, 2011 3:07 am

Re: Unable to receive alerts from Thold

Post by jjarrettc »

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
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Unable to receive alerts from Thold

Post by TheWitness »

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?
jjarrettc
Posts: 3
Joined: Sat Oct 22, 2011 3:07 am

Re: Unable to receive alerts from Thold

Post by jjarrettc »

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
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests