Hi Timi,
Thanks for the scripts, but I've a problem with graph won't appear. Please see below for script and log results:
This command is running from cacti host.
# snmpwalk -v 2c -Ovq -c dns123 10.0.0.10 .1.3.6.1.4.1.18689.0.1
1
"/usr/sbin/runstats.sh"
""
""
5
1
1
4
1
"a:1556462 a6:307 aaaa:354564 any:231 cname:96 mx:120134 naptr:21 ns:9395 ptr:161701 soa:3011 spf:5840 srv:10347 txt:30663 rsnx:67027 rsfail:12121 rserr:7874 rsipv4qs:860637 rsipv4rr:763222 rsmismatch:21 rsqr:155825 rsqt:107333 rsrtt10:63375 rsrtt100500:582898 rsrtt10100:202075 rsrtt1600:38 rsrtt500800:1994 rsrtt8001600:130 sockopen:910396 sockclosed:910341 sockbf:990 consest:909404 recverr:1682"
"a:1556462 a6:307 aaaa:354564 any:231 cname:96 mx:120134 naptr:21 ns:9395 ptr:161701 soa:3011 spf:5840 srv:10347 txt:30663 rsnx:67027 rsfail:12121 rserr:7874 rsipv4qs:860637 rsipv4rr:763222 rsmismatch:21 rsqr:155825 rsqt:107333 rsrtt10:63375 rsrtt100500:582898 rsrtt10100:202075 rsrtt1600:38 rsrtt500800:1994 rsrtt8001600:130 sockopen:910396 sockclosed:910341 sockbf:990 consest:909404 recverr:1682"
1
0
"a:1556462 a6:307 aaaa:354564 any:231 cname:96 mx:120134 naptr:21 ns:9395 ptr:161701 soa:3011 spf:5840 srv:10347 txt:30663 rsnx:67027 rsfail:12121 rserr:7874 rsipv4qs:860637 rsipv4rr:763222 rsmismatch:21 rsqr:155825 rsqt:107333 rsrtt10:63375 rsrtt100500:582898 rsrtt10100:202075 rsrtt1600:38 rsrtt500800:1994 rsrtt8001600:130 sockopen:910396 sockclosed:910341 sockbf:990 consest:909404 recverr:1682"
[root@chostsrv3 ~]# snmpwalk -v 2c -Ovq -c dns123 10.0.0.10 .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
"a:1570579 a6:311 aaaa:357984 any:233 cname:96 mx:121133 naptr:21 ns:9530 ptr:163269 soa:3029 spf:5912 srv:10394 txt:30935 rsnx:67785 rsfail:12229 rserr:7925 rsipv4qs:868479 rsipv4rr:770215 rsmismatch:21 rsqr:157142 rsqt:108253 rsrtt10:63937 rsrtt100500:588243 rsrtt10100:203888 rsrtt1600:38 rsrtt500800:2020 rsrtt8001600:138 sockopen:918789 sockclosed:918715 sockbf:1001 consest:917786 recverr:1691"
Below is log from cacti
12/02/2012 06:24:05 PM - SPINE: Poller[0] Host[390] ERROR: Empty result [10.0.0.10]: '/home/nginxuser/scripts/bind-stats.sh 10.0.0.10'
12/02/2012 06:25:05 PM - SPINE: Poller[0] Host[390] ERROR: Empty result [10.0.0.10]: '/home/nginxuser/scripts/bind-stats.sh 10.0.0.10'
12/02/2012 06:25:05 PM - SPINE: Poller[0] Host[390] ERROR: Empty result [10.0.0.10]: '/home/nginxuser/scripts/bind-stats.sh 10.0.0.10'
12/02/2012 06:25:05 PM - SPINE: Poller[0] Host[390] ERROR: Empty result [10.0.0.10]: '/home/nginxuser/scripts/bind-stats.sh 10.0.0.10'
12/02/2012 06:25:05 PM - SPINE: Poller[0] Host[390] ERROR: Empty result [10.0.0.10]: '/home/nginxuser/scripts/bind-stats.sh 10.0.0.10'
# sudo -u nginxuser sh /home/nginxuser/scripts/bind-stats.sh 10.0.0.10
a:2221613 a6:429 aaaa:515396 any:379 cname:140 mx:171062 naptr:30 ns:15156 ptr:239552 soa:4218 spf:9158 srv:14500 txt:45280 rsnx:96278 rsfail:18434 rserr:11312 rsipv4qs:1233254 rsipv4rr:1097893 rsmismatch:34 rsqr:220077 rsqt:149640 rsrtt10:90148 rsrtt100500:842735 rsrtt10100:290112 rsrtt1600:47 rsrtt500800:3029 rsrtt8001600:270 sockopen:1305758 sockclosed:1305695 sockbf:1431 consest:1304325 recverr:2306
For additional info, my cacti running on PHP 5.3.15 and MySQL 5.1.63, Nginx and Cacti 0.8.8a. If any further information required please just ask me
Thanks n regards,
pnyet