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.
Hi,
no i use the localhost IP so i can check if the DNS are ok in the local host. (im just changing it to (localhost) when i post...)
here is the output:
# Define the switch that we'll be monitoring
define host{
use generic-switch ; Inherit default values from a template
host_name Fortigate100D ; The name we're giving to this switch
alias FortiGate100D ; A longer name associated with the switch
address x.x.x.x ; IP address of the switch
hostgroups fortigate ; Host groups this switch is associated with
}
###############################################################################
###############################################################################
#
# HOST GROUP DEFINITIONS
#
###############################################################################
###############################################################################
# Create a new hostgroup for switches
define hostgroup{
hostgroup_name fortigate ; The name of the hostgroup
alias Network devices ; Long name of the group
}
# Define a host for the local machine
define host{
use linux-server ; Name of host template to use
; This host definition will inherit all variables that are defined
; in (or inherited by) the linux-server host template definition.
host_name localhost
alias localhost
address 127.0.0.1
}
###############################################################################
###############################################################################
#
# HOST GROUP DEFINITION
#
###############################################################################
###############################################################################
# Define an optional hostgroup for Linux machines
define hostgroup{
hostgroup_name linux-servers ; The name of the hostgroup
alias Linux Servers ; Long name of the group
members localhost ; Comma separated list of hosts that belong to this group
}
i only want to verify that the server is capable to translate DNS it is not my main DNS server,i just dontget why in the command line it works and in nagios doest..
maybe it happend cause i set time and date ? what else can i try?
maybe logs i can look at?
The check_dns command is using -s, which then looks for DNS records on your $HOSTADDRESS$ (in this case, 127.0.0.1). I believe this is why you are seeing an error.