Page 1 of 5

Facing problem with Email Notification in Nagios Core

Posted: Fri Sep 11, 2015 5:14 pm
by arumugam
Hi,

I am new to nagios and i have installed nagios core and configured the remote host. But i am not getting email notifications.
So please anyone guide me with this.

Thanks in advance..

Re: Facing problem with Email Notification in Nagios Core

Posted: Mon Sep 14, 2015 9:06 am
by hsmith
arumugam wrote:Hi,

I am new to nagios and i have installed nagios core and configured the remote host. But i am not getting email notifications.
So please anyone guide me with this.

Thanks in advance..
Hi arumugam,

Are you sending email to an external domain?

Re: Facing problem with Email Notification in Nagios Core

Posted: Mon Sep 14, 2015 9:50 am
by arumugam
Hi Smith,

Thanks for your response. I am sending mail to internal domain only. I have changed the configuration and now i am getting email notification, but for check_ping service still i am not getting mail notification. if ping is not working. please guide me for this.


Thanks in advance...

Re: Facing problem with Email Notification in Nagios Core

Posted: Mon Sep 14, 2015 10:10 am
by jdalrymple
arumugam wrote:now i am getting email notification
How are you testing this?
arumugam wrote: but for check_ping service still i am not getting mail notification. if ping is not working
My immediate guess is that you're testing this by bouncing servers, but not waiting out the max_check_attempts definition for the host:
Object Definitions wrote:max_check_attempts: This directive is used to define the number of times that Nagios will retry the host check command if it returns any state other than an OK state. Setting this value to 1 will cause Nagios to generate an alert without retrying the host check. Note: If you do not want to check the status of the host, you must still set this to a minimum value of 1. To bypass the host check, just leave the check_command option blank.

Re: Facing problem with Email Notification in Nagios Core

Posted: Mon Sep 14, 2015 12:01 pm
by arumugam
Hi,

I am trying to check with below steps

I am disabling the network configurations and checking. please suggest me on this.

Thanks.

Re: Facing problem with Email Notification in Nagios Core

Posted: Mon Sep 14, 2015 4:31 pm
by ssax
Please post your service definition (sanitized) and any templates you're using so that we can review the settings.

Re: Facing problem with Email Notification in Nagios Core

Posted: Tue Sep 15, 2015 12:28 am
by arumugam
Hi,

I am using the below service definition. Please find and suggest me.

# Define a service to "ping" the local machine

define service{
use generic-service ; Name of service template to use
host_name my hostname
service_description PING
check_command check_ping!100.0,20%!500.0,60%
}

Thanks

Re: Facing problem with Email Notification in Nagios Core

Posted: Tue Sep 15, 2015 1:28 am
by Box293
I suspect the generic-service template has the following settings:

Code: Select all

max_check_attempts              3
normal_check_interval           3
retry_check_interval            1
So that means from when the service goes first detects a problem, best case it will take 2-3 minutes before a notification is sent. However if the host goes down before the service then the service notifications will be suppressed.

So seeing as your new to Nagios, have a read of this page which explains how the intervals apply to hosts and services.

http://sites.box293.com/nagios/guides/c ... -intervals

If you want to just test that Nagios *can* send emails AND that your contacts and services are correctly defined, go to a host or service and click "Send custom xxx notification".

Re: Facing problem with Email Notification in Nagios Core

Posted: Tue Sep 15, 2015 4:50 am
by arumugam
Hi,

Thanks for your assistance, i am reading the website. and i have one more query. Is there any way to find OS details via nagios for example in our network linux,windows, switches and routers we are configured, so can we get the os details using nagios.

Re: Facing problem with Email Notification in Nagios Core

Posted: Tue Sep 15, 2015 9:42 am
by jdalrymple
arumugam wrote:Hi,

Thanks for your assistance, i am reading the website. and i have one more query. Is there any way to find OS details via nagios for example in our network linux,windows, switches and routers we are configured, so can we get the os details using nagios.
I'll be honest, I've never known a system administrator that set up monitoring for a server but didn't know what his server's OS was so I'm assuming autodiscovery is what you're looking for. Our commercial product NagiosXI includes an auto-discovery component that does some basic checking to identify what OS exists on a network. Otherwise there are some community driven options, although I cannot personally attest to their accuracy or usability: https://exchange.nagios.org/directory/A ... DDiscovery