SNMP Traps
Posted: Wed Jan 25, 2017 12:12 pm
Can anybody help configuring the SNMP traps at nagios core?
Support for Nagios products and services
https://support.nagios.com/forum/
Code: Select all
GNU nano 2.0.9 File: test.cfg
define host{
host_name testcoreapp2
address 10.0.5.12
contacts nagiosadmin,systemadmin
check_command check-host-alive
max_check_attempts 5
check_interval 1
retry_interval 1
parents SMCSW
check_period 24x7
hostgroups KDS PHYSICAL SERVERS
statusmap_image rack-server.gd2
notification_interval 0
notification_options d,u,r,s
notification_period 24x7
}
define service{
name trap-service
use generic-service
register 0
is_volatile 1
check_command check-host-alive ;Used to reset the status to OK when 'Schedule an immediate check of this service' is selected
flap_detection_enabled 0 ; Flap detection is disabled
process_perf_data 0 ; Do not Process performance data
max_check_attempts 1
normal_check_interval 1
retry_check_interval 1
passive_checks_enabled 1
active_checks_enabled 0 ; Prevent active checks from occuring as we are only using passive checks
check_period none
notification_interval 31536000
notification_options w,u,c ; Notify on warning, unknown and critical
contact_groups admins
}
define service{
use trap-service
service_description Trap1
host_name testcoreapp2
}
Code: Select all
/var/log/snmptt/
/var/spool/snmptt