看完这个之后 [root@wcmisdlin02 alexus]# tail -2 /etc/sudoers ## Read drop-in files from /etc/sudoers.d (the # here does not mean a comment) #includedir /etc/sudoers.d [root@wcmisdlin02 alexus]# 我现在有以下几点: [root@wcmisdlin02 ~]# cat /etc/sudoers.d/01_nagios Defaults:nagios !requiretty nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/ [root@wcmisdlin02 ~]# 但我得到我的/var/log/messages Sep 21 11:14:32 wcmisdlin02 sudo: nrpe : sorry, you must have a tty to run sudo ; […]
你知道是否有任何简单的方法发送每个检查运行的nagios输出到系统日志?
我希望能够解决这个问题的一半是Nagios,但我只是想检查一下我们在基础架构和自定义应用程序方面的特定要求。 我们需要监控下面列出的自定义事件: 如果在特定文件夹中存在超过30分钟的.CSV或.TXT,则发出警报 警告如果特定的POP3邮箱有超过3个项目在那里 一个特定的文件夹应该每天有一个1700的模式“standard_file_name_ddmmyy”的文件 一个XML文件应该在每天早上0300以前,在周末除外。 本质上,它是监视不同的文件相关的活动,否则很难保持。 有什么build议么?
我是新的监测工具。 最近我们的phpMyAdmin服务器被僵尸networking攻击。 所以我想在我的服务器上进行一些监控,以确保他们的健康和安全。 我担心的是,Nagios也是另一个Web应用程序,如phpMyAdmin是否有任何安全循环漏洞,黑客可以通过它进入? 其次,如果没有问题,我应该如何设置监控MySQL和Web服务器? 或者如果有其他的select呢?
我喜欢Ganglia的Gmetricfunction,我喜欢它的多层function。 但Ganglia没有健康检查,警报和等服务器监视器function。 所以将这两个物种融合在一起会很好。 当然,我们可以安装Ganglia,然后安装ZenOSS。 但是有没有一个插件或者什么东西可以顺利地整合在一起? 至less在展示层面进行整合。 谢谢
我有pnp4nagios工作的nagios基础设施。 最后几天,我添加了新的主机nosql,并在那里安装了mongodb的警报。 主机configuration: define host{ host_name nosql use linux-server,host-pnp address xxx.xxx.xx.xxx } 服务configuration: define service{ hostgroup_name nosql-servers use generic-service,pnp-service service_description MongoDB Connect check_command check_nrpe!check_mongo_connect } 他们似乎像其他人一样configuration。 但是,当我试图访问pnp4nagios中的图时,我得到: Please check the documentation for information about the following error. XML file "/usr/local/pnp4nagios/var/perfdata/nosql/MongoDB_Connect.xml" not found. Read FAQ online file [line]: application/models/data.php [312]: 我有点帮助。 我应该如何激活新图?
可能重复: nagios – Web界面:通过kerberos进行身份validationOK,cgi.cfg上的授权是什么? 我想通过使用活动目录组(下面的代码中的“NagiosWebfrontend”)来授予用户对nagios 3核心前端的访问权限。 login工作正常,如下所示: AuthType Basic AuthName "Nagios Access" AuthBasicProvider ldap AuthzLDAPAuthoritative on AuthLDAPURL "ldap://ip-address:389/OU=user-ou,DC=domain,DC=tld?sAMAccountName?sub?(objectClass=*)" AuthLDAPBindDN CN=LDAP-USER,OU=some-ou,DC=domain,DC=tld AuthLDAPBindPassword the_pass Require ldap-group CN=NagiosWebfrontend,OU=some-ou,DC=domain,DC=tld 不幸的是,每一个nagios页面都只显示“看起来好像你没有权限查看你请求的任何服务的信息……”。 我得到了提示,我缺less一个与我的login相同的nagiosconfiguration中的联系人,但创build一个与域用户同名的联系人对此问题没有影响。 但是,如果不为每个新用户手动编辑nagios.conf,find一个解决scheme是非常好的,所以pipe理员可以通过将用户设置为“NagiosWebfrontend”组来授予对nagios的访问权限。 什么是解决这个问题的最好方法?
如果在Tomca7上运行一个web应用程序,我不想和我们的Nagios进行核对。 我决定用正则expression式来使用check_http插件。 我正在parsingtomcat的状态页面,并检查列“Running”是否为真。 状态页面的源代码如下所示(剪切): <td class="row-left" bgcolor="#FFFFFF" rowspan="2"><small>Applicationname</small></td> <td class="row-center" bgcolor="#FFFFFF" rowspan="2"><small>true</small></td> 这两个信息分为两行。 所以我要检查的是以下内容: ./check_http -I 111.111.111.111 -p 8080 -a user:password -u /manager/html -rl 'Applicationname</small></td>\n.<td class="row-center" bgcolor="#FFFFFF" rowspan="2"><small>true' 问题是,当我使用参数“-l”时,插件的响应总是为真(“HTTP OK”)。 另外,当我修改searchstring像这样强制一个关键: ./check_http -I 111.111.111.111 -p 8080 -a user:password -u /manager/html -rl 'Applicationname</small></td>\n.<td class="row-center" bgcolor="#FFFFFF" rowspan="2"><small>fail_true' 我不知道这是为什么发生。 有人有任何想法? 谢谢,阿尼
在Nagios中,很容易检查过去48小时内发生的日志消息,并发出警报。 但是,如何configurationNagios,在过去48小时内没有发生信息时,它会发出警报声? 为什么这么难? 我正在使用“检查WMI Plus”插件(无需代理)来检查窗口框上的事件日志。
从Nagios 3.5.0(在Ubuntu上)的自动通知似乎没有工作,并给出的错误是“没有联系人被发现通知的目的,没有通知发出”。 下面的代码可以在debugging日志中find: [1370347017.047457] [032.0] [pid=30297] ** Service Notification Attempt ** Host: 'nbsrvcomp-11', Service: 'Number open file descriptors', Type: 0, Options: 0, Current State: 1, Last Notification: Thu Jan 1 01:00:00 1970 [1370347017.047520] [032.0] [pid=30297] Notification viability test passed. [1370347017.047530] [032.1] [pid=30297] Current notification number: 1 (incremented) [1370347017.047539] [032.1] [pid=30297] Service notification will NOT be […]