I have started to use Observium for monitoring. It is really good. To get better insight into my machines I have started to use the Unix Agent to view info about BIND, Apache, VMTools etc. I had a bit of trouble finding some clear steps about how to install onto Ubuntu so here is what I did to install.

First install xinetd and libwww-perl (libwww-perl is required for the apache monitoring)

Within the observium_agent_xinetd script you will need to adjust the following line. replace 127.0.0.1 with the IP of the observium server

Next change into the xinetd config directory and install the observium_agent_xinetd script with the modifications above.

Next we install the agent into the bin folder, set its permissions and restart xinetd

Last step is to create the required application scripts. For this example I will add two. One for apache, one for MySQL.

First up lets create the required folders.

Creating scripts is easy, for the apache script all you do is create the file and copy the script into the new file.

MySQL was a little bit more difficult. You need to create a MySQL user account for the agent.

Create the agent script

and the final step for the MySQL is to create the mysql.cnf file with the username and password open the mysql.cnf example file and modify these lines

Then copy the script to the machine

Last step is to change the permissions on the local scripts to be able to be executed.