This is the second time this has happened (but with another check) so I'm going to post here.
I just changed the DNS of one of my servers. I have a check_dns command that runs and that is failing on the web interface ONLY, but it's working fine on the command line interface.
The command is simple, just the same thing I run on the web interface:
Code:
define service{
use local-service
host_name theserver
service_description DNS
check_command check_dns
notifications_enabled 1
}
If I run check_dns on the CLI, I get:
Code:
# ./check_dns theserver
DNS OK: 0.027 seconds response time. theserver returns the.right.ip.address|time=0.026892s;;;0.000000
But on the web interface, the same IP address fails:
Code:
Domain the.same.ip.address was not found by the server
Also, it's defined properly in the .cfg file:
Code:
define host{
use linux-server ; Name of host template to use
host_name theserver
alias theserver.com
address the.same.ipv4.address.as.before
contact_groups admins
notification_period 24x7 ; Send notification out at any time - day or night
}
Why would this be? I feel like it will "catch up" hours later but I'm running the same check! This is not making any sense to me.