Time to run a command in Nagios Core
Posted: Mon Apr 27, 2020 9:01 pm
I am installing Nagios Core 4.3.2 on Centos 8. When I write a plugin /usr/local/nagios/libexec/check_defacement.sh set in tor and curl. in the check_defacement.sh file, there is a segment:
When I run the command directly, it returns the file /tmp/check_defacement_ $ url. But when I ran through nagios with command.cfg and object.cfg, it returned file empty /tmp/check_defacement_ $url.
Code: Select all
service tor start
curl -s --socks5-hotsname 127.0.0.1:9050 - $url > /tmp/check_defacement_ $url
service tor stop