check_snmp_win.pl doesn't run for me
Jun Zhang <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
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