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:
Adam Amstrong
2012-03-22 10:37:17 +00:00
parent 216966a7c2
commit b86abdba7c
2 changed files with 4 additions and 3 deletions

View File

@@ -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

View File

@@ -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'])
{