like Roger Larsen reacted to your message:

From: Tony Guadagno via observium <observium@lists.observium.org>
Sent: Friday, December 29, 2023 8:50:31 PM
To: Observium <observium@lists.observium.org>
Cc: Tony Guadagno <tonyg@guadagno.org>
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

Requires=observiumagent@.service

 

[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/observiumagent@.service

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/observiumagent@.service

 

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), just ignore the ones involving xinetd

 

Thanks

 

)

 

 

Tony Guadagno

O +1 585 577 1003

C +1 585 703 6700

E tonyg@guadagnoconsulting.com

cid:image001.jpg@01D84DD6.FC9912E0