I'm trying to monitor my name servers by sending a query for root. similar to:
dig @server . NS
I set up an External check item that simply returns each nsdname found in the answer section of the DNS packet.
I've set the Type of information to Text.
Inventory -> Latest Data -> History shows me the response I expect (with one server per line)
But my trigger is alarming. I've tried lots of triggers, but they all fail
{External UDP.DNS Check:dnsc.pl["-h","{HOST.CONN}","-n",".","-r","NS"].str("root-servers.net")}=1
{External UDP.DNS Check:dnsc.pl["-h","{HOST.CONN}","-n",".","-r","NS"].str("net")}=1
{External UDP.DNS Check:dnsc.pl["-h","{HOST.CONN}","-n",".","-r","NS"].regex("[a-z].root-servers\.net")}=1
Can someone explain what is going wrong or how I find out what's confused ?
FYI: my dnsc.pl is available at http://pastebin.com/raw.php?i=Fu83kD4s
dig @server . NS
I set up an External check item that simply returns each nsdname found in the answer section of the DNS packet.
I've set the Type of information to Text.
Inventory -> Latest Data -> History shows me the response I expect (with one server per line)
But my trigger is alarming. I've tried lots of triggers, but they all fail
{External UDP.DNS Check:dnsc.pl["-h","{HOST.CONN}","-n",".","-r","NS"].str("root-servers.net")}=1
{External UDP.DNS Check:dnsc.pl["-h","{HOST.CONN}","-n",".","-r","NS"].str("net")}=1
{External UDP.DNS Check:dnsc.pl["-h","{HOST.CONN}","-n",".","-r","NS"].regex("[a-z].root-servers\.net")}=1
Can someone explain what is going wrong or how I find out what's confused ?
FYI: my dnsc.pl is available at http://pastebin.com/raw.php?i=Fu83kD4s
Comment