Thold plugin doesn't send email notifications

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
alexvelitsky
Posts: 25
Joined: Thu Aug 25, 2022 2:49 am

Thold plugin doesn't send email notifications

Post by alexvelitsky »

Hi guys,

I've got:

:~$ sudo /usr/share/cacti/cli/add_graphs.php --version
Cacti Add Graphs Utility, Version 1.2.21 (DB: 1.2.21), Copyright (C) 2004-2022 The Cacti Group

and installed Thold plugin from here: https://github.com/Cacti/plugin_thold

It works ok, I see 2 active thresholds - pls look at screenshot. Test email from my cacti server was successful:

From: Cacti <al33@yandex.ru>
Sent: Thursday, August 25, 2022 19:53
To: al33@yandex.ru
Subject: Cacti Test Message

This is a test message generated from Cacti. This message was sent to test the configuration of your Mail Settings.

Your email settings are currently set as follows

Method: SMTP
Device: smtp.yandex.ru
Port: 465
Authentication: true
Username: al33
Password: (Not Shown for Security Reasons)
Security: ssl
Ping Results: Success

But this Thold plugin doesn't send email notifications in case of active thresholds for some reason. Anybody faced similar problem?
Thanks!
Attachments
Capture.JPG
Capture.JPG (51.05 KiB) Viewed 1800 times
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Thold plugin doesn't send email notifications

Post by TheWitness »

This has to be some mail configuration option if you are using any of the recent Cacti versions. These issues are separate to Cacti. But, please ensure that you are seeing the thold notifications in the cacti.log file.
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?
alexvelitsky
Posts: 25
Joined: Thu Aug 25, 2022 2:49 am

Re: Thold plugin doesn't send email notifications

Post by alexvelitsky »

TheWitness wrote: Wed Aug 31, 2022 10:01 am This has to be some mail configuration option if you are using any of the recent Cacti versions. These issues are separate to Cacti. But, please ensure that you are seeing the thold notifications in the cacti.log file.
I can see following in the /usr/share/cacti/site/log/cacti.log file:

08/31/2022 11:50:10 - THOLD WARNING: Device[1] Hostname[185.225.201.58] is recovering!
08/31/2022 11:50:10 - THOLD WARNING: Device[1] Hostname[185.225.201.58] can not send a Device recovering email for 'Netping TSv2' since the 'Alert Email' setting is not set for Device!
08/31/2022 11:50:10 - THOLD WARNING: Device[3] Hostname[185.225.201.58] is recovering!
08/31/2022 11:50:10 - THOLD WARNING: Device[3] Hostname[185.225.201.58] can not send a Device recovering email for 'srx100h2' since the 'Alert Email' setting is not set for Device!
08/31/2022 11:50:10 - THOLD WARNING: Device[4] Hostname[185.225.201.58] is recovering!
08/31/2022 11:50:10 - THOLD WARNING: Device[4] Hostname[185.225.201.58] can not send a Device recovering email for 'ex2200' since the 'Alert Email' setting is not set for Device!
08/31/2022 12:05:10 - SYSTEM WARNING: Primary Admin account does not have an email address! Unable to send administrative Email.
08/31/2022 14:05:21 - SYSTEM WARNING: Primary Admin account does not have an email address! Unable to send administrative Email.
08/31/2022 16:05:04 - SYSTEM WARNING: Primary Admin account does not have an email address! Unable to send administrative Email.
08/31/2022 16:10:09 - SYSTEM WARNING: Primary Admin account does not have an email address! Unable to send administrative Email.
08/31/2022 18:10:10 - SYSTEM WARNING: Primary Admin account does not have an email address! Unable to send administrative Email.
08/31/2022 20:15:09 - SYSTEM WARNING: Primary Admin account does not have an email address! Unable to send administrative Email.

What is the menu location for 'Alert Email' setting?
Thanks.
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Thold plugin doesn't send email notifications

Post by TheWitness »

You should setup a notification list and make sure the emails in that notification list are includes for each of the tholds.
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?
alexvelitsky
Posts: 25
Joined: Thu Aug 25, 2022 2:49 am

Re: Thold plugin doesn't send email notifications

Post by alexvelitsky »

TheWitness wrote: Wed Aug 31, 2022 4:59 pm You should setup a notification list and make sure the emails in that notification list are includes for each of the tholds.
Thanks! But it's already done. Anyway I get following email messages:

Subject: Thold Daemon Not Started

WARNING: You have elected to use the Thold Daemon, but it appears not to be running. Please correct this right away

It's strange, because I can see that Thold plugin is active. How can I check if Thold Daemon is running or not? Maybe it's possible to do via debian CLI command?
Attachments
Capture.JPG
Capture.JPG (21.53 KiB) Viewed 1762 times
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: Thold plugin doesn't send email notifications

Post by Osiris »

I would not even use the t hold Damon until you have a large enough system to substantiate it.
Before history, there was a paradise, now dust.
alexvelitsky
Posts: 25
Joined: Thu Aug 25, 2022 2:49 am

Re: Thold plugin doesn't send email notifications

Post by alexvelitsky »

Osiris wrote: Thu Sep 01, 2022 3:59 pm I would not even use the t hold Damon until you have a large enough system to substantiate it.
Ok, but what is my root cause of the problem? Why I receive those messages? Or Thold daemon is different separate option besides of Thold plugin?
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests