Skip to content
Bots!
Bots!
  • About
    • Myself
    • আমার দোয়া
  • Bookmarks
    • Bookmarks
    • My OCI Bookmarks
    • Useful Proxmox Commands & Links
    • Learning Nano
    • Useful Sites
    • Useful Virtualbox Command
    • Useful MySQL Command
    • Useful Linux Command
    • BTT-CAS
  • Resources
    • Webinar on Cloud Adoption for Project Managers
  • Photos
  • Videos
  • Downloads
Bots!

Observium Unix Agent

Rumi, May 25, 2020

All Agent data is pulled in one TCP connection during the unix-agent module. The module populates an $agent_data array which can be used by other modules. For example:

$agent_data = 
['app'] => 
['apache'] => 
... DATA ...
['bind'] =>
... DATA ...
['other'] =>
... DATA ...

Installation
The preferred method of running the Unix agent is via xinetd, preferably with an iptables firewall only allowing access from the monitoring server(s). Make sure this package is installed.

sudo apt-get install xinetd

Observium provides an example xinetd configuration file. Copy this from Observium to the server that will be running the agent.

scp /opt/observium/scripts/observium_agent_xinetd user@your_server:/etc/xinetd.d/observium_agent_xinetd

Edit observium_agent_xinetd so the Observium server is allowed to connect. You can do this by substituting 127.0.0.1, or place your IP after it, separated by a space. Make sure to restart xinetd afterwards so the configuration file is read.

sudo service xinetd restart

Copy the observium_agent script from Observium to the server that will be running the agent.

scp /opt/observium/scripts/observium_agent user@your_server:/usr/bin/observium_agent

Create a /usr/lib/observium_agent directory:

sudo mkdir -p /usr/lib/observium_agent

Next, create /usr/lib/observium_agent/scripts-available and /usr/lib/observium_agent/scripts-enabled directories.

Copy all agent scripts into the scripts-available directory, and place a symbolic link into scripts-enabled for the ones you want to enable:

scp /opt/observium/scripts/agent-local/* user@your_server:/usr/lib/observium_agent/scripts-available
sudo ln -s /usr/lib/observium_agent/scripts-available/os /usr/lib/observium_agent/scripts-enabled
sudo ln -s /usr/lib/observium_agent/scripts-available/dmi /usr/lib/observium_agent/scripts-enabled
sudo ln -s /usr/lib/observium_agent/scripts-available/apache /usr/lib/observium_agent/scripts-enabled

If you prefer to use a simpler layout and don’t need the ability to enable/disable specific scripts using symbolic links, you can alternatively simply create a /usr/lib/observium_agent/local directory and put the agent scripts you want to run in the local directory directly:

sudo mkdir -p /usr/lib/observium_agent/local
scp /opt/observium/scripts/agent-local/os user@your_server:/usr/lib/observium_agent/local

Enabling Observium’s Unix Agent module

Next, enable the unix-agent module (on your device’s settings tab, modules section) or globally for all *nix devices in the config.php configuration file:

$config['poller_modules']['unix-agent'] = 1;

Testing
To verify the agent is running, try to telnet from your Observium server to the monitored server on port 36602. If you see a blast of output, then the agent is working and is available to Observium.

telnet your_server 36602

To verify a specific script is working, you can run it from the command line on the monitored host. Make sure the script is executable (+x), otherwise the agent won’t run it.

chmod +x /usr/bin/observium_agent
/usr/bin/observium_agent

Modules
The scripts/agent-local directory of your Observium installation includes various modules which can be placed into /usr/lib/observium_agent/local to add additional functions to the agent. The files you want to be executed have to be marked as executable with chmod +x.

As this infrastructure is currently in development, it is recommended that these are downloaded to the server via SVN and symlinked into place, allowing updating of the scripts either manually or via cron.

Please refer to the Applications page for a list of supported apps.

Src: https://docs.observium.org/unix_agent/#enabling-observiums-unix-agent-module

Administrations Configurations (Linux) Observium

Post navigation

Previous post
Next post

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Myself…

Hi, I am Hasan T. Emdad Rumi, an IT Project Manager & Consultant, Virtualization & Cloud Savvyfrom Dhaka, Bangladesh. I have prior experience in managing numerous local and international projects in the area of Telco VAS & NMC, National Data Center & PKI Naitonal Root and CA Infrastructure. Also engaged with several Offshore Software Development Team.

Worked with Orascom Telecom-Banglalink, Network Elites as VAS partner, BTRC, BTT (Turkey) , Mango Teleservices Limited and Access to Informaiton (A2I-UNDP)

Currently working at Oracle Corporation as Principal Technology Solution and Cloud Architect.

You can reach me [h.t.emdad at gmail.com] and I will be delighted to exchange my views.

Tags

Apache Bind Cacti CentOS CentOS 6 CentOS 7 Debain Debian Debian 10 Debian 11 Debian 12 DKIM Docker endian icinga iptables Jitsi LAMP Letsencrypt Linux Munin MySQL Nagios Nextcloud NFS nginx pfsense php Postfix powerdns Proxmox RDP squid SSH SSL Ubuntu Ubuntu 16 Ubuntu 18 Ubuntu 20 Varnish virtualbox vpn Webmin XCP-NG zimbra

Topics

Recent Posts

  • Install Jitsi on Ubuntu 22.04 / 22.10 April 30, 2025
  • Key Lessons in life April 26, 2025
  • Create Proxmox Backup Server (PBS) on Debian 12 April 19, 2025
  • Add Physical Drive in Proxmox VM Guest April 19, 2025
  • Mount a drive permanently with fstab in Linux April 16, 2025
  • Proxmox 1:1 NAT routing March 30, 2025
  • Installation steps of WSL – Windows Subsystem for Linux March 8, 2025
  • Enabling Nested Virtualization In Proxmox March 8, 2025
  • How to Modify/Change console/SSH login banner for Proxmox Virtual Environment (Proxmox VE / PVE) March 3, 2025
  • Install Proxmox Backup Server on Debian 12 February 12, 2025

Archives

Top Posts & Pages

  • Install Jitsi on Ubuntu 22.04 / 22.10
©2025 Bots! | WordPress Theme by SuperbThemes