[Pdns-users] Weird results from pdns show command

Miguel Miranda miguel.mirandag at gmail.com
Tue Jan 26 18:38:52 UTC 2016


Hello to all, im trying to implement some basic alert mecanism using monit,
it can run a command and depending on the result execute an action like
alert, restart services, etc.

I created a simple shell script to alert me when qsize-q is greater than 10
so i can take actions (ddos ,etc).

However, it is sending me false positives because `/etc/init.d/pdns show
qsize-q` command is giving weird results, i.e:

If i review qsize-q variable in the web its value is zero, if i run it from
command line:

[root at dns1 ~]# /etc/init.d/pdns show qsize-q
qsize-q=1695805283

[root at dns1 ~]# /etc/init.d/pdns show qsize-q
qsize-q=corrupt-packets=525475,deferred-cache-inserts=22123140,deferred-cache-lookup=20355827,latency=0,packetcache-hit=1441976063,packetcache-miss=134014189,packetcache-size=261527,qsize-q=0,query-cache-hit=486944131,query-cache-miss=188660929,recursing-answers=128531452,recursing-questions=128889766,security-status=0,servfail-packets=0,tcp-answers=10615,tcp-queries=100771,timedout-packets=0,udp-answers=1589281810,udp-queries=1695807585,udp4-answers=1460759583,udp4-queries=1589229659,udp6-answers=0,udp6-queries=0,

[root at dns1 ~]# /etc/init.d/pdns show qsize-q
qsize-q=corrupt-packets=525475,deferred-cache-inserts=22123162,deferred-cache-lookup=20355856,latency=0,packetcache-hit=1441978101,packetcache-miss=134014395,packetcache-size=261527,qsize-q=0,query-cache-hit=486944909,query-cache-miss=188661215,recursing-answers=128531647,recursing-questions=128889966,security-status=0,servfail-packets=0,tcp-answers=10615,tcp-queries=100772,timedout-packets=0,udp-answers=1589284072,udp-queries=1695810038,udp4-answers=1460761650,udp4-queries=1589231922,udp6-answers=0,udp6-queries=0,

This is a pdns 3.3.3 running in CentOS 6.4 installed from oficial centos
repositories.
Regards.




More information about the Pdns-users mailing list