Hi Dmitriy,<br><br>Thank you for oyur answer:)<br><br>It clarified a part of my issue.<br><br>MY architecture is:<br><br>an unbound dns server with a hobbit client.<br>the hobbit client should run a script which gets data somehow from unbound dns and than send it to hobbit server.<br>




<br>[hobbit or xymon is the same application, the name difference is based on some copyright issues.]<br><br>about running unbound-control stat command<br><br>here I get several errors:<br><br>root@unbound3:~# unbound-control start<br>
root@unbound3:~# unbound-control stats<br>error: Error setting up SSL_CTX client key and cert<br>4281:error:02001002:system library:fopen:No such file or directory:bss_file.c:352:fopen('/var/unbound/usr/local/etc/unbound/unbound_control.pem','r')<br>
4281:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:354:<br>4281:error:140AD002:SSL routines:SSL_CTX_use_certificate_file:system lib:ssl_rsa.c:470:<br><br><br>I used the tutorial from:<br><br><a href="http://www.howtoforge.com/installing-using-unbound-nameserver-on-debian-etch">http://www.howtoforge.com/installing-using-unbound-nameserver-on-debian-etch</a><br>
<br>in config file: I have the following:<br><br>remote-control:<br><br> control-enable: yes<br> # what interfaces are listened to for remote control.<br>        # give 0.0.0.0 and ::0 to listen to all interfaces.<br>        # control-interface: 127.0.0.1<br>
        # control-interface: ::1<br><br>        # port number for remote control operations.<br>        # control-port: 953<br><br>        # unbound server key file.<br>         server-key-file: "/usr/local/etc/unbound/unbound_server.key"<br>
<br>        # unbound server certificate file.<br>         server-cert-file: "/usr/local/etc/unbound/unbound_server.pem"<br><br>        # unbound-control key file.<br>         control-key-file: "/usr/local/etc/unbound/unbound_control.key"<br>
<br> # unbound-control certificate file.<br>         control-cert-file: "/usr/local/etc/unbound/unbound_control.pem"<br><br><br>based on the info I have here:  <a href="http://unbound.net/documentation/howto_setup.html">http://unbound.net/documentation/howto_setup.html</a><br>
<br>it should be fine<br><br>I am using ubuntu server, latest version.<br><br>Thank you for any ideea, help:)<br><br>Gabi<br><br><br><br>I made a fresh install on ubuntu, using the example here:<br>


<br><a href="http://www.howtoforge.com/installing-using-unbound-nameserver-on-debian-etch" target="_blank">http://www.howtoforge.com/installing-using-unbound-nameserver-on-debian-etch</a><br><br>after that, i added in config file the info from:<br>



<br><a href="http://www.unbound.net/documentation/howto_setup.html" target="_blank">http://www.unbound.net/documentation/howto_setup.html</a><br><br>so, if i make a hoobit script where i run the unbound-control set and than replace <br>


<br>
<br><br><div class="gmail_quote">On Wed, May 13, 2009 at 8:08 PM, Dmitriy Demidov <span dir="ltr"><<a href="mailto:dima_bsd@inbox.lv" target="_blank">dima_bsd@inbox.lv</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div>On Thursday 07 May 2009, Gabriel Petrescu wrote:<br>
> Hi :)<br>
> I try to get statistics from unbound to hobbit aka xymon.<br>
> I know there is a plugin for Munin.. but it's not quite what I need.<br>
> Do you tried before the combination unbound & xymon?<br>
> Can you give me a clue , direction?<br>
> Thank you:)<br>
><br>
> Gabi<br>
<br>
</div></div>Hi Gabi.<br>
<br>
I found this tutorial about how to setup custom graphs in Xymon:<br>
<a href="http://www.hobbitmon.com/hobbit/help/howtograph.html" target="_blank">http://www.hobbitmon.com/hobbit/help/howtograph.html</a><br>
>From the example of custom scripts I can see that Xymon expects input in<br>
format of "name : value", where each pair should be on new line.<br>
In the given example, script what parse /proc/slabinfo generates this output:<br>
inode_cache : 7100160<br>
dentry_cache : 752640<br>
...etc<br>
<br>
When you run unbound-control stats command it produces output in this format:<br>
thread0.num.queries=0<br>
thread0.num.cachehits=0<br>
thread0.num.cachemiss=0<br>
thread0.recursion.time.avg=0.000000<br>
...etc<br>
<br>
All you need to do is sed stats output:<br>
unbound-control stats | sed s/=/" : "/<br>
thread0.num.queries : 0<br>
thread0.num.cachehits : 0<br>
thread0.num.cachemiss : 0<br>
thread0.recursion.time.avg : 0.000000<br>
...etc<br>
<br>
Or, if dots in variables names are unvanted use this:<br>
unbound-control stats | awk -F '=' '{gsub(/\./,"_",$1);print($1" : "$2)}'<br>
thread0_num_queries : 0<br>
thread0_num_cachehits : 0<br>
thread0_num_cachemiss : 0<br>
thread0_recursion_time_avg : 0.000000<br>
...etc<br>
</blockquote></div><br>