Install and configure an MTA on the Observium host. I'm not sure if the SMTP stuff works (it was written, removed and rewritten due to GPL assclownery), so it's way easier to just let the MTA handle that stuff and send with PHP's builting mail functions.
adam.
On 2014-03-18 13:45, Josh Hopper wrote:
Ok. So I listed way too much stuff. Also, I need to specify something to send mail. I deleted all of what I had before for alerts and just put what you have (modified with my emails).
'mail' doesn't seem to work. I'll test out send mail and the other(s) to see what's best. I'll be back when I'm stuck again.
Thank you kindly for your support. Its appreciated.
-- Sincerely, Joshua Hopper, A+ CE Network Administrator
420 3rd Ave NW Hickory NC 28601 Office: 828-449-1839x2160 | Cell: 828-855-7565
-----Original Message----- From: observium [mailto:observium-bounces@observium.org] On Behalf Of Moore, Cameron Sent: Tuesday, March 18, 2014 1:44 PM To: Observium Network Observation System Subject: Re: [Observium] Alerts
I think the alerter examples in the defaults file are for the old alert system. Use this instead: http://www.observium.org/wiki/Configuration_Options#Alert_Settings
Here's my setup:
$config['email_backend'] = 'sendmail'; $config['email_from'] = 'observium@example.com';
$config['alerts']['email']['default'] = 'me@example.com'; $config['alerts']['email']['default_only'] = TRUE; $config['alerts']['email']['enable'] = TRUE; -- Cameron Moore
-----Original Message----- From: observium [mailto:observium-bounces@observium.org] On Behalf Of Josh Hopper Sent: Tuesday, March 18, 2014 9:49 AM To: Observium Network Observation System Subject: Re: [Observium] Alerts
Hi,
How do you debug alerts to see where they are stopping? I think that I got my mailer messed up or copied one too many lines of data. I found how to send mail from /opt/Observium/includes/defaults.inc.php (I think) I used the alerts that came with the default subscription install and configuration options from the Observium site.
If I can get one of these going I think I can tinker to figure out the rest.
I set one up for if any port goes down as follows:
Check Conditions:
ifAdminStatus equals up ifOperStatus equals down
Device Match: Os equals *
Entity Match: Hostname match *
Relevant configs.php:
// Enable alerter $config['poller-wrapper']['alerter'] = TRUE;
// Mailer backend Settings
$config['email_backend'] = 'mail'; // Mail backend. Allowed: "mail" (PHP's built-in), "sendmail", "smtp". $config['email_from'] = NULL; // Mail from. Default: "OBSERVIUM Network Monitor" <observium@`hostname`> $config['email_sendmail_path'] = '/usr/sbin/sendmail'; // The location of the sendmail program. $config['email_smtp_host'] = 'relay.purafilter2000.com'; // Outgoing SMTP server name. $config['email_smtp_port'] = 25; // The port to connect. $config['email_smtp_timeout'] = 10; // SMTP connection timeout in seconds. //$config['email_smtp_secure'] = NULL; // Enable encryption. Use 'tls' or 'ssl' //$config['email_smtp_auth'] = FALSE; // Whether or not to use SMTP authentication. //$config['email_smtp_username'] = NULL; // SMTP username. //$config['email_smtp_password'] = NULL; // Password for SMTP authentication.
// Set up a default alerter (email to a single address) $config['alerts']['alerter']['default']['descr'] = "Default Email Alert"; $config['alerts']['alerter']['default']['type'] = "email"; $config['alerts']['alerter']['default']['contact'] = "ITObserviumNotify@purafilter2000.com"; $config['alerts']['alerter']['default']['enable'] = TRUE; $config['email_from'] = "'Observium Alert' ITObserviumNotify@purafilter2000.com";
$config['alerts']['email']['enable'] = FALSE; // Enable email alerts $config['alerts']['interval'] = 86400; // How frequently to re-send a notification for a continuing alert condition // In seconds. Default is 1 day. $config['alerts']['port']['ifdown'] = FALSE; // Generate alerts for ports that go down
// Port bandwidth threshold percentage %age utilisation above this will cause an alert
$config['alerts']['port_util_alert'] = FALSE; // Disabled as default $config['alerts']['port_util_perc'] = 85; // %age above which to alert
$config['enable_inventory'] = 1; # Enable Inventory
Any help is appreciated. Thanks.
-- Sincerely, Joshua Hopper, A+ CE Network Administrator
420 3rd Ave NW Hickory NC 28601 Office: 828-449-1839x2160 | Cell: 828-855-7565
-----Original Message----- From: observium [mailto:observium-bounces@observium.org] On Behalf Of Josh Hopper Sent: Tuesday, March 18, 2014 2:57 AM To: Observium Network Observation System Subject: Re: [Observium] Alerts
That's just awesome. This is the push that I needed. I'm a little thick headed at first Adam but I learn fast.
I'll be back for questions on ore specialized alerts!
I'll write you documentation. Shoot me an email if you're interested. I can use your Wiki, or just blog it for you somewhere. I found some of your posts on forums elsewhere. Why not centralize it? -- Sincerely, Joshua Hopper, A+ CE Network Administrator
420 3rd Ave NW Hickory NC 28601 Office: 828-449-1839x2160 | Cell: 828-855-7565
-----Original Message----- From: observium [mailto:observium-bounces@observium.org] On Behalf Of Adam Armstrong Sent: Monday, March 17, 2014 6:57 PM To: Observium Network Observation System Subject: Re: [Observium] Alerts
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!
adam.
On 2014-03-17 15:46, Josh Hopper wrote: Is there a guide on how to best setup alerts for all devices?
I found:
http://www.observium.org/wiki/Alerting_Metrics_and_Attributes [1]
http://www.observium.org/wiki/Creating_an_Alert_Checker [2]
I want to set thresholds for DISK, RAM, CPU, UP/DOWN, and RX/TX Limits for all devices.
Is there a particular Device Association or Entity Association I'm supposed to use?
I figured I would set some general and then get specific with alerts by hostname for specific instances I want to monitor.
--
Sincerely,
Joshua Hopper, A+ CE
_Network Administrator___
420 3rd Ave NW Hickory NC 28601
Office: 828-449-1839x2160 | Cell: 828-855-7565
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.
Links:
[1] http://www.observium.org/wiki/Alerting_Metrics_and_Attributes [2] http://www.observium.org/wiki/Creating_an_Alert_Checker
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium _______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium 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.
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium 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.
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium _______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium 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.
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium