Failed to locate contact config issue

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.
Locked
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

Failed to locate contact config issue

Post 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
Last edited by dwhitfield on Mon Jan 01, 2018 4:28 pm, edited 1 time in total.
Reason: marking with green check mark
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

Re: Failed to locate contact config issue

Post 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
Locked