Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


BIND 9.5 stats remote with SSH ( without SNMP )

 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
gagadget
Cacti User


Joined: 21 Feb 2006
Posts: 57

PostPosted: Sat Jun 21, 2008 4:34 pm    Post subject: BIND 9.5 stats remote with SSH ( without SNMP ) Reply with quote

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.



2.png
 Description:
 Filesize:  21.73 KB
 Viewed:  2615 Time(s)

2.png



1.png
 Description:
 Filesize:  26 KB
 Viewed:  2615 Time(s)

1.png



cacti_host_template_af_dns_bind_9_5_100.xml
 Description:

Download
 Filename:  cacti_host_template_af_dns_bind_9_5_100.xml
 Filesize:  67.1 KB
 Downloaded:  134 Time(s)


ssh-dns-bind95-stats.pl
 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

PostPosted: Thu Jul 03, 2008 10:47 am    Post subject: Reply with quote

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

PostPosted: Mon Jul 07, 2008 10:10 am    Post subject: Reply with quote

Made some translations, reposted it :


cacti_host_template_af-dns-bind_9_5.xml
 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

PostPosted: Tue Jul 08, 2008 5:26 am    Post subject: Reply with quote

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

PostPosted: Tue Jul 08, 2008 3:52 pm    Post subject: Reply with quote

Using 0.8.7a
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group