Problem using librenms-agent Proxmox 5

Hello I have a problem,
I set the librenms-agent to show Proxmox and I get the following error
Proxmox(can’t open ‘/etc/pve/priv/authkey.key’ - Permission denied)
Any idea?

Just judging off this you didn’t setup the permissions correctly.

Make the script executable: chmod +x /usr/local/bin/proxmox

-rwxr-xr-x 1 root staff 2115 Oct 15 15:46 /usr/local/bin/proxmox

Perhaps SElinuix ?

Not available

does this file path have the correct permissions setup?

-rw------- 1 root www-data 1679 Sep 19 10:26 /etc/pve/priv/authkey.key
root@gestion1:/opt/librenms-agent# chmod 660 /etc/pve/priv/authkey.key
chmod: changing permissions of ‘/etc/pve/priv/authkey.key’: Operation not permitted

Under wich user does your check_mk agent run?
Mine runs within xinetd wich runs as root.

No problems here with the proxmox script.

xinetd are runing well, but the problem still there

As the authkey.key file is only readable by the root user, the agent and/or proxmox script doesn’t run as root…

Could you run the follow command;

ps aux |grep xinetd |grep -v grep

root@gestion1:~# ps aux |grep xinetd |grep -v grep
root 13458 0.0 0.0 20224 2180 ? Ss 11:56 0:00 /usr/sbin/xinetd -pidfile /run/xinetd.pid -stayalive -inetd_compat -inetd_ipv6
root 16356 0.0 0.0 24984 1632 ? Ss Sep27 0:00 /usr/sbin/xinetd -stayalive -pidfile /var/run/xinetd.pid

Looks good, and the output of

sudo netstat -lntp |grep 6556

root@gestion1:~# netstat -lntp |grep 6556
tcp6 0 0 :::6556 :::* LISTEN 1/init

Can you run the proxmox script as root user?

sudo /usr/lib/check_mk_agent/local/proxmox

/usr/lib/check_mk_agent/local/proxmox
<<>>
gestion0
514/net0/879727239/773649283/smokeping.upr.edu.cu
this information it’s ok

Do you see anything with this command?

telnet localhost 6556 |grep -A 5 “<<<app-proxmox>>>”

root@gestion1:~# telnet localhost 6556 |grep -A 5 “<<>>”
-bash: syntax error near unexpected token `>’

telnet localhost 6556 |grep -A 5 “app-proxmox”

root@gestion1:~# telnet localhost 6556 |grep -A 5 “app-proxmox”
Connection closed by foreign host.

Could you post your /etc/xinetd.d/check_mk file?
Or at least the only_from line?

Could you try the telnet command from your monitoring server?

telnet PROXMOXHOST 6556 |grep -A 5 “app-proxmox”