It works from the CLI:
Code: Select all
/usr/local/nagios/libexec/check_website -w 1500 -c 4000 -t 6000 -s -u /_layouts/15/Sp.Login.Custom/Login.aspx\?ReturnUrl=%2f_layouts%2f15%2fAuthenticate.aspx%3fSource%3d%252F portal.dir.texas.gov
HTTPS OK: 98ms - https://portal.dir.texas.gov/_layouts/15/Sp.Login.Custom/Login.aspx?ReturnUrl=%2f_layouts%2f15%2fAuthenticate.aspx%3fSource%3d%252F|time=98ms;1500;4000;0;I have created a command in XI called check_website:
Code: Select all
$USER1$/check_website -w $ARG1$ -c $ARG2$ -t $ARG3$ $ARG4$ -u $ARG5$ $ARG6$ Code: Select all
COMMAND: /usr/local/nagios/libexec/check_website -w 1500 -c 4000 -t 6000 -p 443 -s -u /_layouts/15/Sp.Login.Custom/Login.aspx\?ReturnUrl=%2f_layouts%2f15%2fAuthenticate.aspx%3fSource%3d%252F portal.dir.texas.gov
OUTPUT: HTTPS OK: 104ms - https://portal.dir.texas.gov:443/_layouts/15/Sp.Login.Custom/Login.aspx?ReturnUrl=%2f_layouts%2f15%2fAuthenticate.aspx%3fSource%3d%252F|time=104ms;1500;4000;0;When I assign it to a host and put on a scheduled check I always get this error:
Code: Select all
(Return code of 127 is out of bounds - plugin may be missing)I have checked for solutions and followed all the suggestions.
I checked that the plugin exists in the plugin directory.
I checked that Nagios has permissions to the plugin.
I checked that Nagios could execute wget (used in the plugin).
I do not know what else to check.