Configure AlarmTILT

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
inserm
Posts: 24
Joined: Tue Jul 31, 2012 6:05 am

Configure AlarmTILT

Post 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.
Last edited by inserm on Mon Nov 05, 2012 10:10 am, edited 1 time in total.
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: Configure AlarmLITL

Post 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.
inserm
Posts: 24
Joined: Tue Jul 31, 2012 6:05 am

Re: Configure AlarmLITL

Post 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.
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: Configure AlarmTILT

Post 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
inserm
Posts: 24
Joined: Tue Jul 31, 2012 6:05 am

Re: Configure AlarmTILT

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