Re: custom SNMP for custom graph

2010-03-09 Thread Mihamina Rakotomandimby
> Then in my /etc/snmp/snmpd.conf, I added: > exec .1.3.6.1.4.1.2021.254 ocsigen /usr/local/bin/ocsigen_access grepping the logs: Mar 10 07:00:11 ns309487 snmpd[12609]: /etc/snmp/snmpd.conf: line 335: Error: ERROR: This output format has been deprecated Please use the 'extend' directive i

Re: rfc: changing snmpwalk default starting point

2010-03-09 Thread Magnus Fromreide
On Tue, 2010-03-09 at 09:35 -0500, Robert Story wrote: > There was some discussion in the IRC channel this morning about the default > behavior of snmpwalk biting newbies. They will often run snmpwalk without > specifying a starting point, and by default snmpwalk will start the walk on > the mib-2

Re: etherlike-mib on Linux

2010-03-09 Thread Robert Story
On Tue, 09 Mar 2010 15:48:54 +0100 Josef wrote: JM> > no, you should be able to just attach the new file... you might need to reopen JM> > the patch, as Dave probably closed it when he applied the last patch... JM> JM> OK, so here goes. JM> JM> The patch is attached and it completely replaces th

Re: sending trap

2010-03-09 Thread Robert Story
On Tue, 9 Mar 2010 15:17:23 +0200 maxim wrote: MM> Hi to all, MM> Somebody can to explain me how i can to populate MIB tables to specify MM> the destination address of trap from subagent? Check out these new wiki pages I just created: http://www.net-snmp.org/wiki/index.php/SNMP_notification_proce

Re: custom SNMP for custom graph

2010-03-09 Thread Dave Shield
On 9 March 2010 14:26, Mihamina Rakotomandimby wrote: > I have a script: > > /usr/local/bin/ocsigen_access containing: > >  #!/bin/bash > Then in my /etc/snmp/snmpd.conf, I added: > >  exec .1.3.6.1.4.1.2021.254 ocsigen /usr/local/bin/ocsigen_access Try using "sh" instead of "exec" Dave

Re: rfc: changing snmpwalk default starting point

2010-03-09 Thread Bill Fenner
On Tue, Mar 9, 2010 at 9:35 AM, Robert Story wrote: > There was some discussion in the IRC channel this morning about the default > behavior of snmpwalk biting newbies. They will often run snmpwalk without > specifying a starting point, and by default snmpwalk will start the walk on > the mib-2 br

custom SNMP for custom graph

2010-03-09 Thread Mihamina Rakotomandimby
Manao ahoana, Hello, Bonjour, I have an already working MRTG+SNMP+Apache here: http://srv3.rktmb.org:90/mrtg/ I try to make a custom MRTG graph First, I need to build SNMP stuff. Say I want to monitor the access of my web server by counting the number of lines of my access_log file. Just that si

Re: rfc: changing snmpwalk default starting point

2010-03-09 Thread Josef Moellers
Robert Story wrote: > There was some discussion in the IRC channel this morning about the default > behavior of snmpwalk biting newbies. They will often run snmpwalk without > specifying a starting point, and by default snmpwalk will start the walk on > the mib-2 branch. This leaves users puzzled a

Re: etherlike-mib on Linux

2010-03-09 Thread Josef Moellers
Robert Story wrote: > On Tue, 09 Mar 2010 14:01:46 +0100 Josef wrote: > JM> How do I publish this patch? Do I have to do > JM> special things to replace the original patch? > > no, you should be able to just attach the new file... you might need to reopen > the patch, as Dave probably closed it wh

Re: etherlike-mib on Linux

2010-03-09 Thread Robert Story
On Tue, 09 Mar 2010 14:01:46 +0100 Josef wrote: JM> How do I publish this patch? Do I have to do JM> special things to replace the original patch? no, you should be able to just attach the new file... you might need to reopen the patch, as Dave probably closed it when he applied the last patch...

rfc: changing snmpwalk default starting point

2010-03-09 Thread Robert Story
There was some discussion in the IRC channel this morning about the default behavior of snmpwalk biting newbies. They will often run snmpwalk without specifying a starting point, and by default snmpwalk will start the walk on the mib-2 branch. This leaves users puzzled as to why they aren't getting

Re: sending trap

2010-03-09 Thread maxim maxim
Hi to all, Somebody can to explain me how i can to populate MIB tables to specify the destination address of trap from subagent? Thanks 2010/3/8 maxim maxim : > Hi Dave, > Can you describe in details the second option with SNMP SET requests. > > Thanks, > Maxim > > 2010/3/8 Dave Shield : >> On 7

Re: etherlike-mib on Linux

2010-03-09 Thread Josef Moellers
Dave Shield wrote: > On 10 February 2010 11:02, Josef Moellers > wrote: I'd like to amend the etherlike-mib code for Linux >> The patch (against 5.5) is appended. > > OK - that patch has been applied to the 5.5.x and main development branches. Based upon the remarks of Stephen and the

Re: Decrypting an SNMP PDU off the wire

2010-03-09 Thread Dave Shield
On 8 March 2010 16:55, Shehzad Qureshi wrote: > I'm writing a small application that takes an Ethernet frame (straight > from the kernel) and parses the SNMP data included within against a > set of rules to determine if the packet should be forwarded or > dropped. The application is for a small em