--> Groenleer has joined #net-snmp
--> Groenleer has joined #net-snmp
--> boogah has joined #net-snmp
--> tanders has joined #net-snmp
--> tris- has joined #net-snmp
--> krphop has joined #net-snmp
--> lievin_ has joined #net-snmp
--> royan has joined #net-snmp
--> darix has joined #net-snmp
--> blotchy has joined #net-snmp
--> glen has joined #net-snmp
--> boogah has joined #net-snmp
--> tanders has joined #net-snmp
--> _Groenleer has joined #net-snmp
--> tanders has joined #net-snmp
--> boogah has joined #net-snmp
--> glen has joined #net-snmp
--> blotchy has joined #net-snmp
--> lievin_ has joined #net-snmp
--> royan has joined #net-snmp
--> darix has joined #net-snmp
--> Groenleer has joined #net-snmp
--> tris has joined #net-snmp
--> tanders has joined #net-snmp
--> boogah has joined #net-snmp
--> glen has joined #net-snmp
--> blotchy has joined #net-snmp
--> lievin_ has joined #net-snmp
--> royan has joined #net-snmp
--> darix has joined #net-snmp
--> rstory-work has joined #net-snmp
--> hardaker has joined #net-snmp
--> hardaker has joined #net-snmp
--> daniele9821 has joined #net-snmp
[2010/08/19 10:30:11] #net-snmp <daniele9821> hello all, i search a bit of information according to SNMP. I've an HP MSA2324sa Cluster and i've seen in configuration there's SNMP where i can set the ip address. I want now configure a server to receive the snmp trap sent by HP ( i don't want sent trap to hp but i want only receive), it's possible?
[2010/08/19 10:32:03] #net-snmp <rstory-work> yes, snmptrapd will receive traps.
[2010/08/19 10:33:05] #net-snmp <daniele9821> rstory-work: ok, you've same tutorial , i've try to do it but without luck
[2010/08/19 10:34:49] #net-snmp <daniele9821> rstory-work: i can past my snmpd.conf file
[2010/08/19 10:35:19] #net-snmp <rstory-work> snmpd.conf is for the agent... you want snmptrapd, which receives traps...
[2010/08/19 10:35:50] #net-snmp <daniele9821> ops and the agent is HP?
[2010/08/19 10:37:39] #net-snmp <rstory-work> right. to use the official terms from the RFCs, the HP would be the 'notification originator', and snmptrapd is the 'notification receiver'.. (trap == notification)
[2010/08/19 10:40:24] #net-snmp <daniele9821> rstory-work: ok, now there's same simple tutorial to do this? i must only receive this trap!
[2010/08/19 10:43:28] #net-snmp <rstory-work> try http://www.net-snmp.org/wiki/index.php/TUT:Configuring_snmptrapd
[2010/08/19 10:45:20] #net-snmp <daniele9821> rstory-work: i'm start by this tutorial without luck
[2010/08/19 10:46:07] #net-snmp <daniele9821> rstory-work: another question : in my snmptrap.conf i've insert this command to receive notification by mail:
[2010/08/19 10:46:55] #net-snmp <daniele9821> traphandle default /usr/bin/perl /usr/bin/traptoemail -s xxx.xxxxx.xx -f xxx.xxx@xx.xx xxxx.xxx@xxx.xx
[2010/08/19 10:47:20] #net-snmp <daniele9821> but i receive 2 mail
[2010/08/19 10:47:27] #net-snmp <daniele9821> how to resolve this?
[2010/08/19 10:51:17] #net-snmp <rstory-work> hmm.. that would make me think that the config file is being read twice...
[2010/08/19 10:52:13] #net-snmp <daniele9821> rstory-work: to receive notification by mail i must start snmptrapd in this way: /usr/sbin/snmptrapd -f -Le -F "" -c /etc/snmp/snmptrapd.conf
[2010/08/19 10:52:22] #net-snmp <daniele9821> otherwise i not receive email
[2010/08/19 10:55:05] #net-snmp <rstory-work> ok, it should read /etc/snmp/snmptrapd.conf by default, so specifying it with -c will make it read it twice..
[2010/08/19 10:56:11] #net-snmp <rstory-work> this will tell you the files it is reading: snmptrapd -f -Lo -Dread_config -H 2>/dev/null | grep Reading
[2010/08/19 10:56:11] #net-snmp <daniele9821> yes but if i launch it by: /usr/sbin/snmptrapd start i not receive any mail
[2010/08/19 10:56:46] #net-snmp <daniele9821> root@ubuntu:/etc/snmp# snmptrapd -f -Lo -Dread_config -H 2>/dev/null | grep Reading
[2010/08/19 10:56:47] #net-snmp <daniele9821> read_config: Reading configuration /etc/snmp/snmptrapd.conf
[2010/08/19 10:56:47] #net-snmp <daniele9821> read_config: Reading configuration /etc/snmp/snmptrapd.conf
[2010/08/19 10:57:23] #net-snmp <rstory-work> /usr/sbin/snmptrapd is not a 'start' scrip... maybe you mean /etc/init.d/snmptrapd start... I'm not that familiar with the ubuntu package..
[2010/08/19 10:58:03] #net-snmp <daniele9821> rstory-work: i've try it whit red-hat also
[2010/08/19 10:58:08] #net-snmp <daniele9821> whit the same result
[2010/08/19 10:58:35] #net-snmp <daniele9821> if i launch /sbin/service snmptrapd start
[2010/08/19 10:58:38] #net-snmp <daniele9821> i not receive mail
[2010/08/19 10:59:19] #net-snmp <daniele9821> i try with this command to do if i receive mail: snmptrap -v 1 -d -c public localhost .1.3.6.1.4.1.2162 localhost 3 0 1000 .1.3.6.1.4.1.2.2.0 i 1
[2010/08/19 11:00:15] #net-snmp <daniele9821> and if i execute snmptrapd without the directive -f -Le -F "" -c /etc/snmp/snmptrapd.conf i not receive mail if i launch with this directive i receive 2 mail
[2010/08/19 11:01:51] #net-snmp <daniele9821> in my snmptrapd.conf there're only 2 lines:
[2010/08/19 11:02:16] #net-snmp <daniele9821> disableAuthorization yes
[2010/08/19 11:02:17] #net-snmp <daniele9821> traphandle default /usr/bin/perl /usr/bin/traptoemail -s xxx.xxxxx.xx -f xxx.xxx@xx.xx xxxx.xxx@xxx.xx
[2010/08/19 11:26:23] #net-snmp <daniele9821> no help for me?
[2010/08/19 11:36:15] #net-snmp <rstory-work> daniele9821: does ubuntu have a startup script for snmptrapd?
[2010/08/19 11:36:30] #net-snmp <daniele9821> for example?
[2010/08/19 11:37:43] #net-snmp <rstory-work> well, on redhat it would be /etc/init.d/snmptrapd
[2010/08/19 11:38:01] #net-snmp <daniele9821> rstory-work: we can use redhat is equal for me
[2010/08/19 11:38:09] #net-snmp <daniele9821> i've a virtual machine
[2010/08/19 11:38:25] #net-snmp <daniele9821> so, yes
[2010/08/19 11:38:46] #net-snmp <daniele9821> rstory-work: you want to past my snmptrapd.conf in redhat?
[2010/08/19 11:39:28] #net-snmp <rstory-work> sure... and look at /etc/sysconfig/snmptrapd to see what startup parameters redhat uses when starting snmptrapd
[2010/08/19 11:40:03] #net-snmp <daniele9821> one second i go in vpn
[2010/08/19 11:40:46] #net-snmp <rstory-work> looks like they don't have a sysconfig file, but the script defaults to "-Lsd -p /var/run/snmptrapd.pid"
[2010/08/19 11:41:04] #net-snmp <rstory-work> so on the virtual machine, turn 'service snmptrapd start' and see if it works...
--> daniele98212 has joined #net-snmp
[2010/08/19 11:44:26] #net-snmp <daniele98212> rstory-work: you read me??
[2010/08/19 11:44:38] #net-snmp <rstory-work> yes
[2010/08/19 11:44:40] #net-snmp <daniele98212> ok
[2010/08/19 11:44:51] #net-snmp <daniele98212> in /etc/sysconfig/snmptrapd.options
[2010/08/19 11:45:02] #net-snmp <daniele98212> # snmptrapd command line options
[2010/08/19 11:45:02] #net-snmp <daniele98212> # OPTIONS="-Lsd -p /var/run/snmptrapd.pid"
[2010/08/19 11:45:10] #net-snmp <daniele98212> i must decomment?
[2010/08/19 11:45:43] #net-snmp <rstory-work> yes, those should be reasonable defaults
[2010/08/19 11:46:26] #net-snmp <daniele98212> ok now:
[2010/08/19 11:46:26] #net-snmp <daniele98212> # snmptrapd command line options
[2010/08/19 11:46:26] #net-snmp <daniele98212> OPTIONS="-Lsd -p /var/run/snmptrapd.pid"
[2010/08/19 11:46:32] #net-snmp <daniele98212> now?
[2010/08/19 11:47:00] #net-snmp <rstory-work> run 'service snmptrapd start' and see if it works when you send a trap
[2010/08/19 11:48:28] #net-snmp <daniele98212> rstory-work: this line: snmptrap -v 1 -d -c public localhost .1.3.6.1.4.1.2162 localhost 3 0 1000 .1.3.6.1.4.1.2.2.0 i 1
[2010/08/19 11:48:28] #net-snmp <daniele98212> is a good test?
[2010/08/19 11:48:57] #net-snmp <rstory-work> sure
[2010/08/19 11:49:13] #net-snmp <daniele98212> in /var/log/messages:
[2010/08/19 11:49:29] #net-snmp <daniele98212> Aug 19 20:48:21 localhost snmptrapd[12593]: 2010-08-19 20:48:21 localhost.localdomain [127.0.0.1] (via UDP: [127.0.0.1]:34204) TRAP, SNMP v1, community public SNMPv2-SMI::enterprises.2162 Link Up Trap (0) Uptime: 0:00:10.00 SNMPv2-SMI::enterprises.2.2.0 = INTEGER: 1
[2010/08/19 11:50:10] #net-snmp <daniele98212> good and the mail was received
[2010/08/19 11:50:23] #net-snmp <daniele98212> you're great
[2010/08/19 11:50:42] #net-snmp <rstory-work> :-)
[2010/08/19 11:51:03] #net-snmp <daniele98212> now can i show you one screen of my HP to see if it's good configured to sent trap?
[2010/08/19 11:51:37] #net-snmp <rstory-work> i'm not familiar with hp, but i'll take a look
--> daniele9821 has joined #net-snmp
[2010/08/19 11:52:14] #net-snmp <daniele98212> ok
[2010/08/19 11:54:13] #net-snmp <daniele98212> rstory-work: ok i go in my Storage Management Utility by web interface, i go in configuration->services->SNMP->SNMP Notification
[2010/08/19 11:54:25] #net-snmp <daniele98212> i set:
[2010/08/19 11:55:14] #net-snmp <daniele98212> Notification Level:Informational (the other choice are:None,Critical,Warning)
[2010/08/19 11:55:31] #net-snmp <daniele98212> Read Community:public
[2010/08/19 11:55:54] #net-snmp <daniele98212> Write Community:private
[2010/08/19 11:56:09] #net-snmp <daniele98212> Trap Host 1 Address: MY IP
[2010/08/19 11:56:23] #net-snmp <daniele98212> Apply
[2010/08/19 11:56:24] #net-snmp <daniele98212> end
[2010/08/19 11:57:17] #net-snmp <daniele98212> according to you?
[2010/08/19 11:57:39] #net-snmp <daniele98212> ah my snmptrapd.conf in redhat is:
[2010/08/19 11:57:42] #net-snmp <rstory-work> looks ok
[2010/08/19 11:58:20] #net-snmp <daniele98212> [root@localhost ~]# cat /etc/snmp/snmptrapd.conf
[2010/08/19 11:58:21] #net-snmp <daniele98212> authCommunity log,execute,net public
[2010/08/19 11:58:21] #net-snmp <daniele98212> disableAuthorization yes
[2010/08/19 11:58:21] #net-snmp <daniele98212> traphandle default /usr/bin/perl /usr/bin/traptoemail -s xxxx.xxxxxx.xx -f xxxxx.xxxxx@xxxx.xxx x.xxxxx@xxxx.xx
[2010/08/19 11:59:22] #net-snmp <daniele98212> ok?
[2010/08/19 11:59:22] #net-snmp <rstory-work> once it's working, try commenting out the disableAuthorization line...
[2010/08/19 12:00:22] #net-snmp <daniele98212> rstory-work: there'are same other way to receive same trap...or i must attend one day to see if this works?
[2010/08/19 12:00:57] #net-snmp <rstory-work> i don't understand the question
[2010/08/19 12:01:19] #net-snmp <daniele98212> i.e. you've same snmp way to send me same trap
[2010/08/19 12:01:20] #net-snmp <daniele98212> ?
[2010/08/19 12:02:26] #net-snmp <rstory-work> i'm still not sure I understand.. are you asking if I could send a test trap to your ip?
[2010/08/19 12:02:43] #net-snmp <daniele98212> yess
[2010/08/19 12:02:56] #net-snmp <rstory-work> yes, i could do that
[2010/08/19 12:03:13] #net-snmp <daniele98212> how?
[2010/08/19 12:04:10] #net-snmp <rstory-work> using the same snmptrap command, but with your ip instead of localhost... snmptrap -v 1 -d -c public YOURIP .1.3.6.1.4.1.2162 localhost 3 0 1000 .1.3.6.1.4.1.2.2.0 i 1
[2010/08/19 12:07:31] #net-snmp <daniele98212> but if HP sent SNMPv2 and SNMPv3 i receive this?
[2010/08/19 12:08:14] #net-snmp <rstory-work> with disableAuthorization, i think you should receive anything...
[2010/08/19 12:08:34] #net-snmp <daniele98212> disableAuthorization yes ?
[2010/08/19 12:08:46] #net-snmp <rstory-work> correct
[2010/08/19 12:09:52] #net-snmp <daniele98212> ok thanks a lot for all and hope to receive same trap by HP
[2010/08/19 12:10:03] #net-snmp <rstory-work> good luck
[2010/08/19 12:10:08] #net-snmp <daniele98212> thanks
[2010/08/19 12:12:17] #net-snmp <daniele98212> no luck !!!! :(
[2010/08/19 12:12:34] #net-snmp <daniele98212> i've launched another redhat virtual machine
[2010/08/19 12:12:52] #net-snmp <daniele98212> i run :snmptrap -v 1 -d -c public 192.168.10.135 .1.3.6.1.4.1.2162 localhost 3 0 1000 .1.3.6.1.4.1.2.2.0 i 1
[2010/08/19 12:12:55] #net-snmp <daniele98212> output:
[2010/08/19 12:13:05] #net-snmp <daniele98212> Sending 57 bytes to UDP: [192.168.10.135]:162
[2010/08/19 12:13:07] #net-snmp <daniele98212> 0000: 30 37 02 01 00 04 06 70 75 62 6C 69 63 A4 2A 06 07.....public.*.
[2010/08/19 12:13:07] #net-snmp <daniele98212> 0016: 07 2B 06 01 04 01 90 72 40 04 7F 00 00 01 02 01 .+.....r@.......
[2010/08/19 12:13:07] #net-snmp <daniele98212> 0032: 03 02 01 00 43 02 03 E8 30 0F 30 0D 06 08 2B 06 ....C...0.0...+.
[2010/08/19 12:13:07] #net-snmp <daniele98212> 0048: 01 04 01 02 02 00 02 01 01
[2010/08/19 12:13:13] #net-snmp <rstory-work> check the redhat firewall config and see if it is allowing port 162 in...
[2010/08/19 12:13:27] #net-snmp <daniele98212> firewall is disabled
[2010/08/19 12:14:52] #net-snmp <daniele98212> no no arrived
[2010/08/19 12:15:00] #net-snmp <daniele98212> 1 minutes of horror :D
[2010/08/19 12:15:48] #net-snmp <daniele98212> but if i want send SNMPv2 and SNMPv3 traps?
[2010/08/19 12:21:42] #net-snmp <rstory-work> that should work too...
[2010/08/19 12:29:08] #net-snmp <daniele98212> the syntax?
[2010/08/19 12:49:21] #net-snmp <rstory-work> http://www.net-snmp.org/wiki/index.php/TUT:snmptrap_SNMPv3
[2010/08/19 12:49:29] #net-snmp <rstory-work> http://www.net-snmp.org/wiki/index.php/TUT:Configuring_snmptrapd_to_receive_SNMPv3_notifications
<-- daniele98212 has left #net-snmp
--> SJFriedl has joined #net-snmp
--> hardaker has joined #net-snmp
--> Linkadmin has joined #net-snmp
--> tris has joined #net-snmp
--> jsafrane has joined #net-snmp
--> snmpbot has joined #net-snmp