linux - 在 OpenSuse 上安装 Nagios-Agent 错误

标签 linux nagios opensuse

当我尝试在我的 linux 服务器上安装 linux-nagios-agent 时,出现以下错误:

/home/lost+found/linux-nrpe-agent # ./fullinstall
/etc/os-release: line 2: syntax error near unexpected token `('

下面是os-release的内容

# cat /etc/os-release
NAME=openSUSE
VERSION = 12.1 (Asparagus)
VERSION_ID="12.1"
PRETTY_NAME="openSUSE 12.1 (Asparagus) (x86_64)"
ID=opensuse

知道是什么导致了这个问题吗?

最佳答案

尝试双引号 VERSION 字符串,这是它在较新版本中的样子:

# cat /etc/os-release
NAME=openSUSE
VERSION="13.2 (Harlequin)"
VERSION_ID="13.2"
PRETTY_NAME="openSUSE 13.2 (Harlequin) (x86_64)"
ID=opensuse
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:opensuse:13.2"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://opensuse.org/"
ID_LIKE="suse"

关于linux - 在 OpenSuse 上安装 Nagios-Agent 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31111059/

相关文章:

linux - 如何使用带有序列号的 Linux shell 变量?

Nagios:关键 - 10 秒后套接字超时

linux - 亚马逊 ec2 上的 NRPE 远程主机设置

linux - 使 bash 脚本在 Linux 和 Solaris 上运行

node.js - 几天后,我无法再启动 Puppeteer,直到我重新启动服务器

c++ - 是否有与 Linux 的 MulDiv 等效的功能?

linux - 编译程序在虚拟机中运行时,march 和 mtune 应该设置成什么?

java - JMXQuery 连接 - 身份验证失败

c# - Linux下使用MonoDevelop的项目中如何使用Console.ReadLine()

python-3.x - 这段 python 代码挂了我的整个系统,有人知道吗?