CentOS 7.6 + check_service.sh fails
Posted: Tue Mar 19, 2019 9:01 am
Hello,
Have use ```https://github.com/jonschipp/nagios-plu ... service.sh``` script on debian / ubuntu !
But on centos and fedora is not work have more bugs...
no see if this bug is from centos or the script.
Can you help me to see for what this script not work in nrpe with centos.
Have see 3 bugs/errors
1. Unable to read output
2. /usr/lib64/nagios/plugins/check_service.sh: line 248: systemctl: command not found
3. / usr / sbin / service: line 87: exec: / bin / systemctl: can not execute: Permission not granted
The first one can easily fix it we download the plugin and we made a chmod + x even if it had already been done!
Here have more informations : https://github.com/jonschipp/nagios-plugins/issues/44
Best Regards
Have use ```https://github.com/jonschipp/nagios-plu ... service.sh``` script on debian / ubuntu !
But on centos and fedora is not work have more bugs...
no see if this bug is from centos or the script.
Can you help me to see for what this script not work in nrpe with centos.
Have see 3 bugs/errors
1. Unable to read output
2. /usr/lib64/nagios/plugins/check_service.sh: line 248: systemctl: command not found
3. / usr / sbin / service: line 87: exec: / bin / systemctl: can not execute: Permission not granted
The first one can easily fix it we download the plugin and we made a chmod + x even if it had already been done!
Here have more informations : https://github.com/jonschipp/nagios-plugins/issues/44
Best Regards