We are facing issue of getting lots of Host UP mail which happened when devices were down due to Cacti Server Local LAN Issue & came up now.
I am trying to find out possible solution in Thold. Anybody already done pl share.
Stopping Mail Alert Due to All Host Down by Local LAN Issue
Moderators: Developers, Moderators
Re: Stopping Mail Alert Due to All Host Down by Local LAN Is
Though it's not verified..
plugins/thold/thold_functions.php: (v0.4.9-3)
However, it's no use that the server for monitoring is down.. :P
plugins/thold/thold_functions.php: (v0.4.9-3)
Code: Select all
function thold_mail($to, $from, $subject, $message, $filename, $headers = '') {
global $config;
if (db_fetch_cell('SELECT status FROM host WHERE id = 1') == HOST_DOWN) {
thold_debug('Localhost is down -- sending mail is skipped');
return '';
}
...
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Stopping Mail Alert Due to All Host Down by Local LAN Is
I guess that I am asking if you would like the emails grouped as one e-mail per Notification List? If that's the case, it can be done, but I would only do it for people that use the Notification Lists and not per device email addresses.
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: Stopping Mail Alert Due to All Host Down by Local LAN Is
This is the the best solution .. Single mail for all host down...TheWitness wrote:I guess that I am asking if you would like the emails grouped as one e-mail per Notification List? If that's the case, it can be done, but I would only do it for people that use the Notification Lists and not per device email addresses.
TheWitness
For LAN down, localhost will be not always down as the server may have multiple NIC.
Who is online
Users browsing this forum: No registered users and 1 guest