Page 1 of 1

Configure AlarmTILT

Posted: Wed Oct 31, 2012 12:17 pm
by inserm
Hello,

I have 2 little problems:
The first with the contact function:
I had to comment out the line:
use generic-contact
Show me this error:

Code: Select all

Error: Template 'generic-contact' specified in Contact Definition Could not be found not
Is this line is important?
The second with the service function:
in check_snmp_extend

Code: Select all

Error: Invalid object services directive 'notification_intreval'
I put this line commented out, then another error

Code: Select all

Could not find any hostgroup matching 'snmp-servers'
I put this line a comment
Does need these two lines?
I discovered that I did not check_snmp_extend but against check_snmp exist in /usr/lib/nagios/plugins
What should I do?

I followed the procedure in this link: http://www.teamtilt.fr/images/stories/P ... nagios.pdf
Thank you.

Re: Configure AlarmLITL

Posted: Fri Nov 02, 2012 5:09 pm
by jsmurphy
I would probably spend a little time with the Nagios doco to get a better understanding of object relationships to prevent these problems in the future: http://nagios.sourceforge.net/docs/nagi ... n/toc.html

Now addressing your problems directly:
1. Your contact definitions are currently relying on the generic-contact template for configuration information. If you want to get rid of it you need to either assign the contacts a different template or move the template information directly into the contact objects.

2. You misspelled interval.
'notification_intreval'
Your second error of being unable to find the 'snmp-servers' hostgroup is because either one of your hosts or one of your services has designated itself as a member of snmp-servers... but no snmp-servers group actually exists.

Nagios has a fairly steep learning curve and can be quite difficult to learn and is unfortunately one of those applications that requires you to read the manual.

Re: Configure AlarmLITL

Posted: Mon Nov 05, 2012 3:44 am
by inserm
jsmurphy wrote: 2. You misspelled interval.
'notification_intreval'
Thank you for that comment I corrected the error
Your second error of being unable to find the 'snmp-servers' hostgroup is because either one of your hosts or one of your services has designated itself as a member of snmp-servers... but no snmp-servers group actually exists.
I added the definition of the host group "snmp-servers"

Code: Select all

define hostgroup {
        hostgroup_name  snmp-servers
		alias           SNMP servers
		members         localhost
        }
In the file hostgroups_nagios2.cfg and no mistake, I have only one error line

Code: Select all

use                generic-contact
Show me this error:

Code: Select all

Error: Template 'generic-contact' specified in contact definition could not be not found
I read the doc and do some research on the internet.

Re: Configure AlarmTILT

Posted: Tue Nov 06, 2012 4:56 pm
by jsmurphy
Much like you were previously missing the hostgroup snmp-servers, you now have a reference to a template called "generic-contact" that no longer exists. You will either need to put the contact template back or remove the reference to it.

If you remove the reference to it you will need to ensure that all the required fields for a contact are in place: http://nagios.sourceforge.net/docs/nagi ... ml#contact

Re: Configure AlarmTILT

Posted: Wed Nov 07, 2012 3:20 am
by inserm
jsmurphy wrote:You will either need to put the contact template back or remove the reference to it.
Precisely this keyword exists nowhere. I will remove it.