OoO Lors de la soirée naissante du mardi 23 juin 2009, vers 18:27, Param
Srinivas <[email protected]> disait :
> Here's my question . I would like linux (redhat 5) to receive snmp traps from
> other windows server and also vmware environment.
> So in the installed net-snmp pakage. Then started the service "snmpd and
> snmptrapd" .
>
> When i do netstat i see :
>
> netstat -apln |grep 'snmp'
> tcp 0 0 127.0.0.1:199 0.0.0.0:*
> LISTEN 15096/snmpd
> udp 0 0 0.0.0.0:161
> 0.0.0.0:* 15096/snmpd
> udp 0 0 0.0.0.0:162
> 0.0.0.0:* 21708/snmptrapd
> unix 2 [ ] DGRAM 3624025637 21708/snmptrapd
> unix 2 [ ] DGRAM 3623826491 15096/snmpd
> Then, Enabled windows to send snmp trap to the linux server.
I don't know the default configuration of snmptrapd on RHEL, but you
surely need to add some instructions to allow it to receive traps from
your Windows servers.
For example, you could have:
doNotLogTraps no
authCommunity log,execute,net public
snmpTrapAddr 0.0.0.0
It should accept traps from any host as long as the community is set to
public. Moreover, you should find the traps received in
/var/log/messages.
> When i perform a snmpwalk i receive no response fromthe windows
> server.
This is another problem. In SNMP service properties, in Security tab,
you need to set the community and the list of hosts allowed to do SNMP
requests.
> My goal is to monitor windows resouse like HD,CPU,MEM and other parameters
> from
> linux.
Traps won't help you here. Traps are sent when a particular event
happen, for example when a service is stopped or when the host is
rebooted.
--
panic("Tell me what a watchpoint trap is, and I'll then
deal with such a beast...");
2.2.16 /usr/src/linux/arch/arch/sparc/kernel/traps.c
------------------------------------------------------------------------------
_______________________________________________
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