Cannot get the Bind stats in Apps

I need to get the bind status in librenms. I am using SNMP extend for the same. I followed this link for making this happen. I am using bind9. My config files are below:

./validate.php

Component Version
LibreNMS 1.38-74-gece4d40
DB Schema 247
PHP 7.2.2
MySQL 5.5.56-MariaDB
RRDTool 1.4.8
SNMP NET-SNMP 5.7.2
====================================

[OK] Composer Version: 1.6.4
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct

/etc/named.conf
statistics-file “/var/run/named/stats”;
zone-statistics yes;

I have downloaded the bind script in /etc/snmp/bind and given the execute permission. i have bind.config in the same directory with below parameters:

$call_rndc=1;
$rndc=‘/usr/bin/env rndc’;
$stats_file=‘/var/run/named/stats’;
$zero_stats=0;
$agent=0;
$missing=0;

I have installed the module File::ReadBackwards

rndc stats && cat /var/run/named/stats gives no any output.

Please Help !!!

Hi,

I have the same problem with bind. Have you resolved it?

What happens when you run ./bind? That’s the script you downloaded when following that link.

Hello @dvl Output is as below:

perl: warning: Falling back to the standard locale (“C”).
Can’t locate File/ReadBackwards.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at ./bind line 63.
BEGIN failed–compilation aborted at ./bind line 63.

I have that required module installed. I suggest you do the same.

[dan@toiler:~] $ pkg info -x back
p5-File-ReadBackwards-1.05_1

Sorry, I now see you said you have it installed, but it is not being found. Why, I don’t know. Sounds like a perl issue.