Page 1 of 1

CentOS 7.6 + check_service.sh fails

Posted: Tue Mar 19, 2019 9:01 am
by liberodark
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

Re: CentOS 7.6 + check_service.sh fails

Posted: Tue Mar 19, 2019 1:52 pm
by tgriep
I saw that you added the entries to the sudoers files, and fixed the selinux issue.
Is the plugin fully functioning for you?

Re: CentOS 7.6 + check_service.sh fails

Posted: Mon Mar 25, 2019 11:20 am
by liberodark
Fixed by SELinux thank you for your reply

Re: CentOS 7.6 + check_service.sh fails

Posted: Mon Mar 25, 2019 12:26 pm
by tgriep
Thanks for replying back that the issue is resolved. I will lock the post for you but feel free to open a new one in the future for any other questions.