canonical / nrpe_exporter

Apache License 2.0
49 stars 18 forks source link

Check_load against localhost is blank #16

Open BuckGup opened 4 years ago

BuckGup commented 4 years ago

When I run the check_load against the localhost the webpage is blank. I can still get metrics from Prometheus but that don't correlate to NRPE and look like basic default metrics like up and process_max_fds Any ideas to why? Thanks

SckyzO commented 4 years ago

Hello. The same here. Used with CentOS 8 and NRPE v 4.0.3

BuckGup commented 4 years ago

Hello. The same here. Used with CentOS 8 and NRPE v 4.0.3

If it helps I am also on CentOS 8 and using the same version of NRPE

SckyzO commented 4 years ago

Hello,

For information, I solved problem. I disabled SSL. On CentOS 8, you don't have /etc/default/nrpe for boot option, so, directly in systemd nrpe file, you need add --no-ssl option.

[root@centos-8-01 ~]# more /usr/lib/systemd/system/nrpe.service
[Unit]
Description=Nagios Remote Plugin Executor
Documentation=http://www.nagios.org/documentation
After=var-run.mount nss-lookup.target network.target local-fs.target time-sync.target
Before=getty@tty1.service plymouth-quit.service xdm.service
Conflicts=nrpe.socket

[Install]
WantedBy=multi-user.target

[Service]
Type=simple
Restart=on-abort
PIDFile=/usr/local/nagios/var/nrpe.pid
RuntimeDirectory=nrpe
RuntimeDirectoryMode=0755
ExecStart=/usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -f --no-ssl
ExecReload=/bin/kill -HUP $MAINPID
ExecStopPost=/bin/rm -f /usr/local/nagios/var/nrpe.pid
TimeoutStopSec=60
User=nagios
Group=nagios
PrivateTmp=true
OOMScoreAdjust=-500