Check_bind.sh plugin and name server stats question

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
linuser
Posts: 102
Joined: Fri Sep 18, 2015 9:53 am

Check_bind.sh plugin and name server stats question

Post 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.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Check_bind.sh plugin and name server stats question

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
linuser
Posts: 102
Joined: Fri Sep 18, 2015 9:53 am

Re: Check_bind.sh plugin and name server stats question

Post by linuser »

Thanks. I have tried reaching out to him but I never get a response.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Check_bind.sh plugin and name server stats question

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
linuser
Posts: 102
Joined: Fri Sep 18, 2015 9:53 am

Re: Check_bind.sh plugin and name server stats question

Post by linuser »

No problem. Thanks anyway.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Check_bind.sh plugin and name server stats question

Post 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.
Former Nagios Employee
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Check_bind.sh plugin and name server stats question

Post by hsmith »

Would you like us to close this thread?
Former Nagios Employee.
me.
Locked