trap snmp
Pascal RENAUT/GROUPE-ES
pascal.renaut at electricite-strasbourg.fr
Wed Jun 25 10:00:53 CEST 2003
Hi the nagios people,
I would like to manage traps snmp and below what i made...
1-in /usr/local/bin/snmptrapd.conf,
format1 #for snmp V1
traphandle default echo "['date +%s']
PROCESS_SERVICE_CHECK_RESULT;commut_test;trap_test;1;resultat_test" >>
/usr/local/nagios/rw/nagios.cmd
2-in /usr/local/nagios/etc/services.cfg
define service{
name generic-service-trap
active_checks_enabled 0
passive_checks_enabled 1
parallelize_check 1
is_volatile 1
obsess_over_service 0
check_freshness 0
notifications_enabled 1
event_handler_enabled 0
flap_detection_enabled 0
process_perf_data 0
retain_status_information 1
retain_nonstatus_information 1
register 0
}
define service{
use generic-service-trap
host_name commut-test
service_description trap_test
check_period 24x7
max_check_attempts 1
normal_check_interval 5
retry_check_interval 1
contact_groups nagios-admin-grp
notification_interval 5
notification_period 24x7
notification_options w,u,c,r
check_command check_none
}
3-and start the snmptrad daemon by /usr/local/sbin/snmptrapd
but with this, it doesn't work...
What's the problem ?
Thanks for your help
....................................................................................................
Pascal RENAUT / Département Ingénierie Réseaux (I.R.) / Groupe Electricité
de Strasbourg / 67953 Strasbourg Cedex 9
Tél : 33 (0) 369 20 6138 / Fax : 33 (0) 369 20 6045 / Email :
pascal.renaut at electricite-strasbourg.fr
-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
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