Trying to get nagios up and running and been stuck here awhile, not exactly sure what I am doing wrong.. Any help would be great =)
/usr/local/nagios/bin/nagios -v /etc/nagios/nagios.cfg
Checking contacts...
Error: Contact 'nagios' has no service notification commands defined!
Error: Contact 'nagios' has no host notification commands defined!
So I figure this is an issue with my contacts.cfg?
define contact
contact_name nagios
alias Nagios Admin
host_notification_period24x7
service_notification_period 24x7
service_notification_options w,u,c,r
host_notification_options d,u,r email
nagios-admin@localhost
can_submit_commands 1
Or maybe my contactgroups.cfg?
define contactgroup
contactgroup_name localadmins
alias Local Site Administrators
members nagios
Thanks for the help!
Best Answer
Did you copy all of the sample cfg files to start from?
You should have these two lines in either your contact or your contactgroup:
Also, they need to be defined as commands, which by default should be the sample commands.cfg