Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Execute newrelic-nfsiostat #23

Open
jilabaca opened this issue Feb 13, 2017 · 2 comments
Open

Error Execute newrelic-nfsiostat #23

jilabaca opened this issue Feb 13, 2017 · 2 comments

Comments

@jilabaca
Copy link

jilabaca commented Feb 13, 2017

Hello,

I installed the plugins in Oracle Linux 7 (Red Hat 7, Centos 7) and I have the following error, does anyone know what to do?

The log file that is configured in the .conf is not created

service newrelic-nfsiostat start

Starting newrelic-nfsiostat (via systemctl): Job for newrelic-nfsiostat.service failed because the control process exited with error code. See "systemctl status newrelic-nfsiostat.service" and "journalctl -xe" for details.
[FAILED]

systemctl status newrelic-nfsiostat.service

newrelic-nfsiostat.service - SYSV: NewRelic NFSIOSTAT Plugin
Loaded: loaded (/etc/rc.d/init.d/newrelic-nfsiostat; bad; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2017-02-13 10:58:16 CLST; 6s ago
Docs: man:systemd-sysv-generator(8)
Process: 29365 ExecStart=/etc/rc.d/init.d/newrelic-nfsiostat start (code=exited, status=1/FAILURE)

Feb 13 10:58:16 aulas-01.inacap.cl systemd[1]: Starting SYSV: NewRelic NFSIOSTAT Plugin...
Feb 13 10:58:16 aulas-01.inacap.cl newrelic-nfsiostat[29365]: Starting /usr/bin/newrelic-nfsiostat: Traceback (most recent call last):
Feb 13 10:58:16 aulas-01.inacap.cl newrelic-nfsiostat[29365]: File "/usr/bin/newrelic-nfsiostat", line 35, in
Feb 13 10:58:16 aulas-01.inacap.cl newrelic-nfsiostat[29365]: from daemon import runner
Feb 13 10:58:16 aulas-01.inacap.cl newrelic-nfsiostat[29365]: ImportError: No module named daemon
Feb 13 10:58:16 aulas-01.inacap.cl newrelic-nfsiostat[29365]: [FAILED]
Feb 13 10:58:16 aulas-01.inacap.cl systemd[1]: newrelic-nfsiostat.service: control process exited, code=exited status=1
Feb 13 10:58:16 aulas-01.inacap.cl systemd[1]: Failed to start SYSV: NewRelic NFSIOSTAT Plugin.
Feb 13 10:58:16 aulas-01.inacap.cl systemd[1]: Unit newrelic-nfsiostat.service entered failed state.
Feb 13 10:58:16 aulas-01.inacap.cl systemd[1]: newrelic-nfsiostat.service failed.

@TJM
Copy link
Member

TJM commented Feb 13, 2017

It looks like you don't have "python-daemon" installed. It looks to me like its available in EPEL. However, I will point out that it would be best to fork the code and rewrite that portion. Python-daemon doesn't seem to start newrelic-nfsiostat at boot time for us (CentOS 6.8). Possibly due to a lack of input/output channels?

If you had installed the RPM, it would have had it:
https://github.com/LarkIT/newrelic-nfsiostat/blob/master/newrelic-nfsiostat.spec#L33

Maybe you installed it some other way?

@jilabaca
Copy link
Author

Thank you!! I did not actually have python-daemon and python-psutil installed. Now it works perfect! Thanks for the guidance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants