CentOS 7.6 + check_service.sh fails

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
liberodark
Posts: 25
Joined: Tue Mar 19, 2019 8:56 am

CentOS 7.6 + check_service.sh fails

Post 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
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: CentOS 7.6 + check_service.sh fails

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
liberodark
Posts: 25
Joined: Tue Mar 19, 2019 8:56 am

Re: CentOS 7.6 + check_service.sh fails

Post by liberodark »

Fixed by SELinux thank you for your reply
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: CentOS 7.6 + check_service.sh fails

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked