mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
as default do not send emails for down ports, but print them on the front page (for mmoerman)
git-svn-id: http://www.observium.org/svn/observer/trunk@2922 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -98,6 +98,7 @@ $config['alerts']['email']['default'] = NULL; ## Default alert recipient
|
||||
$config['alerts']['email']['default_only'] = FALSE; ## Only use default recipient
|
||||
$config['alerts']['email']['enable'] = TRUE; ## Enable email alerts
|
||||
$config['alerts']['bgp']['whitelist'] = NULL; ## Populate as an array() with ASNs to alert on.
|
||||
$config['alerts']['port']['ifdown'] = FALSE; ## Generate alerts for ports that go down
|
||||
|
||||
### Port bandwidth threshold percentage %age utilisation above this will cause an alert
|
||||
|
||||
@@ -352,8 +353,8 @@ $config['auth_ldap_groups']['support']['level'] = 1;
|
||||
### Hardcoded ASN descriptions
|
||||
$config['astext'][65333] = "Cymru Bogon Feed";
|
||||
|
||||
### What should we warn about?
|
||||
$config['warn']['ifdown'] = false;
|
||||
### Warnings on front page
|
||||
$config['warn']['ifdown'] = TRUE; ## Show down interfaces
|
||||
|
||||
|
||||
## List of poller modules. Need to be in the array to be
|
||||
|
@@ -370,7 +370,7 @@ foreach ($ports as $port)
|
||||
/// End Update Database
|
||||
|
||||
/// Send alerts for interface flaps.
|
||||
if ($config['warn']['ifdown'] && ($port['ifOperStatus'] != $this_port['ifOperStatus']) && $port['ignore'] == 0)
|
||||
if ($config['alerts']['port']['ifdown'] && ($port['ifOperStatus'] != $this_port['ifOperStatus']) && $port['ignore'] == 0)
|
||||
{
|
||||
if ($this_port['ifAlias'])
|
||||
{
|
||||
|
Reference in New Issue
Block a user