Cacti BIND 9.8 Help

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
haseebkhalidsheikh
Posts: 1
Joined: Sat Dec 13, 2014 7:16 am

Cacti BIND 9.8 Help

Post by haseebkhalidsheikh »

Dear forum Members,
Please help if I am doing any thing wrong in configuring BIND 9.8 monitoring on Cacti 0.8.8.
Linux and BIND Version

Code: Select all

[root@ns03 bin]# cat /etc/system-release
Red Hat Enterprise Linux Server release 6.5 (Santiago)
[root@ns03 bin]# named -v
BIND 9.8.2rc1-RedHat-9.8.2-0.23.rc1.el6_5.e]
Named Config Statistics

Code: Select all

[root@ns03 bin]# cat /var/named/chroot/etc/named.conf | grep statistics
statistics-channels {
        statistics-file "/var/named/data/named_stats.txt";
        zone-statistics yes;

        memstatistics-file "/var/named/data/named_mem_stats.txt";
SNMPD.conf

Code: Select all

[root@ns03 bin]# cat /etc/snmp/snmpd.conf
rocommunity  public
com2sec notConfigUser  default       public
view    systemview    included   .1.3.6.1
extend .1.3.6.1.4.1.18689.0.1 dnscache-stats /bin/runstats.sh
RUNSTATS.sh

Code: Select all

[root@ns03 bin]# cat runstats.sh 
#!/bin/sh
rm -rf /var/named/chroot/var/named/data/named_stats.txt 
rndc stats
cat /var/named/chroot/var/named/data/named_stats.txt | /bin/dnsstats.pl
Verify runstats gathering stats from RNDC

Code: Select all

[root@ns03 bin]# cd /bin
[root@ns03 bin]# ./runstats.sh 
WARNING: key file (/etc/rndc.key) exists, but using default configuration file (/etc/rndc.conf)
a:102496 a6:3 aaaa:4064 any:39 cname:4 mx:1542 naptr:0 ns:937 ptr:1448 soa:3404 spf:7 srv:22964 txt:187 rsnx:37 rsfail:56 rserr:1 rsipv4qs:7557 rsipv4rr:2663 rsmismatch: rsqr:7290 rsqt:4945 rsrtt10: rsrtt100500:2261 rsrtt10100:62 rsrtt1600:6 rsrtt500800:279 rsrtt8001600:55 sockopen:7051 sockclosed:7049 sockbf: consest:7011 recverr:[root@ns03 bin]# 

Code: Select all

[root@ns03 bin]# snmpwalk -c public -v 2c localhost .1.3.6.1.4.1.18689.0.1
SNMPv2-SMI::enterprises.18689.0.1.1.0 = INTEGER: 1
SNMPv2-SMI::enterprises.18689.0.1.2.1.2.14.100.110.115.99.97.99.104.101.45.115.116.97.116.115 = STRING: "/bin/runstats.sh"
SNMPv2-SMI::enterprises.18689.0.1.2.1.3.14.100.110.115.99.97.99.104.101.45.115.116.97.116.115 = ""
SNMPv2-SMI::enterprises.18689.0.1.2.1.4.14.100.110.115.99.97.99.104.101.45.115.116.97.116.115 = ""
SNMPv2-SMI::enterprises.18689.0.1.2.1.5.14.100.110.115.99.97.99.104.101.45.115.116.97.116.115 = INTEGER: 5
SNMPv2-SMI::enterprises.18689.0.1.2.1.6.14.100.110.115.99.97.99.104.101.45.115.116.97.116.115 = INTEGER: 1
SNMPv2-SMI::enterprises.18689.0.1.2.1.7.14.100.110.115.99.97.99.104.101.45.115.116.97.116.115 = INTEGER: 1
SNMPv2-SMI::enterprises.18689.0.1.2.1.20.14.100.110.115.99.97.99.104.101.45.115.116.97.116.115 = INTEGER: 4
SNMPv2-SMI::enterprises.18689.0.1.2.1.21.14.100.110.115.99.97.99.104.101.45.115.116.97.116.115 = INTEGER: 1
SNMPv2-SMI::enterprises.18689.0.1.3.1.1.14.100.110.115.99.97.99.104.101.45.115.116.97.116.115 = STRING: "WARNING: key file (/etc/rndc.key) exists, but using default configuration file (/etc/rndc.conf)"
SNMPv2-SMI::enterprises.18689.0.1.3.1.2.14.100.110.115.99.97.99.104.101.45.115.116.97.116.115 = STRING: "WARNING: key file (/etc/rndc.key) exists, but using default configuration file (/etc/rndc.conf)
a:120995 a6:3 aaaa:4446 any:41 cname:4 mx:1813 naptr:0 ns:1106 ptr:1812 soa:4206 spf:7 srv:27775 txt:229 rsnx:43 rsfail:68 rserr:2 rsipv4qs:8367 rsipv4rr:2976 rsmismatch: rsqr:8052 rsqt:5445 rsrtt10: rsrtt100500:2526 rsrtt10100:71 rsrtt1600:7 rsrtt500800:303 rsrtt8001600:69 sockopen:7814 sockclosed:7809 sockbf: consest:7768 recverr:"
SNMPv2-SMI::enterprises.18689.0.1.3.1.3.14.100.110.115.99.97.99.104.101.45.115.116.97.116.115 = INTEGER: 2
SNMPv2-SMI::enterprises.18689.0.1.3.1.4.14.100.110.115.99.97.99.104.101.45.115.116.97.116.115 = INTEGER: 0
SNMPv2-SMI::enterprises.18689.0.1.4.1.2.14.100.110.115.99.97.99.104.101.45.115.116.97.116.115.1 = STRING: "WARNING: key file (/etc/rndc.key) exists, but using default configuration file (/etc/rndc.conf)"
SNMPv2-SMI::enterprises.18689.0.1.4.1.2.14.100.110.115.99.97.99.104.101.45.115.116.97.116.115.2 = STRING: "a:120995 a6:3 aaaa:4446 any:41 cname:4 mx:1813 naptr:0 ns:1106 ptr:1812 soa:4206 spf:7 srv:27775 txt:229 rsnx:43 rsfail:68 rserr:2 rsipv4qs:8367 rsipv4rr:2976 rsmismatch: rsqr:8052 rsqt:5445 rsrtt10: rsrtt100500:2526 rsrtt10100:71 rsrtt1600:7 rsrtt500800:303 rsrtt8001600:69 sockopen:7814 sockclosed:7809 sockbf: consest:7768 recverr:"
On Cacti Server

Code: Select all

[root@cacti scripts]# cd /var/www/cacti/scripts/
[root@cacti scripts]# ls -ltr
total 4
-rwxr-xr-x 1 apache apache 196 Dec 13 10:20 bind-stats.sh
[root@cacti scripts]# cat bind-stats.sh 
#!/bin/sh
#$1=ns03
#$2=public 
/usr/bin/snmpget -c public -v 2c -Ovq 172.18.15.37 .1.3.6.1.4.1.18689.0.1.4.1.2.14.100.110.115.99.97.99.104.101.45.115.116.97.116.115.1 | sed 's/"//g'
[root@cacti scripts]# ./bind-stats.sh 
WARNING: key file (/etc/rndc.key) exists, but using default configuration file (/etc/rndc.conf)
I am getting blank graphs with NAN and following error in Cacti logs.

Code: Select all

[root@cacti scripts]# tail -20f /var/www/html/log/cacti.log
12/13/2014 12:55:02 PM - SPINE: Poller[0] Host[8] ERROR: Empty result [172.18.15.37]: '/var/www/html/scripts/bind-stats.sh 172.18.15.37 public'
12/13/2014 12:55:02 PM - SPINE: Poller[0] Host[8] ERROR: Empty result [172.18.15.37]: '/var/www/html/scripts/bind-stats.sh 172.18.15.37 public'
12/13/2014 12:55:02 PM - SPINE: Poller[0] Host[8] ERROR: Empty result [172.18.15.37]: '/var/www/html/scripts/bind-stats.sh 172.18.15.37 public'
12/13/2014 12:55:02 PM - SYSTEM STATS: Time:0.4958 Method:spine Processes:1 Threads:1 Hosts:3 HostsPerProcess:3 DataSources:29 RRDsProcessed:16
12/13/2014 12:55:03 PM - SYSTEM THOLD STATS: Time:0.1986 Tholds:6 TotalHosts:2 DownHosts:0 NewDownHosts:0
12/13/2014 12:55:03 PM - SYSTEM SYSLOG STATS:Time:0.45 Deletes:0 Incoming:0 Removes:0 XFers:20 Alerts:0 Alarms:0 Reports:0
12/13/2014 12:56:02 PM - SPINE: Poller[0] Host[8] ERROR: Empty result [172.18.15.37]: '/var/www/html/scripts/bind-stats.sh 172.18.15.37 public'
12/13/2014 12:56:02 PM - SPINE: Poller[0] Host[8] ERROR: Empty result [172.18.15.37]: '/var/www/html/scripts/bind-stats.sh 172.18.15.37 public'
12/13/2014 12:56:02 PM - SPINE: Poller[0] Host[8] ERROR: Empty result [172.18.15.37]: '/var/www/html/scripts/bind-stats.sh 172.18.15.37 public'
12/13/2014 12:56:02 PM - SPINE: Poller[0] Host[8] ERROR: Empty result [172.18.15.37]: '/var/www/html/scripts/bind-stats.sh 172.18.15.37 public'
12/13/2014 12:56:02 PM - SYSTEM STATS: Time:0.4951 Method:spine Processes:1 Threads:1 Hosts:3 HostsPerProcess:3 DataSources:29 RRDsProcessed:16
12/13/2014 12:56:02 PM - SYSTEM THOLD STATS: Time:0.1974 Tholds:6 TotalHosts:2 DownHosts:0 NewDownHosts:0
12/13/2014 12:56:03 PM - SYSTEM SYSLOG STATS:Time:0.48 Deletes:0 Incoming:0 Removes:0 XFers:20 Alerts:0 Alarms:0 Reports:0
12/13/2014 12:57:02 PM - SPINE: Poller[0] Host[8] ERROR: Empty result [172.18.15.37]: '/var/www/html/scripts/bind-stats.sh 172.18.15.37 public'
12/13/2014 12:57:02 PM - SPINE: Poller[0] Host[8] ERROR: Empty result [172.18.15.37]: '/var/www/html/scripts/bind-stats.sh 172.18.15.37 public'
12/13/2014 12:57:02 PM - SPINE: Poller[0] Host[8] ERROR: Empty result [172.18.15.37]: '/var/www/html/scripts/bind-stats.sh 172.18.15.37 public'
12/13/2014 12:57:02 PM - SPINE: Poller[0] Host[8] ERROR: Empty result [172.18.15.37]: '/var/www/html/scripts/bind-stats.sh 172.18.15.37 public'
12/13/2014 12:57:02 PM - SYSTEM STATS: Time:0.4950 Method:spine Processes:1 Threads:1 Hosts:3 HostsPerProcess:3 DataSources:29 RRDsProcessed:16
I have searched the forums and running BIND in chroot environment. Please help and Thanks in Advance :)
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests