check_snmp_win.pl doesn't run for me

This is a discussion on check_snmp_win.pl doesn't run for me within the SNMP Users forums, part of the Networking and Network Related category; --===============1666679314== Content-Type: multipart/alternative; boundary="0-1792729142-1201905374=:32656" Content-Transfer-Encoding: 8bit --0-1792729142-1201905374=:32656 ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-01-2008
Jun Zhang
 
Posts: n/a
Default check_snmp_win.pl doesn't run for me

--===============1666679314==
Content-Type: multipart/alternative; boundary="0-1792729142-1201905374=:32656"
Content-Transfer-Encoding: 8bit

--0-1792729142-1201905374=:32656
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

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.
--0-1792729142-1201905374=:32656
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

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 &lt; 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>&nbsp;<br><br>my $resultat=undef;<br><br>$resultat = (Net::SNMP-&gt;VERSION &lt; 4) ?<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
$session-&gt;get_table($win_serv_name)<br>&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp;&nbsp;&nbsp;&nbsp; : $session-&gt;get_table(Baseoid =&gt; $win_serv_name);<br><br>if (!defined($resultat)) {<br>&nbsp;&nbsp; printf("ERROR: Process name table : %s.\n", $session-&gt;error);<br>&nbsp;&nbsp; $session-&gt;close;<br>&nbsp;&nbsp; exit $ERRORS{"UNKNOWN"};<br>}<p>



<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>


--0-1792729142-1201905374=:32656--


--===============1666679314==
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/
--===============1666679314==
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

--===============1666679314==--

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:45 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0