Hello i have created DNS resolution service checks for several network devices in my network. Im seeing the following output on two of the services "(No output on stdout) stderr:" however i can resolve the DNS on my local machine and all other DNS resolution service checks are working as expected.
Any ideas?
DNS Resolution Issue
Re: DNS Resolution Issue
Can you post the configurations for the service checks that are failing here so we can view the settings for the check?
Login to the XI GUI and go to the Core Config Manager > Services menu and find that service.
Click on the View Config icon (On the right side of the menu) copy the config data in to a text document and attach that to the ticket so I can view the settings.
Login to the XI GUI and go to the Core Config Manager > Services menu and find that service.
Click on the View Config icon (On the right side of the menu) copy the config data in to a text document and attach that to the ticket so I can view the settings.
Be sure to check out our Knowledgebase for helpful articles and solutions!
- ciscosucks123
- Posts: 17
- Joined: Fri Oct 18, 2019 10:52 am
Re: DNS Resolution Issue
Hello see config below, strange as it works on most hosts but 4 specific hosts are having that issue.
###############################################################################
#
# Services configuration file
#
# Created by: Nagios CCM 3.0.3
# Date: 2019-11-07 12:15:30
# Version: Nagios Core 4.x
#
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios CCM will overwrite all manual settings during the next update if you
# would like to edit files manually, place them in the 'static' directory or
# import your configs into the CCM by placing them in the 'import' directory.
#
###############################################################################
define service {
service_description DNS Resolution
use xiwizard_website_dns_service
hostgroup_name HG-HTTP,HG-HTTPS
max_check_attempts 3
check_interval 10
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard website
register 1
}
###############################################################################
#
# Services configuration file
#
# END OF FILE
#
###############################################################################
###############################################################################
#
# Services configuration file
#
# Created by: Nagios CCM 3.0.3
# Date: 2019-11-07 12:15:30
# Version: Nagios Core 4.x
#
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios CCM will overwrite all manual settings during the next update if you
# would like to edit files manually, place them in the 'static' directory or
# import your configs into the CCM by placing them in the 'import' directory.
#
###############################################################################
define service {
service_description DNS Resolution
use xiwizard_website_dns_service
hostgroup_name HG-HTTP,HG-HTTPS
max_check_attempts 3
check_interval 10
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard website
register 1
}
###############################################################################
#
# Services configuration file
#
# END OF FILE
#
###############################################################################
Re: DNS Resolution Issue
Can you run the plugin against the 2 systems that are generating the error and post the output here?
Have you verified that the 2 hosts can be resolved in DNS on the Nagios server?
Code: Select all
/usr/local/nagios/libexec/check_dns -H xxx.xxx.xxx.xxx ; echo $?Be sure to check out our Knowledgebase for helpful articles and solutions!
- ciscosucks123
- Posts: 17
- Joined: Fri Oct 18, 2019 10:52 am
Re: DNS Resolution Issue
Looks like we had missed creating reverse DNS lookups for these entries. Thanks for your help feel free to lock thread.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: DNS Resolution Issue
Great!ciscosucks123 wrote:Looks like we had missed creating reverse DNS lookups for these entries. Thanks for your help feel free to lock thread.
Locking thread