Could not insert number larger than 2147483647 into MIBs

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
joe_hznm
Posts: 29
Joined: Thu May 19, 2005 12:29 am

Could not insert number larger than 2147483647 into MIBs

Post by joe_hznm »

HI ,

I'm using bind9-stats plugin(by Cory Powers) monitoring our DNS servers. After months of running, I noticed that that script always insert 2147483647 into private OID created for BIND9 status. e.g. when bind reports successful queries is 2584914761, that script insert 2147483647 into OID .1.3.6.1.4.1.2021.55.3.1.

How can I fix this problem?

Joe
pat_ra2001
Posts: 11
Joined: Thu Aug 18, 2005 2:02 am

..

Post by pat_ra2001 »

i not sure you read old rep. i see talk about this problem. i remember that change int variable to varchar variable
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi

you have reached the 32-bit limit :

Code: Select all

$ echo "(2^32)/2" | bc
2147483648
Maybe you could try 64-bit counters.
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
joe_hznm
Posts: 29
Joined: Thu May 19, 2005 12:29 am

Post by joe_hznm »

Would you please tell me where to find more details? I'm not a programmer.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

If you device supports SNMP v2c, then you are in luck. Delete your graph and data template for this device. Change the device to use SNMP v2c. Then create a new graph which uses 64bit counters (instead of 32bit).
joe_hznm
Posts: 29
Joined: Thu May 19, 2005 12:29 am

Post by joe_hznm »

In fact, the problem does not comes up with cacti itself. The bind9-statistics addon build private OIDs in SNMP MIB tree. There is a script running on DNS server which dump bind9 statistics every 5 minutes. The NetSNMP uses a script to assign values to those private OIDs. The OID which represent the amount of successful DNS queries is a INTEGER which is 32bits long. While the accumulated number of successful queries reach 2584914761 after months of running. So, I always got 2147483647 with snmpwalk.

On cacti side, I set DNS server to use snmpv2 ( there is not a v2c option in "create new device" page).

As I have no experience with SNMP programing, I don't know how to modify the script to make the OID a 64bits number.

Would anybody could do some help?

the scripts is located at: http://uversaconsulting.net/download/bi ... 1.0.tar.gz.



Joe
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests