Error: Template 'passive-check-template'

Hariharan Sankararaman hariharan_wan at yahoo.com
Wed Sep 27 08:15:11 CEST 2006


Dear all,

I am using Fedore core 5 and i have install nagios for Network monitoring. 
Version Details:
OS - Linux Fedora Core 5
Application : Nagios 2.5
SNMP 5.3.1
CISCO MIB file using V1
My Setup description:
1 .SNMP trap daemon will receive SNMP traps 
2 . SNMP trap daemon will handle traps to /var/spool/snmptt
3. SNMPTT will get the traps from /var/spool/snmptt directory
4. SNMPTT translate the mibs and handover to syslog (/var/log/message)
5 . I have called SEC to correlate the events from syslog and sec will in turn use the python script to correlate the event to handover to nagios cmd.
I am verifying the documents form sysadmin site.

I have copied the same service templates from the site for my configuration.
iam using minimal.cfg as object configuartion file in that service template is given below


define service {
    use    passive-check-template
    name   generic-snmptrap
   
 service_description    snmp_trap_handling
    is_volatile 1
    check_period    none
    notification_interval    120
    notification_options    w,u,c,r
    notification_period    24x7
    check_command    passive_check_missing
    max_check_attempts    1
    check_freshness    0
    stalking_options    o,w,u,c
    register 0
}
define service {
    use    generic-snmptrap
    host_name     my_example_host
    contact_groups    my_example_group
    service_description    snmp_trap_handling_ok
}

define service {
    use    generic-snmptrap
    host_name    my_example_host
    contact_groups    my_example_group
    service_description    snmp_trap_handling_warning
}

define service {
    use    generic-snmptrap
    host_name     my_example_host
    contact_groups    my_example_group
    service_description    snmp_trap_handling_critical
}



when i execute nagios it  says error message as given below

Error: Template 'passive-check-template' specified in service definition could not be not found (config file '/etc/nagios/minimal.cfg', starting on line 307)
Error: Invalid max_attempts, check_interval, retry_interval, or notification_interval value for service 'snmp_trap_handling_Critical' on host 'router1'
Error: Could not register service (config file '/etc/nagios/minimal.cfg', starting on line 330)
how to integrate SNMP traps in nagios web browser


Pls find my configuration files with this . Pls help me in this regard

With Regards
Hariharan


 		
---------------------------------
 All-new Yahoo! Mail - Fire up a more powerful email and get things done faster.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20060926/789abe89/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list