Page 1 of 1

Check_bind.sh plugin and name server stats question

Posted: Tue Dec 22, 2015 4:35 pm
by linuser
I am trying to gain a better understanding of the name server stats file and why the check_bind.sh script works the way it does. My first question is:

Why does the name server stats file, the one that the script parses (usually /tmp/named.stats.tmp), have to different Statistic Dumps? For instance

Code: Select all

grep -i 'statistics dump' /tmp/named.stats.tmp 
--- Statistics Dump --- (1450819456)
+++ Statistics Dump +++ (1450819456)
--- Statistics Dump --- (1450819269)
+++ Statistics Dump +++ (1450819269)
What is the significance of have 2 dumps? Why not 1? Why not 3 or 4?

Next question is why does the check_bind.sh script seem to take the difference between different types of query responses? For instance on successful queries why does it want the difference in the 2 lines of output? Why not just take the total number from the last dump stat in the file, report that to nagios? Even that way, you would still get different values each time it updates.

Code: Select all

if [ "$succ_1st" == '' ]
    then
        success=0
    else
        success=`expr $succ_1st - $succ_2nd`
    fi
I am just trying to figure out if there is some kind of rhyme or reason to all this.

Re: Check_bind.sh plugin and name server stats question

Posted: Tue Dec 22, 2015 5:15 pm
by Box293
I assume you are talking about this one:
https://exchange.nagios.org/directory/P ... sh/details

Honestly these are questions which we don't have answers for, you would need to contact the author of the plugin as only him/her knows.

Re: Check_bind.sh plugin and name server stats question

Posted: Tue Dec 22, 2015 5:26 pm
by linuser
Thanks. I have tried reaching out to him but I never get a response.

Re: Check_bind.sh plugin and name server stats question

Posted: Tue Dec 22, 2015 5:33 pm
by Box293
Unfortunately that can be the case sometimes, the authors no longer use the project so they get abandoned. I wish we had a better answer.

Re: Check_bind.sh plugin and name server stats question

Posted: Tue Dec 22, 2015 6:11 pm
by linuser
No problem. Thanks anyway.

Re: Check_bind.sh plugin and name server stats question

Posted: Wed Dec 23, 2015 11:16 am
by rkennedy
I'll go ahead and close this out now. If there is anything that we can help you out with in the future feel free to open a new thread.

Re: Check_bind.sh plugin and name server stats question

Posted: Wed Dec 23, 2015 11:17 am
by hsmith
Would you like us to close this thread?