大网数据广告活动
服务器运维问答

Use check-bind.sh to monitor DNS Server

· 52CE 我爱测

I want to monitor two DNS Server with Nagios and Check the DNS performances. I have found a check_bind.sh plugin with Nagios in : https://exchange.nagios.org/directory/Plugins/Network-Protocols/DNS/check_bind-2Esh/details But I'm…

问题原文

原帖链接 · MicaLyl · CC BY-SA 3.0

I want to monitor two DNS Server with Nagios and Check the DNS performances. I have found a check_bind.sh plugin with Nagios in : https://exchange.nagios.org/directory/Plugins/Network-Protocols/DNS/check_bind-2Esh/details
But I'm really beginner with Nagios. Should I install this plugin on my DNS server and use another plugin to send the information to Nagios ? Or what does -p/--path-pid mean in this command :

check_bind.sh -p/--path_pid /var/run/named -n/--name_pid named.pid
-r/--path-rndc /usr/sbin -s/--path-stats /var/bind -V/--bind-version 9.3/9.4/9.5 -N  

Thanks in advance for every help

已采纳解答

原帖链接 · Pablo Martinez · CC BY-SA 3.0

According to the documentation from the plugin it needs to run in the server where bind is running.

check_bind.sh is a Nagios plugin to check the bind daemon whether it's running via its pid file and then gets the statistics via rndc stats. The user that run the script needs the ability to 'sudo rndc stats'!

One way to use it from your Nagios monitor would be to use nrpe. To achieve that you will need to configure the NRPE server in your bind server and then configure Nagios to use it. A sample description (CentOS based) can be found in http://xmodulo.com/nagios-remote-plugin-executor-nrpe-linux.html

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2017-07-10)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。