nagios-plugins icon indicating copy to clipboard operation
nagios-plugins copied to clipboard

Getting an Error:Unknown status: /usr/lib64/nagios/plugins/check_service: line 229: systemctl: command not found

Open Ankita1490 opened this issue 7 years ago • 1 comments

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 image 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

image

Ankita1490 avatar Aug 31 '17 09:08 Ankita1490

@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.

cherdt avatar Oct 17 '17 22:10 cherdt