|
|
| Author |
Message |
gagadget Cacti User
Joined: 21 Feb 2006 Posts: 57
|
Posted: Sat Jun 21, 2008 4:34 pm Post subject: BIND 9.5 stats remote with SSH ( without SNMP ) |
|
|
I made a script to graph BIND 9.5 stats through SSH for people like me who don't have access to their servers via SNMP.
See the perl script and the host template attached.
What does the script ?
The script open a SSH connection to the remote machine, execute "rndc stats", parse it to grab needed counters and remove it. Nothing have to be installed on the server except BIND 9.5
How to configure the script ?
You must put the script in the directory <path_cacti>/scripts/AF on the cacti server. You also should edit and modify it especially for PATHs like perl interpreter, local SSH binary and remote rndc and named.stats locations.
The cacti user must havec access to a user on the remote DNS machine via SSH with private/public key ( without password ).
What is in the template ?
See the two graphs attached
How to configure the template ?
Just import the template, and apply it to a device. Feel free to translate titles and labels that are in French.
When creting the graphs, you will be asked for a user, the user is the remote user though which cacti will open a ssh connection on the remote machine.
Please, tell me how I should improve the script and the template and I also would be glad if someone send me improvements.
| Description: |
|
| Filesize: |
21.73 KB |
| Viewed: |
2615 Time(s) |

|
| Description: |
|
| Filesize: |
26 KB |
| Viewed: |
2615 Time(s) |

|
| Description: |
|
 Download |
| Filename: |
cacti_host_template_af_dns_bind_9_5_100.xml |
| Filesize: |
67.1 KB |
| Downloaded: |
134 Time(s) |
| Description: |
|
 Download |
| Filename: |
ssh-dns-bind95-stats.pl |
| Filesize: |
3.39 KB |
| Downloaded: |
209 Time(s) |
|
|
| Back to top |
|
 |
chossced
Joined: 03 Jul 2008 Posts: 2
|
Posted: Thu Jul 03, 2008 10:47 am Post subject: |
|
|
Previous Cacti template for BIND monitoring doesn't work anymore with BIND 9.5
So I'm trying this new plugin
I'm using Cacti 0.8.6i
when import template => Error: XML parse error.
how to deal with that ?
Thanks.
PS: Impossible to upgrade to 0.8.7b actually
|
|
| Back to top |
|
 |
gagadget Cacti User
Joined: 21 Feb 2006 Posts: 57
|
Posted: Mon Jul 07, 2008 10:10 am Post subject: |
|
|
Made some translations, reposted it :
| Description: |
|
 Download |
| Filename: |
cacti_host_template_af-dns-bind_9_5.xml |
| Filesize: |
66.44 KB |
| Downloaded: |
113 Time(s) |
|
|
| Back to top |
|
 |
chossced
Joined: 03 Jul 2008 Posts: 2
|
Posted: Tue Jul 08, 2008 5:26 am Post subject: |
|
|
hé hé,
New error
Error: XML: Hash version does not exist.
What is your version of Cacti for exporting this template.
|
|
| Back to top |
|
 |
gagadget Cacti User
Joined: 21 Feb 2006 Posts: 57
|
Posted: Tue Jul 08, 2008 3:52 pm Post subject: |
|
|
| Using 0.8.7a
|
|
| Back to top |
|
 |
|