Page 1 of 1
Not getting notifications with NAGIOS XI
Posted: Wed Nov 13, 2013 11:00 am
by desmondlewissmith
I setup a LINUX server with 15 services checked.
/var disk space check is setup with Send a notification immediately.
Send alert notifications to… Myself is checked no contacts and no contact groups are checked.
When this partition went to 100% full, the State history does not show the event (happened in the last 24 hrs) and I did not get an email for this alert.
If I look at Nagios Core Config Manager for this same /var check service under the Alert Settings tab, Notifications Enabed is on and Manage Contacts has me (myself) listed and Manage Contact Groups has nothing listed.
I'm trying to figure out why it is that I am not getting notifications.
Re: Not getting notifications with NAGIOS XI
Posted: Wed Nov 13, 2013 11:21 am
by slansing
Can you share your service definition and command definition that is being used?
Re: Not getting notifications with NAGIOS XI
Posted: Wed Nov 13, 2013 11:43 am
by desmondlewissmith
define service {
host_name caisisapp-dev1-16
service_description /var Disk Space
use generic-service
check_command check_xi_by_ssh! -C "/users/tmugrage/usr/local/nagios/libexec/check_disk /var" -l tmugrage -E!!!!!!!
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
first_notification_delay 0
notification_period xi_timeperiod_24x7
notification_options w,c,u,r,f,s,
notifications_enabled 1
contacts tmugrage
_xiwizard sshproxy
register 1
}
Re: Not getting notifications with NAGIOS XI
Posted: Wed Nov 13, 2013 12:37 pm
by slansing
You will need to have a host address specified for your check and also a properly defined check command and warning and critical thresholds set up on your service check. In addiction, the contact that is defined here is "tmugrage."
I would review this page first:
http://assets.nagios.com/downloads/nagi ... ng_SSH.pdf
Did you use the wizard to set this up? It appears as though you did but missed a few things.
Re: Not getting notifications with NAGIOS XI
Posted: Wed Nov 13, 2013 3:13 pm
by desmondlewissmith
The notification was setup aulomatically when I ran the SSH wizard. Not sure what you mean by missing a step.
The contact that's defince as tmugrage was me (co-worker) running SSH as a different user because I cannot use the nagios user that environment due to policies. (hence the -l)
Re: Not getting notifications with NAGIOS XI
Posted: Wed Nov 13, 2013 3:57 pm
by jwu
is the emailing notification setup?
you might want to see if your email alerts are setup?
send yourself a test mail to start
Re: Not getting notifications with NAGIOS XI
Posted: Wed Nov 13, 2013 4:08 pm
by cstg-infra
jwu wrote:is the emailing notification setup?
you might want to see if your email alerts are setup?
send yourself a test mail to start
Are you saying send a test notification from the service check itself? As in the Send Custom Notification command? This has been tested and does not work.
Re: Not getting notifications with NAGIOS XI
Posted: Thu Nov 14, 2013 12:12 pm
by lmiltchev
Is "tmugrage" a Nagios XI user or a "contact only". Can you post the contact's definition?
Re: Not getting notifications with NAGIOS XI
Posted: Thu Nov 14, 2013 12:48 pm
by desmondlewissmith
tmugrage is one of the NAGIOS admins. He's actually on this thread now as well. He's one of our sysadmins.
Re: Not getting notifications with NAGIOS XI
Posted: Thu Nov 14, 2013 4:24 pm
by slansing
Can you post the contact's definition?