Networking

Unix and Linux network configuration. Multiple network interfaces. Bridged NICs. High-availability network configurations.

Applications

Reviews of latest Unix and Linux software. Helpful tips for application support admins. Automating application support.

Data

Disk partitioning, filesystems, directories, and files. Volume management, logical volumes, HA filesystems. Backups and disaster recovery.

Monitoring

Distributed server monitoring. Server performance and capacity planning. Monitoring applications, network status and user activity.

Commands & Shells

Cool Unix shell commands and options. Command-line tools and application. Things every Unix sysadmin needs to know.

Home » Performance

Observium Agent Installation on Pidora

Submitted by on April 13, 2015 – 11:50 am

Just some quick notes on installing Observium agent on Raspberry Pi running Pidora. Pretty much the same process applies to any Fedora-like flavor.

Install xinetd and enable at boot time

yum -y install xinetd

On the Observium server, edit /opt/observium/scripts/observium_agent_xinetd and add the server’s IP address to the “only_from” line, so the file looks something like this:
[root@observium01a]# cat /opt/observium/scripts/observium_agent_xinetd
service observium_agent
{
        type           = UNLISTED
        port           = 36602
        socket_type    = stream
        protocol       = tcp
        wait           = no
        user           = root
        server         = /usr/bin/observium_agent

        # configure the IPv[4|6] address(es) of your Observium server here:
        only_from      = 127.0.0.1 ::1 192.168.22.37

        # Don't be too verbose. Don't log every check. This might be
        # commented out for debugging. If this option is commented out
        # the default options will be used for this service.
        log_on_success =

        disable        = no
}

Copy the necessary files from your Observium host. In this example we also include the “raspberrypi” custom monitoring script.
observium_server=observium01a
scp -p ${observium_server}:/opt/observium/scripts/observium_agent_xinetd /etc/xinetd.d/observium_agent_xinetd
chown root:root /etc/xinetd.d/observium_agent_xinetd
chmod 544 /etc/xinetd.d/observium_agent_xinetd
scp -p ${observium_server}:/opt/observium/scripts/observium_agent /usr/bin/observium_agent
chown root:root /usr/bin/observium_agent
mkdir -p /usr/lib/observium_agent/local

Add the raspberrypi monitoring script and bounce xinetd service:
scp -p ${observium_server}:/opt/observium/scripts/agent-local/raspberrypi /usr/lib/observium_agent/local/
/sbin/chkconfig xinetd on
/sbin/service xinetd restart

In the Observium Web UI navigate to the client system –> Settings –> Modules and enable “unix-agent”. If you have

IPtables notes:

On the monitored client you must allow incoming connections from the Observium host on port 36602. In this example the Observium server’s IP is 192.168.22.37 and so you run the following command on the client system:

iptables -I INPUT -s 192.168.22.37/0 -p tcp --dport 36602 -j ACCEPT

And don’t forget to save the rules:
/sbin/service iptables save

To verify connectivity, use the telnet command from Observium server (you may need to install the telnet package):
telnet $client_ip 36602

You should see some data. If you see “No route to host”, then something is not working right with your firewall config. If you see “disconnected” message without any data, then the client agent is not working right.

raspberrypi_observium_01

Print Friendly, PDF & Email

Leave a Reply