Threshold alerts

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
lgitten
Posts: 32
Joined: Mon Feb 27, 2012 10:50 am

Threshold alerts

Post by lgitten »

How do I setup e-mail alerts when the treshhold for specific check reaches out to specified max?

Thanks.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Threshold alerts

Post by scottwilkerson »

Could you describe in detail a little more what you would like to accomplish?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
lgitten
Posts: 32
Joined: Mon Feb 27, 2012 10:50 am

Re: Threshold alerts

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Threshold alerts

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Threshold alerts

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
lgitten
Posts: 32
Joined: Mon Feb 27, 2012 10:50 am

Re: Threshold alerts

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Threshold alerts

Post by scottwilkerson »

What are your setting in Admin -> Manage Email Settings?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
lgitten
Posts: 32
Joined: Mon Feb 27, 2012 10:50 am

Re: Threshold alerts

Post 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"
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Threshold alerts

Post by scottwilkerson »

If that is what you want to use for your mail settings you may want to check

Code: Select all

tail -f /var/log/maillog
To see if you see any errors
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked