AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / unix / 问题

问题[nagios](unix)

Martin Hope
Ricky Levi
Asked: 2024-11-03 20:04:41 +0800 CST

通过电子邮件在 Nagios 通知中包含 action_url 吗?

  • 5

有没有可能将action_url(服务定义)包含在电子邮件模板中?

nagios
  • 1 个回答
  • 7 Views
Martin Hope
elbarna
Asked: 2023-01-03 19:11:09 +0800 CST

nagios:为什么会出现这个错误?

  • 5

我的 kdc 插件工作正常

/usr/lib64/nagios/plugins/check_kdc -H samba4 -p nagios/[email protected] -k /etc/nagios/nagios.keytab 
OK

但是在网页上给我这个错误

(Return code of 13 for service 'KDC' on host 'samba4' was out of bounds) 

这是cfg

命令.cfg

define command{
        command_name    check_kdc
        command_line    /usr/lib64/nagios/plugins/check_kdc -H $HOSTADDRESS$ -k $ARG1$ -p $ARG2$
        }

mydom.cfg

define service{
        use                             local-service         ; Name of service template to use
        host_name                       samba4
        service_description             KDC
        check_command                   check_kdc!/etc/nagios/nagios.keytab!nagios/[email protected]
        notifications_enabled           1
        }

为什么nagios返回错误13?

nagios
  • 2 个回答
  • 26 Views
Martin Hope
Dmitrii Trubetskoy
Asked: 2019-06-28 06:55:40 +0800 CST

如何在没有密码的情况下验证给定 ip 的磁盘空间?

  • 0

我正在编写一个 Nagios 插件,它将检查给定 IP 上的磁盘空间(这将是插件中的 $HOSTADDRESS$)。该脚本运行良好,但我每次 ssh 时都需要输入密码。我认为这在插件方面是不可接受的。因此,我想知道是否有办法将密码放入命令中,以便插件自动使用它?

#!/bin/bash

used_space=$(ssh $1 "df -h /" | grep -v Filesystem | awk '{print $5}' | sed 
's/%//g');

case $used_space in
   // here goes OK,WARNING,CRITICAL etc. code
esac
disk-usage nagios
  • 1 个回答
  • 187 Views
Martin Hope
Dmitrii Trubetskoy
Asked: 2019-06-20 00:47:48 +0800 CST

我在哪里可以获得用于 cpu/hdd 监控的 Nagios 插件?

  • 1

我已经安装了nagios-plugins-contrib:

sudo apt update
sudo apt install nagios-plugins-contrib

但是,没有任何 cpu/hdd 管理插件。

我正在使用 Debian VM 以防万一。

我怎样才能得到这个插件(如果它当然存在的话)?

debian nagios
  • 2 个回答
  • 321 Views
Martin Hope
W S Lockwood
Asked: 2018-01-20 11:55:34 +0800 CST

找不到 6.5 的 EPEL 包 - 某处有保险库吗?

  • 0

我找不到 6.5 的 EPEL 包 - 某处有保险库吗?具体来说,我需要以下 RPM,但找不到它们。这是为了支持旧系统,我们无法升级它或使用更新的软件包。出于某种奇怪的原因,较新的 Nagios 软件包在 CentOS 6.x 中是 4.x,并且配置不兼容。有谁知道我在哪里可以找到以下包?

