Nagios adding hosts to nagios Error:


i have

Warning: Duplicate definition found for contact ‘nagiosadmin’ (config file ‘/usr/local/nagios//etc/objects/lalit/contacts.cfg’, starting on line 1)
Error: Could not add object property in file ‘/usr/local/nagios//etc/objects/lalit/contacts.cfg’ on line 2.
Error processing object config files!
please can help in making adding hosts to nagios
thank n regards


sounds like you defined the same contact multiple times in contacts.cfg. if you copy/pasted an existing contact profile in order to create a new one then you most likely just forgot to change the contact name.

Look for lines that look like this:

and make sure there is only 1 that specifies “nagiosadmin”.