[like]  Roger Larsen reacted to your message:
________________________________
From: Tony Guadagno via observium <[email protected]>
Sent: Friday, December 29, 2023 8:50:31 PM
To: Observium <[email protected]>
Cc: Tony Guadagno <[email protected]>
Subject: [Observium] xinetd not supported on RHEL 9, use systemd instead

Hi,  as xinetd is not provided for RHEL 9, I wrote a couple of systemd units to 
make this work.  I am sure someone smarter than me could make this better, but 
I have confirmed this does work on any modern systemd implementation.

Would it be possible to get this in the documentation so the knowledge is not 
lost?

Here is the info:

Create a new file: /etc/systemd/system/observiumagent.socket
Paste this into the file:

[Unit]
Description=Observium Agent Socket
[email protected]

[Socket]
ListenStream=36602
Accept=yes

[Install]
WantedBy=sockets.target

Change permissions on the file: Chmod 660 
/etc/systemd/system/observiumagent.socket


Create another new file: 
/etc/systemd/system/[email protected]<mailto:/etc/systemd/system/[email protected]>
Paste this into the file:

[Unit]
Description=Observium Agent Server
PartOf=observiumagent.socket

[Service]
ExecStart=-/usr/bin/observium_agent
#User=example
#Group=example
StandardInput=socket
Sockets=observiumagent.socket

Change permissions on the file: Chmod 660 
/etc/systemd/system/[email protected]<mailto:/etc/systemd/system/[email protected]>

Reload systemd: systemctl daemon-reload
Enable and start the service: systemctl enable --now observiumagent.socket

That’s it, of course, follow the rest of the direction on the page (UNIX Agent 
- Observium<https://docs.observium.org/unix_agent/>), just ignore the ones 
involving xinetd

Thanks

)


Tony Guadagno
O +1 585 577 1003
C +1 585 703 6700
E [email protected]<mailto:[email protected]>
[cid:[email protected]]

_______________________________________________
observium mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to