snmp
78 TopicsF5 SNMP OID Value
Hi, I am currently configuring SNMP V3 on my F5 LTM and want to monitor it using SolarWinds. -Currently from configuration utility i have configured a community as public (don't know if it is recommended) and default. -Then I have configured SNMP v3 agent and defined authentication and hostname and their respective passwords and send this to SolarWinds team. -I verified all the MIB files reside in /usr/share/snmp/mibs/ directory -I don't know how to specify OID value ? Can anyone please help what else can i do to configure SNMP correctly and how can I get OID value ? Thanks3.3KViews0likes7Commentssnmp-check external monitor
Problem this snippet solves: This external monitor script runs an snmpget to pool members and marks the members up or down based upon the result. Specifically created for this GTM/APM use case, but can be modified as needed. How to use this snippet: copy the contents of this file into /config/monitors/snmp-check, and then in the external monitor configuration, reference the monitor and provide the following variable key/value pairs: result=<result> community=<community> OID=<oid> Code : #!/bin/sh # # (c) Copyright 1996-2005 F5 Networks, Inc. # # This software is confidential and may contain trade secrets that are the # property of F5 Networks, Inc. No part of the software may be disclosed # to other parties without the express written consent of F5 Networks, Inc. # It is against the law to copy the software. No part of the software may # be reproduced, transmitted, or distributed in any form or by any means, # electronic or mechanical, including photocopying, recording, or information # storage and retrieval systems, for any purpose without the express written # permission of F5 Networks, Inc. Our services are only available for legal # users of the program, for instance in the event that we extend our services # by offering the updating of files via the Internet. # # @(#) $Id: sample_monitor,v 1.3 2005/02/04 18:47:17 saxon Exp $ # # # these arguments supplied automatically for all external pingers: # $1 = IP (nnn.nnn.nnn.nnn notation or hostname) # $2 = port (decimal, host byte order) # $3 and higher = additional arguments # # $MONITOR_NAME = name of the monitor # # In this sample script, $3 is the regular expression # #These lines are required to control the process ID of the monitor pidfile="/var/run/$MONITOR_NAME.$1..$2.pid" if [ -f $pidfile ] then kill -9 `cat $pidfile` > /dev/null 2>&1 fi echo "$$" > $pidfile #Since version9 uses the ipv6 native version of the IP address, parse that down #for usage node_ip=`echo $1 | sed 's/::ffff://'` #Log the variables for debugging #echo IP= $node_ip Port =$2 OID= $OID comm= $community result= $result >> /var/tmp/test #Create a variable called answer that contains the result of the snmpwalk. answer=`snmpget $node_ip -c $community -O v $OID | awk '{print $2}'` #Log the answer for debugging #echo Answer= $answer >> /var/tmp/test if [ $answer -lt $result ] then echo "up" fi rm -f $pidfile Tested this on version: No Version Found1.9KViews2likes5CommentsSNMP - No Such Object available on this agent at this OID
Supp! I need this disk space alert it keeps failing.. Also, is there any OID to track the % used space, as in var percentage in use? [root@bigip1:Active:Standalone] config # snmpwalk -v 2c -c public localhost .1.3.6.1.4.1.3375.2.4.0.25 F5-BIGIP-COMMON-MIB::bigipDiskPartitionWarn = No Such Object available on this agent at this OID [root@bigip1:Active:Standalone] config # This is insanity, why won't this work, looks like all oids are just wrong..1.8KViews0likes1CommentSNMP timeout even through localhost
Hello Devs! I have a 5250 appliance that for some odd reason is not responding to SNMP! Current config is as follows: root@(bigip1)(cfg-sync Standalone)(Active)(/Common)(tmos) list sys snmp sys snmp { agent-addresses { tcp6:161 udp6:161 } allowed-addresses { 127. 10.10.10.182 } communities { test { community-name mycommunity source default } } disk-monitors { root { minspace 2000 path / } var { minspace 10000 path /var } } process-monitors { bigd { process bigd } chmand { process chmand } httpd { max-processes infinity process httpd } mcpd { process mcpd } sod { process sod } tmm { max-processes infinity process tmm } } sys-contact nobody sys-location someplace } root@(bigip1)(cfg-sync Standalone)(Active)(/Common)(tmos) When the host tryes to do a snmp get, it timeouts. I can see the get coming in but big-ip never answers it... [root@bigip1:Active:Standalone] config tcpdump -i mgmt port 161 tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on mgmt, link-type EN10MB (Ethernet), capture size 65535 bytes 21:27:36.863972 IP 10.10.10.182.43518 > bigip1.local.snmp: C=mycommunity GetRequest(280) 31.1.1.1.6.256 31.1.1.1.10.256 interfaces.ifTable.ifEntry.ifInErrors.256 interfaces.ifTable.ifEntry.ifOutErrors.256 31.1.1.1.7.256 31.1.1.1.11.256 interfaces.ifTable.ifEntry.ifInDiscards.256 interfaces.ifTable.ifEntry.ifOutDiscards.256 31.1.1.1.1.256 31.1.1.1.6.240 31.1.1.1.10.240 interfaces.ifTable.ifEntry.ifInErrors.240 interfaces.ifTable.ifEntry.ifOutErrors.240 31.1.1.1.7.240 31.1.1.1.11.240 21:27:36.863988 IP 10.10.10.182.43518 > bigip1.local.snmp: C=mycommunity GetRequest(66) interfaces.ifTable.ifEntry.ifInDiscards.240 interfaces.ifTable.ifEntry.ifOutDiscards.240 31.1.1.1.1.240 21:27:41.866103 IP 10.10.10.182.43518 > bigip1.local.snmp: C=mycommunity GetRequest(280) 31.1.1.1.6.256 31.1.1.1.10.256 interfaces.ifTable.ifEntry.ifInErrors.256 interfaces.ifTable.ifEntry.ifOutErrors.256 31.1.1.1.7.256 31.1.1.1.11.256 interfaces.ifTable.ifEntry.ifInDiscards.256 interfaces.ifTable.ifEntry.ifOutDiscards.256 31.1.1.1.1.256 31.1.1.1.6.240 31.1.1.1.10.240 interfaces.ifTable.ifEntry.ifInErrors.240 interfaces.ifTable.ifEntry.ifOutErrors.240 31.1.1.1.7.240 31.1.1.1.11.240 21:27:41.866121 IP 10.10.10.182.43518 > bigip1.local.snmp: C=mycommunity GetRequest(66) interfaces.ifTable.ifEntry.ifInDiscards.240 interfaces.ifTable.ifEntry.ifOutDiscards.240 31.1.1.1.1.240 ^C 4 packets captured 9 packets received by filter 0 packets dropped by kernel [root@bigip1:Active:Standalone] config I even tryed doing a snmpwalk from localhost but it also didn't work. [root@bigip1:Active:Standalone] config snmpwalk -v 2c -c mycommunity 127.0.0.1 . Timeout: No Response from 127.0.0.1 [root@bigip1:Active:Standalone] config Doing 'bigstart restart snmpd' didn't solve the issue either. The only suspicious thing I have found is this log message on /var/log/daemon.log: [root@bigip1:Active:Standalone] config grep snmp /var/log/daemon.log Nov 7 18:19:01 bigip1 warning snmpd[5271]: Warning: no access control information configured. (Config search path: /usr/share/snmp) It's unlikely this agent can serve any useful purpose in this state. Run "snmpconf -g basic_setup" to help you configure the snmpd.conf file for this agent. Any ideas of what to do next? I really don't want to reload this box since it is not part of a cluster... Thanks! Rafael1.4KViews0likes9CommentsSNMP Pools
I'm trying to probe the status of a pool via SNMP and not translating the whole pool name into an OID as doing that for each and every pool is not efficient. On the F5 I can run the following command: snmpwalk -v2c -c public localhost F5-BIGIP-LOCAL-MIB::ltmPoolStatusAvailState.\"/Common/Pool1\" Returned: F5-BIGIP-LOCAL-MIB::ltmPoolStatusAvailState."/Common/Pool1" = INTEGER: green(1) Now to test without the MIB: snmpwalk -v2c -c public localhost 1.3.6.1.4.1.3375.2.2.5.5.2.1.2.\"/Common/Pool1\" Returned: F5-BIGIP-LOCAL-MIB::ltmPoolStatusAvailState."/Common/Pool1" = INTEGER: green(1) However, if I SNMP walk the device outside of the F5 with Nagios or Solarwinds SNMP walk tool 1.3.6.1.4.1.3375.2.2.5.5.2.1.2.\"/Common/Pool1\" neither program returns anything. Is there a better way to probe it outside the F5 without converting "/Common/Pool1" to an OID/decimal format?Solved1.3KViews0likes7CommentsSNMP CPU Usage
I'm curious what the difference between these two numbers is? sysGlobalHostCpuUsageRatio (uses a 5-second polling interval) sysGlobalHostCpuUsageRatio5s (also uses a 5-second polling interval) I know what I'm getting with the latter, but I'm not sure what the first one is actually reporting. Thanks.Solved1.3KViews0likes4CommentsPolling Pool Member Status via SNMP?
Hello... I've been working thru the documentation at https://devcentral.f5.com/questions/bigip-snmp-pool-members-info. I can successfully query the pool member status OIDs after using snmptranslate to find them. However if I disable a pool member from the UI the result of the query of the pool member status OID always seems to be "4" even though the pool member shows 'Available (Disabled) - Pool member is available, user disabled' in the UI. I am assuming the query result should return "25" if the pool member has been manually disabled? What should be the correct value returned from the pool member monitor state if the pool member has been manually disabled in the UI? Thanks!1.3KViews0likes2Comments