Stopping Mail Alert Due to All Host Down by Local LAN Issue

Support questions about the Threshold plugin

Moderators: Developers, Moderators

Post Reply
sukanta
Cacti User
Posts: 139
Joined: Tue Jan 26, 2010 6:12 am

Stopping Mail Alert Due to All Host Down by Local LAN Issue

Post by sukanta »

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.
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: Stopping Mail Alert Due to All Host Down by Local LAN Is

Post by noname »

Though it's not verified..

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 '';
	}
	...
However, it's no use that the server for monitoring is down.. :P
User avatar
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

Post by TheWitness »

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
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?
sukanta
Cacti User
Posts: 139
Joined: Tue Jan 26, 2010 6:12 am

Re: Stopping Mail Alert Due to All Host Down by Local LAN Is

Post by sukanta »

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
This is the the best solution .. Single mail for all host down...

For LAN down, localhost will be not always down as the server may have multiple NIC.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest