oldsk8trbabe et al,
Yep, I'm in the same situation - the new version of bind has a different rndc output which does not work with this template/script combination. Honestly, I'm surprised more people haven't been pinging this thread on the issue - everyone should have really upgraded by now!!
I found another post addressing the problem:
http://forums.cacti.net/viewtopic.php?t=27889
but this is using an SSH call to get the stats, which I could use, but I'd prefer not to - it just seems somewhat sloppy.
If no one else has made an effort to fix this to work with Bind 9.5 I may give it a shot ... However, I'm honestly thinking about re-writing it. I'm not a huge fan of the snmp index method that's being used, and while it may be easy to change these scripts, the data that topic 27889 is obtaining is much more complete:
Example:
Code: Select all
A:22041201 AAAA:7980418 ANY:365083 AXFR:372 CNAME:2067 IXFR:932 MX:1710500 NS:1557210 PTR:15318967 SOA:186675 SRV:116598 TXT:1766503 success:51294403 nonauthoritative:20634841 errors:20830475 nxdomain:6219919 recursion:33487474 dropped:36931
So, I may take the best of both this approach and the approach in post 27889 and come up with something different.
My initial thought is to simply populate one OID with that entire output string and use a Data Input Method to parse the different fields into separate Data sources. Granted this approach will not work well for the folks that rely on the indexing for multiple domains - at this point I am only concerned with GLOBAL, but in the future it would be easy to create new OIDs for new domains, and then utilize the pass_persist mentioned earlier to speed up performance. At any rate this may work a bit better because the poller only ends up doing one SNMPGET per domain, and it's up to Cacti to process the data accordingly - even though this really isn't how SNMP usually works.
Anyway, enough of my rambling... Any thoughts on this?