![](https://secure.gravatar.com/avatar/a5d6cf95d845319b33e8cc33db759d20.jpg?s=120&d=mm&r=g)
Welcome to the club! My images might not come through but here is the alert setup that worked for me. I am using the default alerts till I am better at using the new alerts. I wrote options for both.
Set the enable to false. When it is set to true it enables the old alert system. The old alert system works but it sends a lot of weird reports sometimes. Stuff isn't needed.
$config['alerts']['email']['default'] = "adama@memetic.orgmailto:adama@memetic.org";
$config['alerts']['email']['from'] = "Observium Dev
<adama@memetic.orgmailto:adama@memetic.org>";
$config['alerts']['email']['default_only'] = TRUE;
$config['alerts']['email']['enable'] = FALSE;
You would need to use postfix to relay mail.
Then I need to set the sysContact in all devices. That with the SmartHost should give me alerts. I just re-installed PostFix as a smarthost following the below: http://gopalthorve.com/install-postfix-mta-and-configure-smarthost/
For an domain name I used purafilter2000.com. [cid:image001.png@01CF4D52.9D8A7E70]
I used svr-exchange.purafilter2000.com here. [cid:image002.png@01CF4D52.9D8A7E70]
Postfix Config File: myhostname = network-monitoring alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases myorigin = /etc/mailname mydestination = purfilter2000.com, network-monitoring, localhost.localdomain, localhost relayhost = svr-exchange.purafilter2000.com mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = all smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/smarthost_passwd smtp_sasl_security_options = noanonymous
I creaded a username/password file as the guide suggested. Purafilter2000.com itadmin@purafilter2000.com:[adminmailto:itadmin@purafilter2000.com:[admin pass] I secured thefile and enabled permissions for root.
When it is set to false it enables the new alert system. In the new alert system you must setup alerts in the Observium GUI.
I found:
http://www.observium.org/wiki/Alerting_Metrics_and_Attributes [1]
On 2014-03-17 15:46, Josh Hopper wrote:
Is there a guide on how to best setup alerts for all devices?
To match all devices, use *, to match all entities use *
To match all IOS devices with 'core' in their hostname :
os equals ios
hostname match *core*
To match all 'eth0' ports on your linux servers you could do :
device
os equals linux
entity
port_label equals eth0
It's fairly straightforward, once you get used to it. It does require
a tiny bit of understanding of the information we get back from
devices in places, we really do need to improve the documentation on
this soon!
-- Sincerely, Joshua Hopper, A+ CE Network Administrator [cid:image003.jpg@01CF4D52.9D8A7E70] 420 3rd Ave NW Hickory NC 28601 Office: 828-449-1839x2160 | Cell: 828-855-7565
From: observium [mailto:observium-bounces@observium.org] On Behalf Of Jake Hansen Sent: Tuesday, April 01, 2014 1:56 AM To: observium@observium.org; Network Operations Subject: [Observium] Help with a simple email setting
Sorry if this has been posted before but I have been trying to find it for a few hours now.
I'm trying to find where the system sets the emailto field when hosts go down.
Right now, when a host goes down, somehow its still emailing the old email address sometimes. I have grep -R the entire /opt/observium folder but nothing comes up. I have also tried to set the following setting to no avail
$config['alerts']['email']['enable'] = TRUE; $config['alerts']['email']['default'] = "netops@blah.commailto:netops@blah.com"; $config['alerts']['alerter']['default']['descr'] = "Default Email Alert"; $config['alerts']['alerter']['default']['type'] = "email"; $config['alerts']['alerter']['default']['contact'] = "netops@blah.commailto:netops@blah.com"; $config['alerts']['alerter']['default']['enable'] = TRUE;
But sometimes some of the emails(not all) will still go out to our old email address help@blah.commailto:help@blah.com
I cant for the life of me figure out how to fix it and have been scouring the observium docs to no avail.
Any help would be most appreciated.
Thanks! -- [http://secure.zray.net/ztelco/ztelco.png]
Jake Hansen Sr. Network Administrator ZTelco / Zray Technologies, Inc. 858-431-4411 Direct 858-565-2155 Office
Protect Plus Air Holdings, LLC and Affiliates, Protect Plus, LLC and Affiliates, Imagine One Resources, LLC and Affiliates, Protect Plus Surfaces, LLC and Affiliates Confidentiality Notice: This e-mail is intended only for the addressee named above. It contains information that is privileged, confidential or otherwise protected from use and disclosure. If you are not the intended recipient, you are hereby notified that any review, disclosure, copying, or dissemination of this transmission, or taking of any action in reliance on its contents, or other use is strictly prohibited. If you have received this transmission in error, please reply to the sender listed above immediately and permanently delete this message from your inbox. Thank you for your cooperation.