Articles of Nagios

Apache和LDAP身份validation

我们使用Apache mod_authnz_ldap来使用我们的LDAP Active Directory向Nagiosauthentication用户。 现在正在使用SamAccountName。 但是,Nagios正在使用SamAccountName作为login用户的名称。这对Author评论等造成了一个小问题(我们没有记住用户ID)。 有没有办法使用SamAccountName mod_authnz_ldap进行身份validation,但返回显示名称或名称? 这样作者评论会显示用户的真实姓名。 这里是我的httpd的nagios.conf: <Directory "/usr/lib64/nagios/cgi-bin/"> # SSLRequireSSL Options ExecCGI Options FollowSymLinks AllowOverride None AuthBasicProvider ldap AuthType Basic AuthzLDAPAuthoritative off AuthName "Active Directory Login" AuthLDAPURL "ldap://my.ldap.server:389/dc=my_dc,dc=my_dc,dc=net?sAMAccountName?sub" NONE Require valid-user </Directory> Alias /nagios "/usr/share/nagios/html" <Directory "/usr/share/nagios/html"> # SSLRequireSSL Options ExecCGI Options FollowSymLinks AllowOverride None AuthBasicProvider ldap AuthType Basic AuthzLDAPAuthoritative off […]

Nagios升级没有触发

我目前正在重新调整我们的Nagiosconfiguration以使用模板。 我定义了一些主机和服务模板,如下所示: define service { name 8x5servicetemplate max_check_attempts 2 check_interval 1 retry_interval 1 check_period 8×5 notification_interval 2 notification_period 8×5 contact_groups administrators register 0 } define service { name 10x5servicetemplate max_check_attempts 2 check_interval 1 retry_interval 1 check_period 10×5 notification_interval 2 notification_period 10×5 contact_groups administrators register 0 } define service { name 12x5servicetemplate max_check_attempts 2 check_interval 1 […]

如何确定在Nagios服务中运行的命令?

我试图debugging为什么Nagios服务失败; AFAIK,它突然开始失败,没有任何我们所知道的变化。 我试图find一个从服务到“命令运行,失败”的原则性方法,以便进行debugging。 该服务被命名为“NTP”; 在我的/etc/nagios3/conf.d ,我有, define service { use service-passive-critical hostgroup_name web-internal service_description NTP } 没有check_command 。 然后看着serivce-passive-critical , define service { name service-passive-critical use service-passive notification_interval 1 ; always re-send alerts, PagerDuty will dedup contact_groups contact-group-24×7 freshness_threshold 900 ; treat service as stale if no updates for 15 min check_command return-critical ; alert […]

通过NRPE运行check_vmfs.sh的权限被拒绝

我们已经运行了一个nagios监控系统,并且在使用以下插件监控我们的vmware数据存储之后,我安装了vmware cli并进行了testing: [root@nrpe-relay ~]# /usr/lib64/nagios/plugins/check_vmfs.sh -C /usr/lib64/nagios/plugins/vmware_esxi_conf.txt -S 192.168.20.241 -V /vmfs/volumes/LocalSlot45S6 -w 75 -c 90 -u Gb WARNING – /vmfs/volumes/LocalSlot45S6 – total: 931.25 Gb – used: 800.95 Gb (86%)- free: 130.29 Gb (14%) | /vmfs/volumes/LocalSlot45S6=800.95Gb;698.43;838.12;;931.25 [root@nrpe-relay ~]# ps auxww|grep nrpe nagios 1463 0.0 0.1 41468 1364 ? Ss 21:24 0:00 nrpe -c /etc/nagios/nrpe.cfg -d root […]

我可以使用Nagios在小公司进行testing吗?

我不太了解Nagios,只能读到它的系统监控工具。 我公司有1个 1)Linux VPS server 2)Internal Ubuntu server 3)Internal window 2003 server 4)Internal linux server for testing 我只是想和Nagios玩一玩,并想知道,考虑到myt的情况,Nagios如何帮助我的情况,或者它可以做些什么改进来监控这些服务器

Nagios通过pid文件监视进程

有没有可能监控进程与Nagios? 我发现check_procs命令,我不能使用它,因为它不让我指定一个文件来读取PID。 另外,我似乎没有在Google上find任何关于这个的东西,所以我可能对nagios实际上应该做的一些误解。 我的情况是,我有一个有几个虚拟主机的networking服务器。 我可以用check_http来监视那些。 但是,其中一个站点依赖于我也想用nagios监视的后台进程。

当一个服务(一个Windows进程)在Nagios中closures时,如何将主机分类为closures?

当一个Windows服务处于严重状态时(例如,不能运行Windows进程),我想将主机归类为closures状态。 这可能吗? 问候

在Nagiosconfiguration中定义variables?

为了从一开始就消除一些可能的混淆,我不想在主机定义中定义自己的字段,而是创build一个可以跨多个主机定义使用的variables来填充其中一个标准字段。 当我将虚拟机添加到我们的Nagios服务器时,我将虚拟化群集中的机器添加为该机器的父母,因为如果这些服务器中的任何一个启动了,则该虚拟机应该是可访问的。 这导致在表单的每个虚拟机的定义中input: define host{ host_name xxx1 alias xxx1.domain.tld address xxx.xxx.xxx.xxx parents dom0_1, dom0_2, dom0_3, dom0_4, dom0_5, dom0_6 … } 问题是,我们的集群不断变化和扩展,在每个虚拟机中都必须更新这个条目是一件很痛苦的事情,我希望能够在一个地方改变它,并且改变会影响所有的定义我们的虚拟机。

如何将Nagios信息传送到中央位置?

我有Nagios运行来监视各种本地服务。 我试图找出一种方法来让Nagios监视两个远程位置之间的networking连接,并将这些信息报告给我的Nagios服务器,以便将其包含在我的受监视服务列表中。 例如:假设我的公司在我们的加利福尼亚办事处和纽约办事处之间有VPN连接。 纽约办事处与我们的西雅图办事处有VPN连接。 我想在纽约和西雅图的办公室之间监控连接(像定期ping一样简单),并将这些信息转发回加利福尼亚州的Nagios服务器,以便我可以查看这些信息本地监控服务。 感谢您的input!

无法重新安装Nagios

我安装nagios搞砸了configuration,并卸载它。 现在我正试图重新安装,但我得到错误,无法安装。 jason@jason-VirtualBox:/etc$ sudo apt-get install nagios3 Reading package lists… Done Building dependency tree Reading state information… Done nagios3 is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 264 not upgraded. 4 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do […]