Page 1 of 1

Failed to locate contact config issue

Posted: Sat Dec 30, 2017 9:39 pm
by kwhogster
Nagios Core 4.3.4

get this error
Error: Failed to locate contact 'test' for contactgroup 'admins'
Bad member of contactgroup 'admins' (config file '/usr/local/nagios/etc/objects/contacts.cfg', starting on line 64)
Error processing object config files!

My code

Code: Select all

define contact{
        contact_name                    test
        use                             generic-contact
        service_notification_period     24x7
        host_notification_period        24x7
        service_notification_options    c,r
        host_notification_options       d,r
        service_notification_commands   sm-service-push-notify
        host_notification_commands      sm-host-push-notify
        register                        0
        }

###############################################################################
###############################################################################
#
# 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, support, test
        }
I tried different names no luck

Any ideas?

Thank you
Tom

Re: Failed to locate contact config issue

Posted: Sat Dec 30, 2017 10:25 pm
by kwhogster
I resolved this
the contacts.cfg file needed to updated saw the object definitions where off

saw this which was helpful

https://assets.nagios.com/downloads/nag ... ml#contact

mark this as resolved