nagios-plugins
nagios-plugins copied to clipboard
Getting an Error:Unknown status: /usr/lib64/nagios/plugins/check_service: line 229: systemctl: command not found
Hi,
I am trying to setup tomcatl service check using this plugin.
Can you please help me out with this issue.
NRPE COMMAND on Tomcat server
The above command runs on the local tomcat server
But When I try to run the command from nagios server it gives the error Unknown status: /usr/lib64/nagios/plugins/check_service: line 229: systemctl: command not found
SERVICE ON NAGIOS SERVER
@Ankita1490 I don't know for sure but I suspect that the path to systemctl
is not in the PATH environment variable for the user running the command.
Try using the full path (on my system it is /usr/bin/systemctl
, you can find the full path on your system with which systemctl
), that may help.