Thread: Trapsnmp nagios
View Single Post
  #10 (permalink)  
Old 29-Jun-2009, 03:00
ophicius ophicius is offline
Puzzled Penguin
 
Join Date: Jun 2009
Posts: 14
ophicius hasn't been rated much yet
Default Re: Trapsnmp nagios

hi,

i would like to put that in my nagios file configuration :

Quote:
define service{
name generic-service
register 0
check_period 24x7
max_check_attempts 3
normal_check_interval 15
retry_check_interval 5
active_checks_enabled 1
passive_checks_enabled 0
parallelize_check 1
obsess_over_service 0
check_freshness 0
event_handler_enabled 0
flap_detection_enabled 0
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
notification_interval 60
notification_period 24x7
notification_options w,u,c,r
notifications_enabled 1
}

define service{
name snmptrap-service
use generic-service
register 0
service_description TRAP
is_volatile 1
check_command check-host-alive
max_check_attempts 1
normal_check_interval 1
retry_check_interval 1
passive_checks_enabled 1
check_period none
notification_interval 31536000
contact_groups toutlemonde
}
but i don't have services file

Quote:
drwxrwxr-x 2 nagios nagios 4096 juin 15 15:27 ./
drwxrwxr-x 3 nagios nagios 4096 juin 15 15:29 ../
-rw-rw-r-- 1 nagios nagios 7722 juin 15 15:27 commands.cfg
-rw-rw-r-- 1 nagios nagios 7722 juin 15 15:25 commands.cfg~
-rw-rw-r-- 1 nagios nagios 2166 juin 15 15:27 contacts.cfg
-rw-rw-r-- 1 nagios nagios 2166 juin 15 15:25 contacts.cfg~
-rw-rw-r-- 1 nagios nagios 5403 juin 15 15:27 localhost.cfg
-rw-rw-r-- 1 nagios nagios 5403 juin 15 15:25 localhost.cfg~
-rw-rw-r-- 1 nagios nagios 3124 juin 15 15:27 printer.cfg
-rw-rw-r-- 1 nagios nagios 3124 juin 15 15:25 printer.cfg~
-rw-rw-r-- 1 nagios nagios 3293 juin 15 15:27 switch.cfg
-rw-rw-r-- 1 nagios nagios 3293 juin 15 15:25 switch.cfg~
-rw-rw-r-- 1 nagios nagios 10812 juin 15 15:27 templates.cfg
-rw-rw-r-- 1 nagios nagios 10812 juin 15 15:25 templates.cfg~
-rw-rw-r-- 1 nagios nagios 3209 juin 15 15:27 timeperiods.cfg
-rw-rw-r-- 1 nagios nagios 3209 juin 15 15:25 timeperiods.cfg~
-rw-rw-r-- 1 nagios nagios 4007 juin 15 15:27 windows.cfg
-rw-rw-r-- 1 nagios nagios 4007 juin 15 15:25 windows.cfg~
thks
Reply With Quote