【文件属性】:
文件名称:check_file_exists_glob:检查文件是否存在
文件大小:4KB
文件格式:ZIP
更新时间:2021-05-20 06:53:38
Shell
检查Nagios Config
使用全局模式检查一个或多个文件是否存在。
安装
例子:
wget https://raw.github.com/mclarkson/check_file_exists_glob/master/check_file_exists_glob
chmod +x check_file_exists_glob
mv check_file_exists_glob /usr/lib64/nagios/plugins/
示例输出
OK: File 'asdfg*' is absent, good.
OK: File 'asdf*' is present, good. | "asdf*"=3
WARNING: File 'asdfg*' found in '/home/clarkm93/bob/'. | "asdfg*"=2
CRITICAL: File 'asd
【文件预览】:
check_file_exists_glob-master
----check_file_exists_glob(7KB)
----README.asciidoc(2KB)