My plugin not work ?
Posted: Wed May 29, 2019 8:10 am
Hi,
Have make new plugin for cpu nrpe but is not work is very strange.
https://github.com/liberodark/nrpe-inst ... heck_cpu.c
Centos 7
SELinux disable
Work in local :
parameter on nrpe.cfg :
Not work :
No more information in debug :
May 29 15:04:49 server nrpe[31896]: WARNING: my_system() seteuid(0): Operation not permitted
NRPE: Unable to read output
You have any idea for what my plugin work ?
PS : Is my first plugin !
Best Regards
Have make new plugin for cpu nrpe but is not work is very strange.
https://github.com/liberodark/nrpe-inst ... heck_cpu.c
Centos 7
SELinux disable
Work in local :
Code: Select all
./check_cpu -w 70 -c 90
OK: CPU Used = 0.00% | Core 0 = 0.00%; Core 1 = 0.00%
Code: Select all
command[cpu]=/usr/local/nagios/libexec/check_cpu -w 70 -c 90
Code: Select all
./check_nrpe -H 127.0.0.1 -c cpu
NRPE: Unable to read output
May 29 15:04:49 server nrpe[31896]: WARNING: my_system() seteuid(0): Operation not permitted
NRPE: Unable to read output
You have any idea for what my plugin work ?
PS : Is my first plugin !
Best Regards