Ad Widget

Collapse

Monitoring Bind

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • igknight
    Junior Member
    • Mar 2008
    • 3

    #1

    Monitoring Bind

    First, sorry if this is in here, I have tried searching for bind and named, but can't find anything.

    I am having an issue getting Zabbix to check to see if bind is up and running. I have tried adding a check like there is one for ftp, web, mysql and a few others like net.tcp.service[named], not truly thinking that would work as DNS works off of udp not tcp. Zabbix just says that its not support.

    I have tried to look into adding it to the zabbix_agentd.conf file with the UserParameter settings, but not sure about how to format the sting to run the check, and how to go about getting the information to the server.

    Any help would be very much appreciated.
    Thanks.
  • xs-
    Senior Member
    Zabbix Certified Specialist
    • Dec 2007
    • 393

    #2
    normal DNS queries are UDP and afaik zabbix does not support simple udp checks as these will usualy cause a long queue if they timeout.

    If you want to do a service check, i'd suggest to put an agent on the dns server or zabbix server and do something like:
    UserParameter=dns.fetchrecord[*],dig @$1 $2 A | grep "^$2" | wc -l
    Where $1 is the ip/name of the DNS server and $2 is a record

    this would give you a nice numeric value of the amout of records found.
    Keep in midn tho that you want to trigger on #0 or >0 (not zero) instead of =1 because round robin DNS entries will return multiple hits.

    Comment

    Working...