nagios-plugins
nagios-plugins copied to clipboard
Getting Error - Unknown status: /usr/lib64/nagios/plugins/check_service.sh: line 223: sudo: command not found
Hi, My name is Poonam Davari. I am trying to setup mysql service check using this plugin. and previously it was working fine. But out Testing team did some OS hardening on mysql server and now it is giving error as I pasted in title. Could you please help me out with this. Pasting here required info.
NRPE COMMAND on mysql server -
command runs locally on mysql server -image is not getting uploaded
SERVICE ON NAGIOS SERVER
command from nagios server fails -image is not getting uploaded
Sorry of the late response. You may already have a solution but you should run it as sudo from NRPE by prefixing sudo
to the command or using its sudo options. Then do this instead to -t "service mysqld status"