..在以下shell脚本中?
$USER1$=/usr/lib/nagios/plugins
据我所知,变量定义是作为 -
export USER1=/usr/lib/nagios/plugins
来源:
好的,命令有效.现在我必须将它实现到Nagios中.因为包管理器未安装的所有"本地"命令都在/ usr/lib/nagios/plugins_local中,所以我为此路径定义了一个$ USER2 $变量:
# vim resource.cfg
...
# Sets $USER1$ to be the path to the plugins
$USER1$=/usr/lib/nagios/plugins
# my own check-commands live here:
$USER2$=/usr/lib/nagios/plugins_local
Run Code Online (Sandbox Code Playgroud)