Archive

Posts Tagged ‘Servers’

Monitoring a RAID controller on a remote machine with MRTG

May 17th, 2014 No comments

In this post, I’ll show you how, using MRTG and xinetd, I set up monitoring of the temperature of a RAID controller on a remote machine.  I use the same technique to also graph the temperatures of the individual hard drives in the RAID array as well, and it can be used to graph just about anything.

raidtemp-day

Read more…

Fixing queues display in trixboxGraph

March 21st, 2012 No comments

I recently installed the trixboxGraph package to my trixbox CE asterisk PBX, and discovered that the functions related to queues were borken. I investigated and fixed it. There are two lines that need updating in tb-trixboxgraph/index.php.

--- index.orig.php 2012-03-21 10:02:54.000000000 -0700
+++ index.php 2012-03-21 10:04:51.000000000 -0700
@@ -136,7 +136,7 @@
fwrite ($f, "node [ style=\"filled\", fillcolor=\"#ffffff\" ];\n");

if ($showQueues) {
- $sql = "select distinct id from queues";
+ $sql = "select distinct id from queues_details";
if (!$res = mysql_query ($sql)) {
die ($sql . " => " . mysql_error ());
}
@@ -148,7 +148,7 @@
}
}
mysql_free_result ($res);
- $sql = "select id,data from queues where keyword='member'";
+ $sql = "select id,data from queues_details where keyword='member'";
if (!$res = mysql_query ($sql)) {
die ($sql . " => " . mysql_error ());
}

You can download the diff file here.

Greylisting

May 8th, 2008 No comments

I’ve implemented greylisting on my mail server, and I have to say that the initial impact is quite dramatic.

Greylisting is a relatively simple mechanism for defeating spam. Read more…

Playing around with GD, PHP and Latitude/Longitude

April 12th, 2008 No comments

A friend of mine asked whether or not I could create a service like MapLoco. They log the IP addresses of your visitors and create a nifty little map showing where they come from.

I told him that as long as I could get the latitude and longitude for a given IP address, I could very likely do it. Half an hour later, I had created a simple proof of concept example. Read more…

Using a sound card as a Music on Hold source in Asterisk

December 15th, 2007 6 comments

Using the line-in port with Trixbox or PBX-in-a-Flash (PiaF)

Asterisk is a fantastic piece of software. You get world class PBX functionality for free, in a package that you can reliably run on a desktop computer.

One area that Asterisk isn’t as world class in is Music on Hold (MoH). Sure, it’s there and it works, but it starts playing a file from the beginning whenever someone is placed on hold. If you have customers who call regularly, they’re hearing the same part of the same files all the time – not ideal.

What I wanted to do was use my MP3 player as a MoH source Read more…