我很抱歉有点懒得不去试试,但考虑到也可能对别人有帮助,所以我问这个问题。 如果我设置Nagios通知期限如: 7 am – 5 pm, Mon-Fri 一旦上午12 am发生什么事情,Nagios会放弃警报,否则会一直持续到上午7点。
我正在尝试在Centos 7计算机上使用此处的说明安装Nagios 4。 当我到编译和inputmake all我得到这个错误: make[1]: *** No rule to make target `../include/locations.h', needed by 'nagios.o'. Stop. 我已经按照这些指示去信了,但我不能走得更远。 该怎么办?
我在CentOS 6.5上使用Nagios 3.2.3。 install过程中的一切都顺利进行。 我转移了我的conf文件,做了适当的更改,并对我的nagios.cfg文件进行了预飞testing。 在我的nagios.cfg文件中,我使用cfg_dir=/usr/local/nagios/etc/conf.d ,然后让Nagiosrecursionsearch该目录。 /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg显示如下: Website: http://www.nagios.org Reading configuration data… Read main config file okay… Processing object config directory '/usr/local/nagios/etc/conf.d'… Processing object config directory '/usr/local/nagios/etc/conf.d/hostgroups.d'… Processing object config file '/usr/local/nagios/etc/conf.d/hostgroups.d/hostgroups.cfg'… Processing object config directory '/usr/local/nagios/etc/conf.d/commands.d'… Processing object config file '/usr/local/nagios/etc/conf.d/commands.d/commands.cfg'… Processing object config directory '/usr/local/nagios/etc/conf.d/templates.d'… Processing object config file '/usr/local/nagios/etc/conf.d/templates.d/templates.cfg'… […]
我想在我们的Nagios中check_load服务。 我公司没有硬件基线,每台服务器都有自己的不同规格,这意味着check_load脚本不会在每台服务器上提供正确的结果。 我正在寻找一个dynamic的Nagios检查,它检查服务器中存在多less个处理器/内核/线程,并根据find的数字相应地编辑check_load命令。 我的另一个想法是使用facter来获取这些信息,并使Puppet根据nrpe.cfg的发现编辑本地nrpe.cfg模板,以匹配最佳实践负载阈值。 你知道这样的支票存在吗?
我正在尝试在所有主机上searchCurrent Load,但Nagios Quick Search不会返回任何内容。 我发现这个线程可能只是search主机名或别名。 有另一种方法吗?
我的设置: hosts.cfg – 包含正在监视的每个主机的定义,例如: define host{ use linux-server host_name rdss-vpn display_name VPN address 54.***.***.176 } hosts_groups.cfg – 定义组: define hostgroup{ hostgroup_name rdss-service-server alias RDSS services members […], rdss-vpn } services.cfg : define service{ use local-service hostgroup_name rdss-web-server, rdss-service-server service_description Memory usage check_command check_linux_memory!50!80 notifications_enabled 1 } 和check_linux_memory中的check_linux_memory : define command{ command_name check_linux_memory command_line $USER1$/check_nrpe -H […]
我们目前使用几个Nagios工作人员使用DNZ分配工作负载,如下所述: https : //assets.nagios.com/downloads/general/docs/Distributed_Monitoring_Solutions.pdf 。 在官方文档中,我一直没有find任何有关这方面的信息,大多数search只是将我链接到他们的网站。 忽略所需的计算能力(CPU,RAM等)是否有单个Nagios实例可以监控多less个主机或服务的硬性限制? 怎么样在一个单独的工作者?
我正试图在自动缩放的机器组上安装Monit。 理想情况下,我希望monit发送警报给我的nagios服务(已经configuration为升级警报)。 我find了这个要求这个function的旧post ,但是我找不到任何描述这个function的文档。 是否有可能在Monit中设置自定义警报? 最好的祝福 编辑:我知道我可以写一个bash脚本发送被动检查到Nagios,并执行一个exec命令,但我想知道是否有一个更干净的解决scheme,使用alert命令。
我正在尝试在Nagios中创buildcontacts.cfg ,以便在不同的事件中联系两个不同的电子邮件。 一个是我们的定期电子邮件,一个是我们的gmail,它被configuration为在事件发生时给我们打电话。 以下是我的设置 define contact { name mainemail service_notification_options c,u,r host_notification_options d,u,r service_notification_commands notify-service-by-email host_notification_commands notify-host-by-email register 0 email [email protected] service_notification_period 24×7 host_notification_period 24×7 } define contact { name emergencyadmin service_notification_options c,u host_notification_options d,u,r service_notification_commands notify-service-by-email host_notification_commands notify-host-by-email register 0 email [email protected] service_notification_period 24×7 host_notification_period 24×7 } define contactgroup { contactgroup_name nagiosadmin-emergencyadmin members mainemail,emergencyadmin […]
机器A = nagios主机,机器B =边缘机器。 在机器A的host.cfg中我有: define command { command_name check_tok command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_tok 123 } define service use bg-service hostgroup_name test_oob1 service_description Recall12 check_command check_tok servicegroups nrpe } 在机器B的commands.cfg中/etc/nrpe.d我有: command[check_tok]=/usr/lib64/nagios/plugins/check_test.sh 在机器的B的/ usr / lib64 / nagios /插件,我有check_test.py和check_test.sh。 check.test.sh看起来像下面这样: #!/bin/sh /usr/bin/sudo /usr/lib64/nagios/plugins/check_test.py exit $? 和check_test.py如下所示: #!/usr/bin/env python import sys if __name__ == "__main__": […]