"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 <[EMAIL PROTECTED]> 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/vse0120000070mrt/direct/01/_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.-------------------------------------------------------------------------
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/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users