nagios-plugins-dhcp-1.4.16-10.el6.x86_64 nagios-plugins-users-1.4.16-10.el6.x86_64 nagios-plugins-dummy-1.4.16-10.el6.x86_64 nagios-plugins-nrpe-2.15-2.el6.x86_64 nagios-plugins-file_age-1.4.16-10.el6.x86_64 nagios-plugins-pgsql-1.4.16-10.el6.x86_64 nagios-plugins-ide_smart-1.4.16-10.el6.x86_64 nagios-plugins-sensors-1.4.16-10.el6.x86_64 nagios-3.5.1-1.el6.x86_64 nagios-plugins-perl-1.4.16-10.el6.x86_64 nagios-plugins-linux_raid-1.4.16-10.el6.x86_64 nagios-plugins-check_jmx-1.2.3-1.x86_64 nagios-plugins-check_logfiles-3.5.3.2-2.x86_64 nagios-plugins-load-1.4.16-10.el6.x86_64 nagios-plugins-snmp-1.4.16-10.el6.x86_64 nagios-plugins-dns-1.4.16-10.el6.x86_64 nagios-plugins-disk-1.4.16-10.el6.x86_64 nagios-plugins-ntp-1.4.16-10.el6.x86_64 nagios-plugins-1.4.16-10.el6.x86_64 nagios-plugins-ifstatus-1.4.16-10.el6.x86_64 nagios-plugins-mysql-1.4.16-10.el6.x86_64 nagios-plugins-ssh-1.4.16-10.el6.x86_64 nagios-plugins-mysql_health-2.1.8.2-2.x86_64 nagios-plugins-ldap-1.4.16-10.el6.x86_64 nagios-plugins-smtp-1.4.16-10.el6.x86_64 nagios-plugins-log-1.4.16-10.el6.x86_64 nagios-plugins-mailq-1.4.16-10.el6.x86_64 nagios-plugins-swap-1.4.16-10.el6.x86_64 nagios-plugins-icmp-1.4.16-10.el6.x86_64 nagios-plugins-http-1.4.16-10.el6.x86_64 nagios-plugins-check_ntpq_offset-1.0.3-0.noarch nagios-common-3.5.1-1.el6.x86_64 nagios-plugins-ping-1.4.16-10.el6.x86_64 nagios-plugins-procs-1.4.16-10.el6.x86_64 nagios-plugins-tcp-1.4.16-10.el6.x86_64 nagiosgraph-1.4.4-1.el6.noarch

centos nagios
  • 1 个回答
  • 381 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    模块 i915 可能缺少固件 /lib/firmware/i915/*

    • 3 个回答
  • Marko Smith

    无法获取 jessie backports 存储库

    • 4 个回答
  • Marko Smith

    如何将 GPG 私钥和公钥导出到文件

    • 4 个回答
  • Marko Smith

    我们如何运行存储在变量中的命令?

    • 5 个回答
  • Marko Smith

    如何配置 systemd-resolved 和 systemd-networkd 以使用本地 DNS 服务器来解析本地域和远程 DNS 服务器来解析远程域?

    • 3 个回答
  • Marko Smith

    dist-upgrade 后 Kali Linux 中的 apt-get update 错误 [重复]

    • 2 个回答
  • Marko Smith

    如何从 systemctl 服务日志中查看最新的 x 行

    • 5 个回答
  • Marko Smith

    Nano - 跳转到文件末尾

    • 8 个回答
  • Marko Smith

    grub 错误:你需要先加载内核

    • 4 个回答
  • Marko Smith

    如何下载软件包而不是使用 apt-get 命令安装它?

    • 7 个回答
  • Martin Hope
    user12345 无法获取 jessie backports 存储库 2019-03-27 04:39:28 +0800 CST
  • Martin Hope
    Carl 为什么大多数 systemd 示例都包含 WantedBy=multi-user.target? 2019-03-15 11:49:25 +0800 CST
  • Martin Hope
    rocky 如何将 GPG 私钥和公钥导出到文件 2018-11-16 05:36:15 +0800 CST
  • Martin Hope
    Evan Carroll systemctl 状态显示:“状态:降级” 2018-06-03 18:48:17 +0800 CST
  • Martin Hope
    Tim 我们如何运行存储在变量中的命令? 2018-05-21 04:46:29 +0800 CST
  • Martin Hope
    Ankur S 为什么 /dev/null 是一个文件?为什么它的功能不作为一个简单的程序来实现? 2018-04-17 07:28:04 +0800 CST
  • Martin Hope
    user3191334 如何从 systemctl 服务日志中查看最新的 x 行 2018-02-07 00:14:16 +0800 CST
  • Martin Hope
    Marko Pacak Nano - 跳转到文件末尾 2018-02-01 01:53:03 +0800 CST
  • Martin Hope
    Kidburla 为什么真假这么大? 2018-01-26 12:14:47 +0800 CST
  • Martin Hope
    Christos Baziotis 在一个巨大的(70GB)、一行、文本文件中替换字符串 2017-12-30 06:58:33 +0800 CST

热门标签

linux bash debian shell-script text-processing ubuntu centos shell awk ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve