This is a discussion on Re: check_snmp_win.pl doesn't run for me within the SNMP Users forums, part of the Networking and Network Related category; --===============1920395576== Content-Type: multipart/alternative; boundary="0-1904842412-1201906222=:85332" Content-Transfer-Encoding: 8bit --0-1904842412-1201906222=:85332 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
--===============1920395576==
Content-Type: multipart/alternative; boundary="0-1904842412-1201906222=:85332" Content-Transfer-Encoding: 8bit --0-1904842412-1201906222=:85332 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit "perldoc perllocal" told me I'm using Net::SNMP 5.2. Naively, I went in the file check_snmp_win.pl and changed "< 4" to a "> 4", and rerun my line -- I got the same error. Can somebody tell me now what's going on? One thing I'll do for sure is to get myself understand the three lines start from $resultat.... Jun Jun Zhang <nugulus@yahoo.com> wrote: I tried, check_snmp_win.pl -v -H localhost -C public -n Server and got ERROR: Process name table : Requested table is empty or does not exist. I located it is the printf line (within check_snmp_win.pl, listed bellow) generated the error message, so it is that $resultat is not defined. I can snmptranslate the oid for $win_serv_name. To my understanding, in order for $resultat to be defined, Net::SNMP version need to be < 4. I then checked its version using a perl script called chk_pm.pl, the output are the faces of two playing cards, a club is on the left, and something on the right -- no version information. I saw on the web some people run check_snmp_win.pl without a problem, can someone see what is my problem? Jun my $resultat=undef; $resultat = (Net::SNMP->VERSION < 4) ? $session->get_table($win_serv_name) : $session->get_table(Baseoid => $win_serv_name); if (!defined($resultat)) { printf("ERROR: Process name table : %s.\n", $session->error); $session->close; exit $ERRORS{"UNKNOWN"}; } --------------------------------- Never miss a thing. Make Yahoo your homepage. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse01200...______________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/...net-snmp-users --------------------------------- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. --0-1904842412-1201906222=:85332 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit "perldoc perllocal" told me I'm using Net::SNMP 5.2. Naively, I went in the file check_snmp_win.pl and changed "< 4" to a "> 4", and rerun my line -- I got the same error. Can somebody tell me now what's going on? One thing I'll do for sure is to get myself understand the three lines start from $resultat....<br><br>Jun<br><br><b><i>Jun Zhang <nugulus@yahoo.com></i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> I tried,<br>check_snmp_win.pl -v -H localhost -C public -n Server<br>and got<br>ERROR: Process name table : Requested table is empty or does not exist.<br><br>I located it is the printf line (within check_snmp_win.pl, listed bellow) generated the error message, so it is that $resultat is not defined. I can snmptranslate the oid for $win_serv_name. To my understanding, in order for $resultat to be defined, Net::SNMP version need to be < 4. I then checked its version using a perl script called chk_pm.pl, the output are the faces of two playing cards, a club is on the left, and something on the right -- no version information.<br><br>I saw on the web some people run check_snmp_win.pl without a problem, can someone see what is my problem?<br><br>Jun<br><br> <br><br>my $resultat=undef;<br><br>$resultat = (Net::SNMP->VERSION < 4) ?<br> &nb sp; $session->get_table($win_serv_name)<br>   ; & nbsp; : $session->get_table(Baseoid => $win_serv_name);<br><br>if (!defined($resultat)) {<br> printf("ERROR: Process name table : %s.\n", $session->error);<br> $session->close;<br> exit $ERRORS{"UNKNOWN"};<br>}<div> </div><hr size="1">Never miss a thing. <a href="http://us.rd.yahoo.com/evt=51438/*http://www.yahoo.com/r/hs"> Make Yahoo your homepage.</a> -------------------------------------------------------------------------<br>This SF.net email is sponsored by: Microsoft<br>Defy all challenges. Microsoft(R) Visual Studio 2008.<br>http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________<br >Net-snmp-users mailing list<br>Net-snmp-users@lists.sourceforge.net<br>Please see the following page to unsubscribe or change other options:<br>https://lists.sourceforge.net/lists/listinfo/net-snmp-users<br></blockquote><br><p> <hr size=1>Be a better friend, newshound, and know-it-all with Yahoo! Mobile. <a href="http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i...Dypao8Wcj9tAcJ "> Try it now.</a> --0-1904842412-1201906222=:85332-- --===============1920395576== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ --===============1920395576== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/...net-snmp-users --===============1920395576==-- |