Page 1 of 1
Threshold alerts
Posted: Wed Mar 07, 2012 11:26 am
by lgitten
How do I setup e-mail alerts when the treshhold for specific check reaches out to specified max?
Thanks.
Re: Threshold alerts
Posted: Wed Mar 07, 2012 12:56 pm
by scottwilkerson
Could you describe in detail a little more what you would like to accomplish?
Re: Threshold alerts
Posted: Wed Mar 07, 2012 1:29 pm
by lgitten
scottwilkerson wrote:Could you describe in detail a little more what you would like to accomplish?
Let's say if my disk usage on the remote monitoring server reaches 90%, I want automatic e-mail notification alert to be sent out.
Re: Threshold alerts
Posted: Wed Mar 07, 2012 2:12 pm
by scottwilkerson
This should be the default behavior.
One thing to make sure is the the user that is defined to receive notifications has their account setup to send them.
Top right of screen click on username next to "Logged in as: "
Click "Notification Preferences"
Make sure you select "Enable Notifications" & all of the "Notification Types" to receive.
Click "Notification Methods"
make sure you have a method chosen of how to send the messages.
Re: Threshold alerts
Posted: Wed Mar 07, 2012 2:21 pm
by lmiltchev
If notifications are enabled, you should be able to receive an alert. Let's say that you are running a disk usage check and your warning and critical levels are already set at 80 and 90.
Go to the: Core Config Manager->Monitoring->Services->Disk Usage (or whatever your check is called)->Alert Settings. Fill in all of the info, for example:
Contacts = nagiosadmin
Notification period = nagiosadmin_notification_times
Notification options = w, c, r
Notification interval = 60
First notification delay = 0
Notifications enabled = on
Click "Save", "Apply Configuration".
Now when your disk usage reaches 80%, you will receive a warning alert; if it is above 90% you will receive a critical alert.
The settings you set under the Core Config Manager (Service Management) will override the template that this service is using. You can also modify the template, but this will affect all of the hosts/services using the same template.
Note: Make sure that notifications are enabled for this particular user:
Configure->More Options->My Account Settings->Notification Options->Notification Preferences->Update Settings
Hope this helps.
Re: Threshold alerts
Posted: Wed Mar 07, 2012 2:45 pm
by lgitten
When I click on "Send Test Notifications" button it does not send me a test e-mail (I put my work e-mail address to test).
I selected "Enable Notifications" & all of the "Notification Types" to receive e-mail.
Nagios XI is running snmpd service. What am I missing?
lmiltchev wrote:If notifications are enabled, you should be able to receive an alert. Let's say that you are running a disk usage check and your warning and critical levels are already set at 80 and 90.
Go to the: Core Config Manager->Monitoring->Services->Disk Usage (or whatever your check is called)->Alert Settings. Fill in all of the info, for example:
Contacts = nagiosadmin
Notification period = nagiosadmin_notification_times
Notification options = w, c, r
Notification interval = 60
First notification delay = 0
Notifications enabled = on
Click "Save", "Apply Configuration".
Now when your disk usage reaches 80%, you will receive a warning alert; if it is above 90% you will receive a critical alert.
The settings you set under the Core Config Manager (Service Management) will override the template that this service is using. You can also modify the template, but this will affect all of the hosts/services using the same template.
Note: Make sure that notifications are enabled for this particular user:
Configure->More Options->My Account Settings->Notification Options->Notification Preferences->Update Settings
Hope this helps.
Re: Threshold alerts
Posted: Wed Mar 07, 2012 3:34 pm
by scottwilkerson
What are your setting in Admin -> Manage Email Settings?
Re: Threshold alerts
Posted: Wed Mar 07, 2012 3:59 pm
by lgitten
scottwilkerson wrote:What are your setting in Admin -> Manage Email Settings?
General Mail Settings
Mail Method:
* Sendmail
SMTP
Send Mail From: localhost@localdomain
Note: The bullet is selected for "Sendmail"
Re: Threshold alerts
Posted: Wed Mar 07, 2012 4:11 pm
by scottwilkerson
If that is what you want to use for your mail settings you may want to check
To see if you see any errors