Facing problem with Email Notification in Nagios Core
Facing problem with Email Notification in Nagios Core
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..
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
Hi arumugam,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..
Are you sending email to an external domain?
Former Nagios Employee.
me.
me.
Re: Facing problem with Email Notification in Nagios Core
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...
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...
-
jdalrymple
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Facing problem with Email Notification in Nagios Core
How are you testing this?arumugam wrote:now i am getting email notification
My immediate guess is that you're testing this by bouncing servers, but not waiting out the max_check_attempts definition for the host:arumugam wrote: but for check_ping service still i am not getting mail notification. if ping is not working
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
Hi,
I am trying to check with below steps
I am disabling the network configurations and checking. please suggest me on this.
Thanks.
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
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
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
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
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Facing problem with Email Notification in Nagios Core
I suspect the generic-service template has the following settings:
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".
Code: Select all
max_check_attempts 3
normal_check_interval 3
retry_check_interval 1So 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".
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Facing problem with Email Notification in Nagios Core
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.
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.
-
jdalrymple
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Facing problem with Email Notification in Nagios Core
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 ... DDiscoveryarumugam 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.