自定义创建的Perl插件出错??拒绝许可
我是perl新手,所以需要您的帮助,我尝试使用此链接创建perl插件 我已经在(/usr/local/nagios/libexec)中创建了文件名check_test.pl 在得到这个错误之后 [root@localhostlibexec]#/check_test.pl-h 192.168.1.101-s 192.168.1.110-i 2 bash:./check\u test.pl:权限被拒绝 我想补充一点自定义创建的Perl插件出错??拒绝许可,perl,nagios,Perl,Nagios,我是perl新手,所以需要您的帮助,我尝试使用此链接创建perl插件 我已经在(/usr/local/nagios/libexec)中创建了文件名check_test.pl 在得到这个错误之后 [root@localhostlibexec]#/check_test.pl-h 192.168.1.101-s 192.168.1.110-i 2 bash:./check\u test.pl:权限被拒绝 我想补充一点 # 'check_test' command definition define
# 'check_test' command definition
define command{
command_name check_test
command_line $USER1$/check_test.pl -H $HOSTADDRESS$ -s 12489
}
command.cfg中的command
相反,我得到的错误权限被拒绝,请对此错误进行检查,实际错误是什么 我认为您的脚本需要执行权限:
chmod +x check_test.pl
更改脚本的权限,以便Nagios或需要运行脚本的任何其他服务可以运行脚本。如何更改脚本的权限??:(查看
man-chmod
(特别是第一个手册页)。man-chmod???我不明白的是什么?请让我详细了解它!在命令行上键入man-chmod
,然后按enter键。如果您可以选择哪一个手册页(也称为手册页)要使用,请选择第一个。文档是您的朋友。请使用它。
chmod +x check_test.pl