在 OpenSuse 上安装 Nagios-Agent 错误
Nagios-Agent Error Installation on 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 服务器上安装 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"