Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
[root@ns4 root]# snmpget -Cf -v2c -c public localhost .1.3.6.1.4.1.8767.2.1
BAYOUR-COM-MIB::bind9Stats = No Such Instance currently exists at this OID
+ Running data query [12].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/cacti-0.8.6h/resource/snmp_queries/bind9-stats_domains.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.8767.2.1.4.1'
+ Located input field 'b9stDomainName' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.8767.2.1.4.1.2'
+ Found item [b9stDomainName='No Such Instance currently exists at this OID'] index: 2 [from value]
+ Found data query XML file at '/var/www/cacti-0.8.6h/resource/snmp_queries/bind9-stats_domains.xml'
+ Found data query XML file at '/var/www/cacti-0.8.6h/resource/snmp_queries/bind9-stats_domains.xml'
+ Found data query XML file at '/var/www/cacti-0.8.6h/resource/snmp_queries/bind9-stats_domains.xml'
I seem to recall SELinux being elective in FC1, but I'm not sure about FC2. What about `rpm -qa | grep selinux`? If you see selinux-policy-targeted and the like, try this:
`echo "0" > /selinux/enforce`
And see if it responds to snmpget's that hit the pass_persist.
Does the script generate any errors when run by hand? I believe the script looks for the named statistics output at /var/cache/bind/named.stats. Is it possible you're keeping this elsewhere?
Nope; no output is as it should be. It should error out if this is not the case, but what the heck: there is a file called $log where $log is looking in the script, yes?