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

Getting Error - Unknown status: /usr/lib64/nagios/plugins/check_service.sh: line 223: sudo: command not found

Open PoonamDavari opened this issue 8 years ago • 1 comments

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 -

image

command runs locally on mysql server -image is not getting uploaded

SERVICE ON NAGIOS SERVER

image

command from nagios server fails -image is not getting uploaded

PoonamDavari avatar Jun 20 '16 08:06 PoonamDavari

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"

jonschipp avatar Jan 19 '17 19:01 jonschipp