OpenSuse上的Nagios-Agent错误安装

时间:2015-06-29 08:29:26

标签: 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

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

1 个答案:

答案 0 :(得分:1)

尝试双引号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"