我已经安装并运行了一个Nagios服务器。我开始将check_mk部署到我所有的客户端机器上。我在客户机上使用mrpe进行自定义检查。作为检查之一,我想使用check_ssh插件。我试图将check_ssh从另一台机器复制到客户端,但它似乎不允许我以这种方式运行它。我是否可以摆脱实际安装nagios代理,只使用check_mk并能够运行Nagios插件?
我得到的确切错误是:
ld.so.1: check_ssh: fatal: libintl.so.3: open failed: No such file or directory
提前感谢
早上好,
我的Nagios配置有问题。这是服务nagios状态的响应:
root@SRV-SUPERVISION-BT:~# service nagios status
● nagios.service - LSB: Starts and stops the Nagios monitoring server
Loaded: loaded (/etc/init.d/nagios)
Active: active (running) since ven. 2016-06-17 09:47:46 CEST; 41min ago
Process: 458 ExecStart=/e
System CentOS 7.2寻找一种解决方案,不需要更改就可以将多行代码写入文件
一小块代码:
echo '
sed -i $'45 a \n' /usr/local/nagios/etc/nagios.cfg &&
sed -i $'45 a \n' /usr/local/nagios/etc/nagios.cfg &&
sed -i $'45 a \n' /usr/local/nagios/etc/nagios.cfg &&
sed -i '46s#.*#cfg_file=
下面是我用来复制许多文件的资源。
['contacts_nagios2.cfg','generic-host_nagios2.cfg','generic-service_nagios2.cfg','hostgroups_nagios2.cfg','services_nagios2.cfg','timeperiods_nagios2.cfg'].each do |file|
cookbook_file "/etc/nagios3/conf.d/#{file}" do
sou
遵循这里的说明,http://linoxide.com/how-tos/install-configure-nagios-centos-7/ (但是下载Nagios 4.0.2而不是4.0.7 -我必须使用该版本),我已经到了一个无法启动Nagios服务的地步。
我想要的命令是-
[root@my-server]# service nagios start
Starting nagios (via systemctl): Job for nagios.service failed. See 'systemctl status nagios.service' and &
安装Debian的Nagios4包后,我无法访问它。Apache给了我这个:
AH01797: client denied by server configuration: /usr/share/nagios4/htdocs
我尝试过各种方法,例如将相关目录的所有权更改为www-data user & group (apache2以该用户身份运行),以及编辑配置文件以添加该目录的权限:
/etc/apache2/conf-现有/nagios4 4-cgi.conf
...
<Directory /usr/share/nagios4/htdocs>
Options
傀儡版本: 3.2.4 (傀儡企业3.0.1)
为了更好地支持配置文件中的nagios cfg_dir和cfg_file指令,我创建了以下类(Es),每个选项一个:
# Class to add a cfg_dir to the nagios configuration file
class nagios::server::cfg_dir (
$config_dir,
$nagios_user,
$nagios_group,
$nagios_config_file = '/etc/nagios3/nagios.cfg',
)
{
# Build the co
我正在尝试安装Nagios。我在亚马逊CentOS上使用了一个AMI,它安装了Ambari + Nagios + ...除了Nagios接口之外,所有的东西都工作得很好。
Nagios运行起来没有任何问题。但是,当我尝试访问web界面时,如果我点击右侧的任何链接,我总是会得到这样的信息:
Whoops!
Error: Could not read object configuration data!
Here are some things you should check in order to resolve this error:
Verify configuration opti
我的kdc插件很好
/usr/lib64/nagios/plugins/check_kdc -H samba4 -p nagios/nagios1.mydom.priv@MYDOM.PRIV -k /etc/nagios/nagios.keytab
OK
但是在网页上给我这个错误
(Return code of 13 for service 'KDC' on host 'samba4' was out of bounds)
这是cfg
commands.cfg
define command{
command_name check_kdc
我按照本教程http://sharadchhetri.com/2014/02/08/install-and-configure-nagios-core-4-on-ubuntu-12-04-lts/安装了nagios
在启动nagios和apache2并浏览nagios管理门户时,我看到了如下所示的错误
(No output on stdout) stderr: execvp(/usr/local/nagios/libexec/check_ping)
(No output on stdout) stderr: execvp(/usr/local/nagios/libexec/check_htt