snmp.cfg 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. #ARG1 : host type (stand,netsc,netsl,as400,cisco,cata,nsc,fg,bc,nokia,hp,lp,hpux)
  2. #ARG2 : warning level
  3. #ARG3 : critical level
  4. #ARG4 : community
  5. define command{
  6. command_name check_snmp_load
  7. command_line $USER1$/check_snmp_load.pl -H $HOSTADDRESS$ -C $ARG4$ -2 -T $ARG1$ -w $ARG2$ -c $ARG3$
  8. }
  9. #ARG1 : regexp of storage name
  10. #ARG2 : warning level
  11. #ARG3 : critical level
  12. define command{
  13. command_name check_snmp_storage
  14. command_line $USER1$/check_snmp_storage.pl -H $HOSTADDRESS$ -C $ARG4$ -2 -m $ARG1$ -w $ARG2$ -c $ARG3$
  15. }
  16. #ARG1 : regexp of process name
  17. #ARG2 : warning level(s)
  18. #ARG3 : critical level(s)
  19. #ARG4 : additional arguments if needed.
  20. define command{
  21. command_name check_snmp_process
  22. command_line $USER1$/check_snmp_process.pl -H $HOSTADDRESS$ -C $ARG4$ -2 -n $ARG1$ -w $ARG2$ -c $ARG3$
  23. }
  24. #walk table oid
  25. define command {
  26. command_name check_snmp_switch_crc
  27. #host community port
  28. command_line $USER6$/check_snmp_db_crc.pl $HOSTADDRESS$ $ARG1$ $ARG2$
  29. }
  30. #get one oid by port
  31. define command {
  32. command_name check_snmp_switch_crc_simple
  33. #host community port
  34. command_line $USER6$/check_snmp_crc_simple.pl $HOSTADDRESS$ $ARG1$ $ARG2$
  35. }
  36. #check bandwidth usage at port
  37. define command {
  38. command_name check_snmp_bandwidth
  39. #host community port
  40. command_line $USER6$/check_snmp_db_bandwidth.pl $HOSTADDRESS$ $ARG1$ $ARG2$
  41. }
  42. # 'check_snmp' command definition
  43. define command{
  44. command_name check_snmp
  45. command_line $USER1$/check_snmp -H $HOSTADDRESS$ $ARG1$ -t 60
  46. }
  47. # 'check_ifoperstatus' command definition
  48. define command{
  49. command_name check_ifoperstatus
  50. command_line $USER6$/check_ifoperstatus -H $HOSTADDRESS$ -k $ARG1$ -C $ARG2$ -v 2
  51. }
  52. # 'check_ifoperstatus' command definition
  53. define command{
  54. command_name check_ifoperstatus_v3
  55. command_line $USER6$/check_ifoperstatus -H $HOSTADDRESS$ -k $ARG1$ -v 3 -L "authPriv" -U $ARG2$ -a $ARG3$ -P $ARG4$ -A $ARG5$ -X $ARG5$
  56. }