Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Edit - I just edited my first post and fixed all of the other errors, the ones remaining are below. BAsically I would like to enable notifications in Nagios:
I just installed Nagios and after modifying the config files I am getting an error:
Below is a contact with all of the possible directives. Notice host_notification_commands and service_notification_commands. It would appear you don't have those.
dwhitfield wrote:Below is a contact with all of the possible directives. Notice host_notification_commands and service_notification_commands. It would appear you don't have those.
define contact{
name generic-contact ; The name of this contact template
service_notification_period 24x7 ; service notifications can be sent anytime
host_notification_period 24x7 ; host notifications can be sent anytime
service_notification_options w,u,c,r,f,s ; send notifications for all service states, flapping events, and scc
heduled downtime events
host_notification_options d,u,r,f,s ; send notifications for all host states, flapping events, and schedd
uled downtime events
service_notification_commands notify-service-by-email ; send service notifications via email
host_notification_commands notify-host-by-email ; send host notifications via email
register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL CONTACT, JUST A TEMM
PLATE!
}
define contact{
contact_name nagiosadmin ; Short name of user
alias Nagios Admin ; Full name of user
service_notification_period 24x7
host_notification_period 24x7
service_notification_options c,r
host_notification_options d,r
service_notification_commands host-notify-by-email
host_notification_commands host-notify-by-email
email tezarin@gmail.com
}
###############################################################################
###############################################################################
#
# CONTACT GROUPS
#
###############################################################################
###############################################################################
# We only have one contact in this simple configuration file, so there is
# no need to create more than one contact group.
define contactgroup{
contactgroup_name admins
alias Nagios Administrators
members nagiosadmin
}
Does it look good? How can I test to see if it works?