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

check_service.sh -> Unknown status: service: only root can use service

Open CarstenSalveter opened this issue 8 years ago • 1 comments

I use check_service.sh with SLES11 SP3 and check_mk but I get only the output: Unknown status: service: only root can use service

with visudo i add this lines, but no success:

Defaults:mysite !requiretty mysite ALL=(ALL) NOPASSWD:ALL

what's going wrong?

Carsten

CarstenSalveter avatar Jan 19 '17 07:01 CarstenSalveter

Are you running it with sudo e.g. sudo check_service.sh .....? Also, I haven't tested it on SLES, not sure how different it is. What init system does it use?

jonschipp avatar Jan 19 '17 18:01 jonschipp