[Nagiosplug-help] Cisco mem - 5min avr. (via SNMP) ?

christian janssen proftp_cj at kdd.de
Mon Apr 26 05:55:07 CEST 2004


Hi Michael,

thanks !!
If only peak available, then I'll use your "way".
Many thanks for the hint regarding different platforms and your examples.

Cheers
Christian


At 13:40 26.04.2004, Michael Markstaller wrote:
>I'm doing this on about 100 boxes working fine for process and IO-mem with 
>check_snmp.
>it's a peak-value, not an average but with retries it works similar to an 
>average because if it falls below again with 5 min (5 retries) no hard 
>state is reached..
>checkcommands and services.cfg below, maybe it helps (there are some 
>differences between platforms)
>
>Michael
>
>
>#### checkcommands.cfg ####
># check_cisco_mem: checks router free process/IO-memory
># Syntax 
>!Hostname!Community!WARN-BYTES-PROC!WARN-BYTES-IO!CRIT-BYTES-PROC!CRIT-BYTES-IO!
>define command{
>         command_name    check_cisco_mem
>         command_line    $USER1$/check_snmp -m SNMPv2-TM -t 5 -H 
> $HOSTADDRESS$ -o 
> .1.3.6.1.4.1.9.9.48.1.1.1.6.1,.1.3.6.1.4.1.9.9.48.1.1.1.6.2 -C $ARG1$ -w 
> $ARG2$:,$ARG3$: -c $ARG4$:,$ARG5$: -l 'Free memory' -D ' process / I/O '
>         }
>define command{
>         command_name    check_cisco_mem123XE
>         command_line    $USER1$/check_snmp -m SNMPv2-TM -t 5 -H 
> $HOSTADDRESS$ -o 
> .1.3.6.1.4.1.9.9.48.1.1.1.6.1,.1.3.6.1.4.1.9.9.48.1.1.1.6.3 -C $ARG1$ -w 
> $ARG2$:,$ARG3$: -c $ARG4$:,$ARG5$: -l 'Free memory' -D ' process / I/O '
>         }
>define command{
>         command_name    check_cisco_mem800
>         command_line    $USER1$/check_snmp -m SNMPv2-TM -t 5 -H 
> $HOSTADDRESS$ -o 
> .1.3.6.1.4.1.9.9.48.1.1.1.6.2,.1.3.6.1.4.1.9.9.48.1.1.1.6.10 -C $ARG1$ -w 
> $ARG2$:,$ARG3$: -c $ARG4$:,$ARG5$: -l 'Free memory' -D ' I/O / vm ' -u B,B
>         }
>
>
>
>#### services.cfg ####
># Freemem-check for all "big" routers, Warning if less than 5/1 MB proc/io
>define service{
>         use                             rz-service-info
>         host_name                       router1,router2
>         service_description             Memory
>         normal_check_interval           30
>#       event_handler                   start-tech_mem
>         check_command 
> check_cisco_mem!COMMUNITY!5000000!750000!2500000!500000
>         }
># Freemem-check for all "mid-size" routers, Warning if less than 2MB/400k 
>MB proc/io
>define service{
>         use                             rz-service-info
>         host_name                       router1,router2
>         service_description             Memory
>         normal_check_interval           30
>#       event_handler                   start-tech_mem
>         check_command 
> check_cisco_mem!COMMUNITY!1500000!400000!1000000!250000
>         }
># Special for IOmem OID changeg from .2 to .3 in 12.3.2XE ; Freemem-check 
>for all "big" routers, Warning if less than 5/1 MB proc/io
>define service{
>         use                             rz-service-info
>         host_name                       router1,router2
>         service_description             Memory
>         normal_check_interval           30
>#       event_handler                   start-tech_mem
>         check_command 
> check_cisco_mem123XE!COMMUNITY!5000000!750000!2500000!500000
>         }
># Special for IOmem OID changeg from .2 to .3 in 12.3.2XE ; Freemem-check 
>for all "mid-size" routers, Warning if less than 2MB/400k MB proc/io
>define service{
>         use                             rz-service-info
>         host_name                       router1,router2
>         service_description             Memory
>         normal_check_interval           30
>#       event_handler                   start-tech_mem
>         check_command 
> check_cisco_mem123XE!COMMUNITY!1500000!400000!1000000!250000
>         }
># Freemem-check for "small" routers <805, Warning if less than 125kB proc/io
>define service{
>         use                             rz-service-info
>         host_name                       router1,router2
>         service_description             Memory
>         normal_check_interval           30
>#       event_handler                   start-tech_mem
>         check_command 
> check_cisco_mem800!COMMUNITY!125000!4000000!100000!2000000
>         }
>
>
>-----Original Message-----
>From: nagiosplug-help-admin at lists.sourceforge.net
>[mailto:nagiosplug-help-admin at lists.sourceforge.net]On Behalf Of
>christian janssen
>Sent: Monday, April 26, 2004 10:31 AM
>To: nagiosplug-help at lists.sourceforge.net
>Subject: [Nagiosplug-help] Cisco mem - 5min avr. (via SNMP) ?
>
>
>
>## check_snmp ## Cisco 5 min memory usage
>
>Hi,
>
>I wanted to monitor the Cisco MEMORY usage (5min average) via SNMP.
>Or isn't this possible ?
>
>But I couldn't found something for this average value
>any predefined ?
>
>I found something like this, but seems not to work.
>
>ciscoMemoryPoolUtilization5Min
>          OID 1.3.6.1.4.1.9.9.48.1.2.1.2
>
>Any idea or comment
>
>-----------------------------------------------
>Other mem values which I fould are:
>
>ciscoMemoryPoolFree
>          OID 1.3.6.1.4.1.9.9.48.1.1.1.6
>
>(Free memory
>          .1.3.6.1.4.1.9.9.48.1.1.1.6.1
>          .1.3.6.1.4.1.9.9.48.1.1.1.6.2
>)
>
>
>
>ciscoMemoryPoolUsed
>          OID 1.3.6.1.4.1.9.9.48.1.1.1.5
>
>thxs
>Christian
>
>
>
>
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
>For a limited time only, get FREE Ground shipping on all orders of $35
>or more. Hurry up and shop folks, this offer expires April 30th!
>http://www.thinkgeek.com/freeshipping/?cpg=12297
>_______________________________________________
>Nagiosplug-help mailing list
>Nagiosplug-help at lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
>::: Please include plugins version (-v) and OS when reporting any issue.
>::: Messages without supporting info will risk being sent to /dev/null
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
>For a limited time only, get FREE Ground shipping on all orders of $35
>or more. Hurry up and shop folks, this offer expires April 30th!
>http://www.thinkgeek.com/freeshipping/?cpg297
>_______________________________________________
>Nagiosplug-help mailing list
>Nagiosplug-help at lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
>::: Please include plugins version (-v) and OS when reporting any issue.
>::: Messages without supporting info will risk being sent to /dev/null





More information about the Help mailing list