Problems with Net-SNMP on Windows
"Yair Zaretski" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <20E8AC2A004DC449AC469D1402C2586FE96596@iltlvmail02> |
Hi, I'm a newbie to Net-SNMP, so I'd appreciate the information anyone would be kind to provide. I was looking for a cross-platform product which will allow me to monitor servers and send SNMP traps to a central monitoring system. I'm unable to use some basic functions of Net-SNMP on Windows servers. I've installed the Net-SNMP 5.4.1 with Windows extension dll support. I'm trying to set up my snmpd.conf configuration file with "exec" and "monitor" directives, but none of them work. I also tried using "defaultMonitors yes" but still I didn't get nothing. I'm sending the traps to the local instance of snmptrapd which is configured to ignore all Authorizations with "disableAutorization yes" (for testing purposes). When I try to retrieve the results of the external scripts I run, I get nothing: C:\> snmpwalk -v 2c -c public localhost .1.3.6.1.4.1.2021.8 UCD-SNMP-MIB::extTable = No Such Object available on this agent at this OID C:\> Here is what I have in the snmpd.conf: <snmpd.conf> ######################################################################## ### # # snmpd.conf # # - created by the snmpconf configuration program # ######################################################################## ### # SECTION: System Information Setup # # This section defines some of the information reported in # the "system" mib group in the mibII tree. # syslocation: The [typically physical] location of the system. # Note that setting this value here means that when trying to # perform an snmp SET operation to the sysLocation.0 variable will make # the agent return the "notWritable" error code. IE, including # this token in the snmpd.conf file will disable write access to # the variable. # arguments: location_string syslocation "Test Win System" # syscontact: The contact information for the administrator # Note that setting this value here means that when trying to # perform an snmp SET operation to the sysContact.0 variable will make # the agent return the "notWritable" error code. IE, including # this token in the snmpd.conf file will disable write access to # the variable. # arguments: contact_string syscontact [email protected] ######################################################################## ### # SECTION: Access Control Setup # # This section defines who is allowed to talk to your running # snmp agent. # First, map the community name "public" into a "security name" # sec.name source community com2sec notConfigUser default public # Second, map the security name into a group name: # groupName securityModel securityName group notConfigGroup v1 notConfigUser group notConfigGroup v2c notConfigUser # Third, create a view for us to let the group have rights to: # name incl/excl subtree mask(optional) view systemview included .1 # Finally, grant the group read-only access to the systemview view. # group context sec.model sec.level prefix read write notif access notConfigGroup "" any noauth exact systemview none none ######################################################################## ### # SECTION: Trap Destinations # # Here we define who the agent will send traps to and when. # trapsink: A SNMPv1 trap receiver # arguments: host [community] [portnum] trapsink localhost # trap2sink: A SNMPv2c trap receiver # arguments: host [community] [portnum] trap2sink localhost # informsink: A SNMPv2c inform (acknowledged trap) receiver # arguments: host [community] [portnum] informsink localhost public # trapcommunity: Default trap sink community to use # arguments: community-string trapcommunity public # authtrapenable: Should we send traps when authentication failures occur # arguments: 1 | 2 (1 = yes, 2 = no) authtrapenable 2 # Set up the credentials to retrieve monitored values createUser internal MD5 "internal query user" iquerySecName internal rouser internal # Activate the standard monitoring entries defaultMonitors yes linkUpDownNotifications yes ######################################################################## ### # SECTION: Monitor Various Aspects of the Running Host # # The following check up on various aspects of a host. # disk: Check for disk space usage of a partition. # The agent can check the amount of available disk space, and make # sure it is above a set limit. # # disk PATH [MIN=100000] # # PATH: mount path to the disk in question. # MIN: Disks with space below this value will have the Mib's errorFlag set. # Can be a raw byte value or a percentage followed by the % # symbol. Default value = 100000. # # The results are reported in the dskTable section of the UCD-SNMP-MIB tree includeAllDisks 75% exec usrDiskCheck "C:\SNMP\Tests\disk_check.bat" monitor -o extOutput usrDiskCheck "extResult" != 0 </snmpd.conf> Like I mentioned before, none of the configuration seems to send traps to localhost's snmptrapd. I used the same configuration on a Linux server, AIX server and a Solaris server (apart from the "exec" directive which is different), and it did exactly what I was expecting it to. I went through the entire FAQ, README's and every other documentation I could find on the website. From what I saw there should be no difference between platforms in this version, but what I see is different. Can anyone shed some light on this issue? Yair Zaretski System Linux/Unix Consultant GlassHouse Technologies 3 Hatidhar st. Raanana Israel 43665 T: +972 (9) 7766444 F: +972 (9) 7421191 M: +972 (52) 4826093 [email protected] www.glasshouse.com <http://www.glasshouse.com/> ------------------------------------------------------------------------- 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
image001.jpg
(image/jpeg, 2.2 KB) - not displayed