BAYOUR-COM-MIB Bind9 MIB

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
scubabri
Posts: 32
Joined: Thu Jul 13, 2006 3:11 pm

BAYOUR-COM-MIB Bind9 MIB

Post by scubabri »

I figured I could start a new topic on this:

[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'

anyone have any ideas?
Frances
Cacti User
Posts: 60
Joined: Sun Apr 10, 2005 11:26 pm
Location: west coast

Post by Frances »

Hi,

A couple of questions:

1. Did you copy the associated perl script to the device running the bind 9 daemon that you wish to monitor and make it executable?

2. Did you configure snmpd.conf to pass the associated OID to aforementioned script?
scubabri
Posts: 32
Joined: Thu Jul 13, 2006 3:11 pm

Post by scubabri »

Yes to both questions.

pass_persist .1.3.6.1.4.1.8767.2.1 /etc/snmp/bind9-snmp-stats.pl

-rwxr-xr-x 1 root root 20853 Jul 14 15:11 bind9-snmp-stats.pl
Frances
Cacti User
Posts: 60
Joined: Sun Apr 10, 2005 11:26 pm
Location: west coast

Post by Frances »

Hmm. Sounds to me as if pass_persist isn't working. Sort of a shot in the dark here, but is this device running SELinux?
scubabri
Posts: 32
Joined: Thu Jul 13, 2006 3:11 pm

Post by scubabri »

[root@ns4 root]# more /etc/issue
Fedora Core release 2 (Tettnang)
Kernel \r on an \m


NET-SNMP version: 5.1.1
Frances
Cacti User
Posts: 60
Joined: Sun Apr 10, 2005 11:26 pm
Location: west coast

Post by Frances »

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.
scubabri
Posts: 32
Joined: Thu Jul 13, 2006 3:11 pm

Post by scubabri »

no change. I know that it's looking at the MIB because if I remove it, it responds differently. Is the MIB broken or incompatible?

sb
Frances
Cacti User
Posts: 60
Joined: Sun Apr 10, 2005 11:26 pm
Location: west coast

Post by Frances »

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?
scubabri
Posts: 32
Joined: Thu Jul 13, 2006 3:11 pm

Post by scubabri »

I run it by hand and there is no output, do I need to pass arguments?
Frances
Cacti User
Posts: 60
Joined: Sun Apr 10, 2005 11:26 pm
Location: west coast

Post by Frances »

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?
scubabri
Posts: 32
Joined: Thu Jul 13, 2006 3:11 pm

Post by scubabri »

no log file when I run it manually.. I'm not a perl guy either. But I know it's looking at the conf file, because it complains when I remove it.
scubabri
Posts: 32
Joined: Thu Jul 13, 2006 3:11 pm

Post by scubabri »

I tried running this on another system, with snmpd v5.2.2, same error message, who has gotten this to work?

sb
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests