Found Answer:

As a datasource I used a command datasource: check_ng_analog ${here/manageIp} 
${here/zSnmpCommunity}

then on my collector I created a check_ng_analog shell script in 
/opt/zenoss/libexec  (Where ${here/zCommandPath} points to) 

The shell script contains the following.

HOST=$1
COMMUNITY=$2

a1=`snmpget -v 1 -c $COMMUNITY $HOST .1.3.6.1.4.1.2682.1.2.2.1.5.99.1.3  | sed 
-e 's/^.*\.\.\. *//' -e 's/"//'`
a2=`snmpget -v 1 -c $COMMUNITY $HOST .1.3.6.1.4.1.2682.1.2.2.1.5.99.1.4  | sed 
-e 's/^.*\.\.\. *//' -e 's/"//'`
a3=`snmpget -v 1 -c $COMMUNITY $HOST .1.3.6.1.4.1.2682.1.2.2.1.5.99.1.5  | sed 
-e 's/^.*\.\.\. *//' -e 's/"//'`
a4=`snmpget -v 1 -c $COMMUNITY $HOST .1.3.6.1.4.1.2682.1.2.2.1.5.99.1.6  | sed 
-e 's/^.*\.\.\. *//' -e 's/"//'`
a5=`snmpget -v 1 -c $COMMUNITY $HOST .1.3.6.1.4.1.2682.1.2.2.1.5.99.1.7  | sed 
-e 's/^.*\.\.\. *//' -e 's/"//'`
a6=`snmpget -v 1 -c $COMMUNITY $HOST .1.3.6.1.4.1.2682.1.2.2.1.5.99.1.8  | sed 
-e 's/^.*\.\.\. *//' -e 's/"//'`
a7=`snmpget -v 1 -c $COMMUNITY $HOST .1.3.6.1.4.1.2682.1.2.2.1.5.99.1.9  | sed 
-e 's/^.*\.\.\. *//' -e 's/"//'`
a8=`snmpget -v 1 -c $COMMUNITY $HOST .1.3.6.1.4.1.2682.1.2.2.1.5.99.1.10  | sed 
-e 's/^.*\.\.\. *//' -e 's/"//'`

echo "OK|analog1=$a1 analog2=$a2 analog3=$a3 analog4=$a4 analog5=$a5 
analog6=$a6 analog7=$a7 analog8=$a8"

 
Just posting the answer so if someone else is looking they might find it.




-------------------- m2f --------------------

Read this topic online here:
http://forums.zenoss.com/viewtopic.php?p=28965#28965

-------------------- m2f --------------------



_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to