<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-15">
<META content="MSHTML 6.00.6000.16608" name=GENERATOR></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Microsoft Sans Serif">
<DIV>Hi Thomas,</DIV>
<DIV> </DIV>
<DIV>thank you this works.</DIV>
<DIV> </DIV>
<DIV>snmptranslate -On NET-SNMP-EXTEND-MIB::nsExtendOutputFull.\"testname\"</DIV>
<DIV> </DIV>
<DIV>I should the next once RTFM.</DIV>
<DIV> </DIV>
<DIV>bye</DIV>
<DIV>Uwe<BR><BR>>>> </DIV>
<DIV style="PADDING-LEFT: 7px; MARGIN: 0px 0px 0px 15px; BORDER-LEFT: #050505 1px solid; BACKGROUND-COLOR: #f3f3f3">
<TABLE style="FONT-WEIGHT: normal; FONT-SIZE: 10pt; LINE-HEIGHT: normal; FONT-STYLE: normal; FONT-VARIANT: normal" bgColor=#f3f3f3>
<TBODY>
<TR vAlign=top>
<TD><STRONG>Von: </STRONG></TD>
<TD>Thomas Guyot-Sionnest <dermoth@aei.ca></TD></TR>
<TR vAlign=top>
<TD><STRONG>An:</STRONG></TD>
<TD>Nagios Plugin Development Mailing List <nagiosplug-devel@lists.sourceforge.net></TD></TR>
<TR vAlign=top>
<TD><STRONG>Datum:</STRONG></TD>
<TD>29.05.08 00:57</TD></TR>
<TR vAlign=top>
<TD><STRONG>Betreff:</STRONG></TD>
<TD>Re: [Nagiosplug-devel] error in check_snmp (function spopen)</TD></TR></TBODY></TABLE>-----BEGIN PGP SIGNED MESSAGE-----<BR>Hash: SHA1<BR><BR>On 28/05/08 03:24 PM, Uwe Knop wrote:<BR>> Hallo,<BR>> <BR>> <BR>> i use externel commands with  'extend' function  with net-snmp.<BR>> <BR>> Here is an sample service check:<BR>> <BR>> check_snmp!public!'NET-SNMP-EXTEND-MIB::nsExtendOutputFull.\"testname\"'<BR>> <BR>> Access with numeric OID's  as far as i know,  not possible.<BR><BR>Have you tried snmptranslate -On <OID> ? It should give you the numeric OID.<BR><BR>Text strings in OIDs as encoded in ASCII using decimal notation, the<BR>first OID being the length of the string. If you want an example in Perl<BR>see my check_bigip_* plugins at<BR><A href="http://www.nagiosexchange.org/cgi">http://www.nagiosexchange.org/cgi</A>-bin/page.cgi?g=2447.html;d=1<BR><BR>Relevant code excerpts:<BR><BR>check_bigip_pool:<BR>  my $oidPoolName = $PoolName;<BR>  $oidPoolName =~ s/(.)/sprintf('.%u', ord($1))/eg;<BR>  $oidPoolName = length($PoolName) . $oidPoolName;<BR>  # Then append $oidPoolName to the base OID<BR><BR>check_bigip_vs:<BR>  $oid = $bip{$software}{'OID'};<BR>  my $vslength = length($virtualServer);<BR>  $virtualServer =~ s/(.)/sprintf('.%u', ord($1))/eg;<BR>  $oid .= $vslength . $virtualServer;<BR><BR>Thomas<BR>-----BEGIN PGP SIGNATURE-----<BR>Version: GnuPG v1.4.6 (GNU/Linux)<BR>Comment: Using GnuPG with Mozilla - <A href="http://enigmail.mozdev.org">http://enigmail.mozdev.org</A><BR><BR>iD8DBQFIPePi6dZ+Kt5BchYRAqxfAKCc8iHSlJha5599Y47eIEfx6PHUngCdEEW7<BR>97/GKyvGk+LeW97h/7Ynn90=<BR>=DVij<BR>-----END PGP SIGNATURE-----<BR><BR>-------------------------------------------------------------------------<BR>This SF.net email is sponsored by: Microsoft<BR>Defy all challenges. Microsoft(R) Visual Studio 2008.<BR><A href="http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/">http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/</A><BR>_______________________________________________________<BR>Nagios Plugin Development Mailing List Nagiosplug-devel@lists.sourceforge.net<BR>Unsubscribe at <A href="https://lists.sourceforge.net/lists/listinfo/nagiosplug">https://lists.sourceforge.net/lists/listinfo/nagiosplug</A>-devel<BR>::: Please include plugins version (-v) and OS when reporting any issue. <BR>::: Messages without supporting info will risk being sent to /dev/null<BR></DIV></BODY></HTML>