[Bug 406171] Re: COUNTER64 broken in NetSNMP::agent

2009-09-16 Thread Chuck Short
Statement of Impact:

Users trying to use NetSNMP::agent are unable to do so because Counter64
is broken.

How the bug has been addressed:

This bug has been addressed in the SVN tree for net-snmp (http://net-
snmp.svn.sourceforge.net/viewvc/net-snmp/branches/V5-4-patches/net-
snmp/perl/agent/agent.xs?view=patchr1=17246r2=17245pathrev=17246). I
have backported this patch for Karmic and have not backported for
Hardy,Intrepid, and Jaunty. The patch is attached.

How to reproduce:

See above in comment #3

Impact:

There should be no regressions with this patch.

** Attachment added: 99-fix-perl-counter-in-subagent.patch
   http://launchpadlibrarian.net/31899755/99-fix-perl-counter-in-subagent.patch

** Summary changed:

- COUNTER64 broken in NetSNMP::agent
+ [SRU] COUNTER64 broken in NetSNMP::agent

-- 
[SRU] COUNTER64 broken in NetSNMP::agent
https://bugs.launchpad.net/bugs/406171
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to net-snmp in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 406171] Re: COUNTER64 broken in NetSNMP::agent

2009-09-15 Thread Mathias Gug
** Also affects: net-snmp (Ubuntu Hardy)
   Importance: Undecided
   Status: New

-- 
COUNTER64 broken in NetSNMP::agent
https://bugs.launchpad.net/bugs/406171
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to net-snmp in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 406171] Re: COUNTER64 broken in NetSNMP::agent

2009-09-15 Thread Chuck Short
** Also affects: net-snmp (Ubuntu Intrepid)
   Importance: Undecided
   Status: New

-- 
COUNTER64 broken in NetSNMP::agent
https://bugs.launchpad.net/bugs/406171
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to net-snmp in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 406171] Re: COUNTER64 broken in NetSNMP::agent

2009-09-08 Thread Mathias Gug
** Also affects: net-snmp (Ubuntu Jaunty)
   Importance: Undecided
   Status: New

-- 
COUNTER64 broken in NetSNMP::agent
https://bugs.launchpad.net/bugs/406171
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to net-snmp in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 406171] Re: COUNTER64 broken in NetSNMP::agent

2009-09-04 Thread Launchpad Bug Tracker
This bug was fixed in the package net-snmp - 5.4.1~dfsg-12ubuntu5

---
net-snmp (5.4.1~dfsg-12ubuntu5) karmic; urgency=low

  * debian/patches/99-fix-perl-counter-in-subagent.patch: Fix for Counter64 in
perl subagent. (LP: #406171)

 -- Chuck Short zul...@ubuntu.com   Fri, 04 Sep 2009 12:10:01 -0500

** Changed in: net-snmp (Ubuntu)
   Status: New = Fix Released

-- 
COUNTER64 broken in NetSNMP::agent
https://bugs.launchpad.net/bugs/406171
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to net-snmp in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 406171] Re: COUNTER64 broken in NetSNMP::agent

2009-08-11 Thread Chuck Short
What version of net-snmp are you running?

Regards

-- 
COUNTER64 broken in NetSNMP::agent
https://bugs.launchpad.net/bugs/406171
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to net-snmp in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 406171] Re: COUNTER64 broken in NetSNMP::agent

2009-08-11 Thread dermoth
Latest from hardy-updates:

snmpget --version:
NET-SNMP version: 5.4.1

apt-cache show snmp:
Architecture: amd64
Source: net-snmp
Version: 5.4.1~dfsg-4ubuntu4.2

-- 
COUNTER64 broken in NetSNMP::agent
https://bugs.launchpad.net/bugs/406171
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to net-snmp in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 406171] Re: COUNTER64 broken in NetSNMP::agent

2009-08-08 Thread dermoth
** Changed in: net-snmp (Ubuntu)
   Status: Incomplete = New

-- 
COUNTER64 broken in NetSNMP::agent
https://bugs.launchpad.net/bugs/406171
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to net-snmp in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 406171] Re: COUNTER64 broken in NetSNMP::agent

2009-08-05 Thread Chuck Short
Could you please include a sample test program with the expected results
with and without the patch applied?

Thanks
chuck

** Changed in: net-snmp (Ubuntu)
   Status: New = Incomplete

-- 
COUNTER64 broken in NetSNMP::agent
https://bugs.launchpad.net/bugs/406171
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to net-snmp in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 406171] Re: COUNTER64 broken in NetSNMP::agent

2009-08-05 Thread dermoth
I didn't have any when I initially wrote this but I was writing an
embedded agent for testing special behaviours in Nagios-plugins's
check_snmp.

The easiest way to test is to take the latest nagios-plugins snapshot from 
http://repo.or.cz/w/nagiosplugins.git (there is a snapshot download link next 
to each shortlog entries), extract it, and from the plugins directory:
1. Run:
  perl tests/check_snmp.t -d 
it will output:
  Please contact SNMP at: N
This is the port to use in the next command

2. Run: (replace N with the port returned by he 1st command)
  snmpget -v2c -cpublic localhost:N .1.3.6.1.4.1.8072.3.2.67.4

On the first poll it should return Counter64:  18446744073709351616

If you have Math::Int64 you can enable it in tests/check_snmp_agent.pl
(uncomment the use line and comment out the dummy sub under it and
restart check_snmp.t) and each subsequent poll on this OID should return
the last polled value +10 until the counter roll over and restart
from 0 (there is a similar behaviour with Counter32 on the .3 oid).

If you don't have the module the value will be interpreted as a regular
number after the first poll and since Perl do not support long long
internally the results are unpredictable (they are predictable on the
first run as the data is still a string).

-- 
COUNTER64 broken in NetSNMP::agent
https://bugs.launchpad.net/bugs/406171
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to net-snmp in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 406171] Re: COUNTER64 broken in NetSNMP::agent

2009-07-28 Thread dermoth

** Attachment added: Patch from SVN for 5.4.x branch.
   http://launchpadlibrarian.net/29652830/perl-agent_COUNTER64.patch

-- 
COUNTER64 broken in NetSNMP::agent
https://bugs.launchpad.net/bugs/406171
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to net-snmp in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs