Good morning......

I'm attempting to override the non-value for hrProcessorLoad in order to
allow SolarWinds to poll our Linux servers since net-snmp doesn't
provide a value for this internally.  The script below works fine if the
specific OID is polled, but doesn't work properly when doing a snmpwalk.

I've looked through the online documentation, man pages, and done
various google searches and haven't seen anything aside from a few vague
mailing list posts on the subject.  Most of which with no replies.

I'm hoping somebody with more insight than I can look at the following
and tell me why this isn't working.  I tried replacing the -n section
with a section that looks similar to the -g section (with a different
OID) with no luck.

Any help would be appreciated.

#!/bin/bash

if [ "$1" = "-g" ]; then
        echo ".1.3.6.1.2.1.25.3.3.1.1.769"
        echo "objectid"
        echo "0.0"
elif [ "$1" = "-n" ]; then
         echo ".1.3.6.1.2.1.25.3.3.1.2.769"
         echo "integer"
         echo `/usr/bin/mpstat | /bin/grep all | /bin/awk '{ printf
"%.0i",100-$7+1}'`
else
         echo ".1.3.6.1.2.1.25.3.3.1.2.769"
         echo "integer"
         echo `/usr/bin/mpstat | /bin/grep all | /bin/awk '{ printf
"%.0i",100-$7+1}'`
fi
exit 0

---
Mark A. Hoover
AIS Center
Systems Administrator 

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to