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
Could not insert number larger than 2147483647 into MIBs
Moderators: Developers, Moderators
-
- Posts: 11
- Joined: Thu Aug 18, 2005 2:02 am
..
i not sure you read old rep. i see talk about this problem. i remember that change int variable to varchar variable
- fmangeant
- Cacti Guru User
- Posts: 2345
- Joined: Fri Sep 19, 2003 8:36 am
- Location: Sophia-Antipolis, France
- Contact:
Hi
you have reached the 32-bit limit :
Maybe you could try 64-bit counters.
you have reached the 32-bit limit :
Code: Select all
$ echo "(2^32)/2" | bc
2147483648
[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]
[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]
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).
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
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
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
Who is online
Users browsing this forum: No registered users and 0 guests