$ VARIABLE $代表什么

erb*_*dex 1 bash nagios

..在以下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)

cmb*_*ley 6

$USERn$(更具体地说,$USER1$USER255$)是在Nagios中声明用户定义的宏的方法.

另请参阅" 了解宏及其工作原理".