?>
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Matt Gibson &#187; Howto</title>
	<atom:link href="http://www.mattgibson.ca/tags/howto/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mattgibson.ca</link>
	<description>I'm one of those people radio shows call for obscure shit.</description>
	<lastBuildDate>Sat, 03 Dec 2011 19:30:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Setting up Split-Split DNS with Windows SBS 2003 DNS Services, easily.</title>
		<link>http://www.mattgibson.ca/2008/07/13/setting-up-split-split-dns-with-windows-sbs-2003-dns-services-easily/</link>
		<comments>http://www.mattgibson.ca/2008/07/13/setting-up-split-split-dns-with-windows-sbs-2003-dns-services-easily/#comments</comments>
		<pubDate>Sun, 13 Jul 2008 09:23:33 +0000</pubDate>
		<dc:creator>Matt G</dc:creator>
				<category><![CDATA[Howto]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Windows Mobile]]></category>
		<category><![CDATA[howto setup]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[mobile devices]]></category>
		<category><![CDATA[outlook web access]]></category>
		<category><![CDATA[windows 2003 server]]></category>

		<guid isPermaLink="false">http://www.mattgibson.ca/2008/07/13/setting-up-split-split-dns-with-windows-sbs-2003-dns-services-easily/</guid>
		<description><![CDATA[Have you ever wondered how you could access your external hostnames, internal to your network connected via wifi, mobile devices or just plain old desktops? Today we found out we needed to. Our mobile devices require the use of external hostnames to sync data against. And it&#8217;s nice being able to use our external hostname [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever wondered how you could access your external hostnames, internal to your network connected via wifi, mobile devices or just plain old desktops? Today we found out we needed to. Our mobile devices require the use of external hostnames to sync data against. And it&#8217;s nice being able to use our external hostname for Outlook Web Access, and debugging internally.</p>
<p><strong>For example:</strong></p>
<ul>
<li>Billy wants to visit <a href="http://www.mattgibson.ca">http://www.mycompanyname.com</a></li>
<li>Billy can&#8217;t because that particular site is hosted off the external IP of the network he&#8217;s on. Gosh, what to do?</li>
<li>Billy Reads the Howto Setup SPLIT-SPLIT DNS with SBS 2003 DNS Server below</li>
<li>Billy can now visit <a href="http://www.mattgibson.ca">http://www.mycompanyname.com</a> because it&#8217;s mapped to the internal ip of 192.168.1.1 or whatever your networking scheme is.</li>
<li>Billy is now happy.</li>
</ul>
<p>Off we went to Google, to try and find out what we needed; DNS Redirection? No, IP Port Redirection? No, Redirect External IP to Local IP, No. Tiresom it was, searching for this.</p>
<p>Then we decided to try and jump right in to figuring it out. First, we tried doing it at the router level, but none of us are IOS guru&#8217;s so this quickly became out of the question. Next we tried running a secondary DNS server on the SBS2K3 Server, and transferring the domain from our live server at the Datacenter in Seattle. This also didn&#8217;t work because once the domain was transferred into our secondary DNS on the Windows 2003 Server we weren&#8217;t able to edit any of the records. Pitty.</p>
<p>So, on we were to IRC. Ahhh, IRC. Not too many people use it anymore, but usually really cool people are available to help out. After asking in a couple channels we figured out that what we needed to do was set up something called <a href="http://www.isaserver.org/tutorials/You_Need_to_Create_a_Split_DNS.html">Split-Split DNS</a>. Basically all this is, is the method of running two DNS Servers. One inside your network, and one external to your network. Here&#8217;s a Microsoft Article on the subject of <a href="http://www.microsoft.com/technet/solutionaccelerators/wssra/raguide/NetworkServices/ignsbp_2.mspx#EYDAG">Enterprise DNS Design</a> which involves Split-Split DNS. This allows for internal hosts behind NAT networks to see external hostnames as if they are on the internal network.</p>
<p>With a bit more searching we came across <a href="http://blog.gingerlime.com/windows-2003-split-dns">this excellent post</a> by Ginger Lime. Using their instructions we have created a simple howto for doing the same thing on your internal domain.</p>
<p>With our little howto, you&#8217;ll be able to get this done quickly and easily on your internal windows sbs 2003 domain name server. Please readon for the howto.</p>
<p>First, we&#8217;ll have to open the DNS control panel. This is in the main server management console, under the computer management box. Here&#8217;s a screenshot. Make sure you enter into the Forward Lookup Zones box.</p>
<p align="center"><img src="http://www.mattgibson.ca/wp-content/uploads/2008/07/dns1.jpg" alt="dns1" width="295" height="336" /></p>
<p>Now, right click on &#8220;<strong>Forward Lookup Zones</strong>&#8221; and click on &#8220;<strong>Add New Zone</strong>&#8220;. Like This.</p>
<p align="center"><img src="http://www.mattgibson.ca/wp-content/uploads/2008/07/dns2.jpg" alt="dns2" width="295" height="336" /></p>
<p>Now you&#8217;ll be presented with the New Zone Wizard window. Click Next.</p>
<p align="center"><img src="http://www.mattgibson.ca/wp-content/uploads/2008/07/3-1.jpg" alt="3" width="400" height="310" /></p>
<p>Now, Select a primary Zone for this tutorial.</p>
<p align="center"><img src="http://www.mattgibson.ca/wp-content/uploads/2008/07/4.jpg" alt="4" width="400" height="309" /></p>
<p>Disable the storage of the information in Active Directory. Click Next.</p>
<p align="center"><img src="http://www.mattgibson.ca/wp-content/uploads/2008/07/5-1.jpg" alt="5" width="400" height="37" /></p>
<p>Now type in your domain name that you want to resolve internally. Some common ones might be dev.yourdomain.com or www.yourdomain.com or similar. Click Next.</p>
<p align="center"><img src="http://www.mattgibson.ca/wp-content/uploads/2008/07/6-1.jpg" alt="6" width="400" height="308" /></p>
<p>This window will be automatically filled out for you. Just click Next.</p>
<p align="center"><img src="http://www.mattgibson.ca/wp-content/uploads/2008/07/7-1.jpg" alt="7" width="400" height="308" /></p>
<p>Now, make sure you don&#8217;t allow dynamic updates. This record is something you should be manually updating only. Click Next.</p>
<p align="center"><img src="http://www.mattgibson.ca/wp-content/uploads/2008/07/8-1.jpg" alt="8" width="400" height="309" /></p>
<p>Your new zone is complete. Click Finish.</p>
<p align="center"><img src="http://www.mattgibson.ca/wp-content/uploads/2008/07/9-1.jpg" alt="9" width="400" height="307" /></p>
<p>Now, Right Click your new zone (external.hostname.com), and select to &#8220;New Host (A)&#8221;. Let go of your mouse button now. <img src='http://www.mattgibson.ca/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p align="center"><img src="http://www.mattgibson.ca/wp-content/uploads/2008/07/dns3-1.jpg" alt="dns3" width="295" height="336" /></p>
<p>Now, add your internal IP address to the host, but leave the Name blank. Like this. Also leave the PTR record one un-checked since we don&#8217;t need it. Click Add Host.</p>
<p align="center"><img src="http://www.mattgibson.ca/wp-content/uploads/2008/07/last.jpg" alt="last" width="353" height="330" /></p>
<p>You should see a message like this pop up.</p>
<p align="center"><img src="http://www.mattgibson.ca/wp-content/uploads/2008/07/11-1.jpg" alt="11" width="400" height="121" /></p>
<p>Click on the Done button to leave this window.</p>
<p align="center"><img src="http://www.mattgibson.ca/wp-content/uploads/2008/07/12-1.jpg" alt="12" width="188" height="91" /></p>
<p>Now you should see a blank host, with the internal IP address you specified during the last section of this tutorial.</p>
<p align="center"><a href="http://www.mattgibson.ca/wp-content/uploads/2008/07/13-1-1.jpg"><img src="http://www.mattgibson.ca/wp-content/uploads/2008/07/13-1-1-small.jpg" alt="13" width="339" height="19" /></a></p>
<p>Now you&#8217;re finished setting up a SPLIT-SPLIT DNS server using SBS2k3.</p>
<p>Go over to a different computer on your network that uses the Windows 2003 SBS Server as it&#8217;s DNS Controller, and try a nslookup or ping against the external hostname you&#8217;ve just added. If you get ping returns you&#8217;re good to go.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mattgibson.ca/2008/07/13/setting-up-split-split-dns-with-windows-sbs-2003-dns-services-easily/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Using SSL POP3 (Google Apps/Gmail) with Kayako SupportSuite</title>
		<link>http://www.mattgibson.ca/2008/06/19/using-ssl-pop3-google-appsgmail-with-kayako-supportsuite/</link>
		<comments>http://www.mattgibson.ca/2008/06/19/using-ssl-pop3-google-appsgmail-with-kayako-supportsuite/#comments</comments>
		<pubDate>Fri, 20 Jun 2008 04:02:25 +0000</pubDate>
		<dc:creator>Matt G</dc:creator>
				<category><![CDATA[Howto]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Reviews]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[kayako supportsuite]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[microsoft exchange server]]></category>
		<category><![CDATA[microsoft small business]]></category>
		<category><![CDATA[pop3 service]]></category>
		<category><![CDATA[small business server]]></category>
		<category><![CDATA[stunnel]]></category>
		<category><![CDATA[support software]]></category>

		<guid isPermaLink="false">http://www.mattgibson.ca/archives/115</guid>
		<description><![CDATA[Many of us need to run Support Software to keep on top of client needs and requests, as well as remove some of the burden from our support staff. Because of this need, we are using Kayako SupportSuite for our helpdesk application. While setting it up, we noticed that the latest release has a little [...]]]></description>
			<content:encoded><![CDATA[<p>Many of us need to run <a href="http://www.kayako.com/">Support Software</a> to keep on top of client needs and requests, as well as remove some of the burden from our support staff.</p>
<p>Because of this need, we are using <a href="http://www.kayako.com/">Kayako SupportSuite</a> for our helpdesk application. While setting it up, we noticed that the latest release has a little bit of an issue with fetching mail using <a href="http://mail.google.com/">google&#8217;s pop3 service</a>.</p>
<p>We haven&#8217;t looked into the problem too much, but we have noted that there is mention of it on the <a href="http://www.kayako.com/">Kayako</a> Forums that other users are experiencing the same difficulties.</p>
<p>Of course, we made sure our PHP installation was indeed compiled with SSL and IMAP and IMAP-SSL support, but this still did not fix the problem. So far, this is the only &#8220;solution&#8221; given by the <a href="http://www.kayako.com/">Kayako</a> support representatives.</p>
<p>Well, we actually wanted it to work, so we dug a little furthur into it. As it turns out, it&#8217;s not actually Kayako&#8217;s fault that this doesn&#8217;t work, but merely a not-so-great implementation of SSL/POP3 in PHP. <a href="http://www.kayako.com/">Kayako</a> could work around this, and are aware of the problem so we assume it will get fixed in future releases.</p>
<p>We did get IMAP SSL working using the <a href="http://www.kayako.com/">Kayako</a> fetching script, but IMAP is not perfect for support queues. So, we still wanted to get POP3 working. No matter what was tried, we could not get it to work.</p>
<p>Then, an ephinany hit &#8211; we also use <a href="http://www.microsoft.com/windowsserver2003/sbs/default.mspx">Microsoft Small Business Server </a> on our Intranet, and we ran into this problem previously with <a href="http://www.microsoft.com/windowsserver2003/sbs/default.mspx">Exchange server</a> not being able to communicate with SSL enabled mail hosts.</p>
<p>So, we introduced the same hack that we did on the <a href="http://www.microsoft.com/windowsserver2003/sbs/default.mspx">Microsoft Exchange Server</a>, to our <a href="http://www.kayako.com/">Kayako SupportSuite</a> Linux Server.</p>
<p>We used <a href="http://www.stunnel.org/">Stunnel</a>.</p>
<p>Elegant? No. Best Solution Ever? No. Does it work? So far, flawlessly.</p>
<p>It&#8217;s very easy to setup, and get going. Here is what we had to do under <a href="http://www.gentoo.org/">Gentoo Linux</a>.</p>
<p>First we made sure our use flags were proper</p>
<blockquote><p># emerge -pv stunnel</p></blockquote>
<p>Which outputs this</p>
<blockquote><p><em>net-misc/stunnel-4.21-r1 USE=&#8221;ssl tcpd -ipv6 (-selinux)&#8221;</em></p></blockquote>
<p>This looks fine, we need tcpd, and ssl. Now we install stunnel.</p>
<blockquote><p># emerge stunnel</p></blockquote>
<p>Then we have to configure some options, which are very straight forward</p>
<blockquote><p># nano /etc/stunnel/stunnel.conf</p></blockquote>
<p>Now we make the file look like this</p>
<blockquote><p>setuid = stunnel<br />
setgid = stunnel<br />
pid = /var/run/stunnel/stunnel.pid<br />
socket = l:TCP_NODELAY=1<br />
socket = r:TCP_NODELAY=1<br />
output = stunnel.log<br />
client = yes<br />
debug = 7</p>
<p>[pop3s]<br />
accept = 127.0.0.1:1109<br />
connect = pop.gmail.com:995</p>
<p>[smtps]<br />
accept = 127.0.0.1:259<br />
connect = smtp.gmail.com:465</p></blockquote>
<p>Save and exit the file. These lines will make the SMTP-SSL server listen on localhost port 259, and connect out to gmail at port 465. The POP-SSL will be listening on localhost port 1109, connecting out to gmail on port 995.</p>
<p>That&#8217;s it for the stunnel configuration. You can start it up like so.</p>
<blockquote><p># /etc/init.d/stunnel start</p></blockquote>
<p>Now add it to your defaults so it will auto start</p>
<blockquote><p># rc-update add stunnel default</p></blockquote>
<p>So, we&#8217;re done with the stunnel configuration. Now we&#8217;ll need to configure Kayako so make use of this.</p>
<div style="margin-left: 2em">
<ol>
<li>Login to your Kayako Administration Interface</li>
<li>Click on Settings on the left menu</li>
<li>Click on CPU Optimization &amp; Server</li>
<li>Scroll down to &#8220;SMTP Settings&#8221; and make sure it&#8217;s the following:Enable SMTP: Yes<br />
SMTP Host: 127.0.0.1<br />
SMTP Port: 259<br />
Use SMTP Authentication: Yes<br />
SMTP Username: <a href="mailto:youraddress@gmail.com">youraddress@gmail.com</a> (or <a href="mailto:youraddress@yourdomain.com">youraddress@yourdomain.com</a>)<br />
SMTP Password: yourpassword</li>
<li>Click Update Settings.</li>
</ol>
</div>
<p>Now we&#8217;re done with the SMTP setup, so we&#8217;ll have to setup your email queues with the proper information. We&#8217;ll assume you&#8217;ve already read the <a href="https://members.kayako.net/">Kayako documentation</a> on email queues and will not go into them here.</p>
<div style="margin-left: 2em; MARGIN-RIGHT: 0px" dir="ltr">
<ol>
<li>Still in the Kayako Administration Interface Click Mail Parser on the left menu</li>
<li>Now click on Manage E-mail Queues from the dropdown menu</li>
<li>Click on your Email Queue (for example: <a href="mailto:support@yourdomain.com">support@yourdomain.com</a>) or create a new one</li>
<li>Scroll down to Login Information and ensure these settings are configured:Host: 127.0.0.1<br />
Port: 1109<br />
Username:  <a href="mailto:youraddress@gmail.com">youraddress@gmail.com</a> (or <a href="mailto:youraddress@yourdomain.com">youraddress@yourdomain.com</a>)<br />
Password: yourpassword</li>
<li>Configure any other options for your email queue.</li>
<li>Scroll down and click on Update to save your changes.</li>
<li>Repeat with any other email queues changing the email address/password for each account.</li>
</ol>
</div>
<p>Now you are finished the <a href="http://www.kayako.com/">Kayako</a> configuration. You should be able to run your administrative cron script to check for new mail. Check the Scheduled Tasks -&gt; Task Log to verify that your mail is being fetched. If you don&#8217;t know what we&#8217;re talking about here, you haven&#8217;t read the <a href="https://members.kayako.net/">Kayako documentation</a>, and <a href="https://members.kayako.net/">should do so now</a>.</p>
<p>We&#8217;ve been using this for a few weeks now and haven&#8217;t had an issue. It&#8217;s cronned to check mail every 2 minutes, and we have the added benefit of <a href="http://mail.google.com/">Google Apps</a> archiving all incoming mail for us automatically before <a href="http://www.kayako.com/">Kayako</a> picks it up for delivery.</p>
<p>Hope you like the tutorial, we welcome feedback in the comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mattgibson.ca/2008/06/19/using-ssl-pop3-google-appsgmail-with-kayako-supportsuite/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Monitoring Asterisk with SNMP, Nagios and Nagios Administrator using Ubuntu LTS 8.0.4 Server</title>
		<link>http://www.mattgibson.ca/2008/06/19/monitoring-asterisk-with-snmp-nagios-and-nagios-administrator-using-ubuntu-lts-804-server/</link>
		<comments>http://www.mattgibson.ca/2008/06/19/monitoring-asterisk-with-snmp-nagios-and-nagios-administrator-using-ubuntu-lts-804-server/#comments</comments>
		<pubDate>Thu, 19 Jun 2008 09:24:17 +0000</pubDate>
		<dc:creator>Matt G</dc:creator>
				<category><![CDATA[Howto]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[administration interface]]></category>
		<category><![CDATA[LTS]]></category>
		<category><![CDATA[monitoring tool]]></category>
		<category><![CDATA[nagios installation]]></category>
		<category><![CDATA[operating systems]]></category>
		<category><![CDATA[server edition]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.mattgibson.ca/archives/114</guid>
		<description><![CDATA[Gone are the days of tedious console only configuration of Nagios. While it&#8217;s an excellent system monitoring tool, it can be a little daunting to configure and setup. Not to mention editing 5 or 6 configuration files when adding one host. In April 2008, Nagios Administrator was released, which promises to deliver an easy to [...]]]></description>
			<content:encoded><![CDATA[<p>Gone are the days of tedious console only configuration of <a href="http://www.nagios.org/">Nagios</a>. While it&#8217;s an excellent <a href="http://www.nagios.org/">system monitoring tool</a>, it can be a little daunting to configure and setup. Not to mention editing 5 or 6 configuration files when adding one host.</p>
<p>In April 2008, <a href="http://www.nagiosadmin.de/">Nagios Administrator</a> was released, which promises to deliver an easy to use administration interface for configuring your Nagios installation with ease. The interface allows for adding contacts, contact groups, services, operating systems, and other settings. The one thing we noticed that was missing was service groups, but we&#8217;re not sure that really matters.</p>
<p>Using this article in conjunction with our previous <a title="Monitoring Asterisk with SNMP" href="http://www.voipphreak.ca/2007/04/16/monitoring-asterisk-14-with-snmp-and-cacti-for-pretty-graphs/">Monitoring Asterisk with SNMP</a> article will yeild you great results and awesome statistics.</p>
<p>Since there is already a demo running of the <a href="http://www.nagiosadmin.de/">Nagios Administrator</a>, I don&#8217;t think I need to show you screenshots, instead here is a link from their site.</p>
<blockquote><p>NagiosAdministrator: <a href="http://demo.nagiosadmin.de">http://demo.nagiosadmin.de</a><br />
Nagios: <a href="http://demo.nagiosadmin.de/nagios">http://demo.nagiosadmin.de/nagios</a></p>
<p>Username: nagiosadmin<br />
Password: nagiosadmin</p></blockquote>
<p>We installed this on a <a href="http://www.vmware.com/">VMWare Appliance</a>, running <a href="http://www.ubuntu.com/">Ubuntu</a> <a href="http://www.ubuntu.com/getubuntu/download">Server Edition LTS 8.04</a>, so you may have to change the instructions to suit your particular flavour of <a href="http://www.linux.org/">Linux</a>. Or <a href="http://www.microsoft.com/">Microsoft Windows</a> if you&#8217;re brave enough to try this on that OS.</p>
<p>Anyhow, now on to the tutorial on getting <a href="http://www.nagios.org/">Nagios 3.0</a> running with <a href="http://www.nagiosadmin.de/">Nagios Administrator</a> on your <a href="http://www.ubuntu.com/">Ubuntu</a> <a href="http://www.ubuntu.com/getubuntu/download">Server</a>.</p>
<p>First, with the help of <a href="http://www.michel-sigloch.de/">Michel Sigloch</a>, we have this from a script of his that we&#8217;ve edited. This will install <a href="http://www.nagios.org/">Nagios</a> 3.0 from source on your ubuntu server, since the apt tree still holds an older version.</p>
<p><strong>Installing Nagios</strong></p>
<p>Start with the preliminaries:</p>
<blockquote><p># sudo apt-get install apache2 build-essential wget perl libgd2-xpm-dev openssl libssl-dev openssh-server openssh-client ntpdate snmp smbclient libldap-2.3-0 libldap2-dev mysql-server libmysqlclient15-dev qstat libnet-snmp-perl mrtg nut unzip<br />
# sudo userdel -f nagios<br />
# sudo useradd -c &#8220;Nagios Admin&#8221; nagios<br />
# sudo groupadd nagcmd<br />
# sudo usermod -G nagcmd nagios<br />
# sudo usermod -G nagcmd www-data<br />
# sudo usermod -a -G nagios www-data</p></blockquote>
<p>Then We&#8217;ll setup the <a href="http://www.nagios.org/">Nagios</a> directories and configure Nagios.</p>
<blockquote><p># sudo mkdir /usr/local/src<br />
# cd /usr/local/src<br />
# sudo wget <a href="http://nagios.sourceforge.net/download/cvs/nagios-cvs.tar.gz">http://nagios.sourceforge.net/download/cvs/nagios-cvs.tar.gz</a><br />
# sudo tar xvzf nagios-cvs.tar.gz<br />
# sudo rm nagios-cvs.tar.gz<br />
# cd nagios-cvs<br />
# sudo ./configure &#8211;with-command-group=nagcmd</p></blockquote>
<p>Now lets install <a href="http://www.nagios.org/">Nagios</a> and update the default boot programs, while restarting apache and <a href="http://www.nagios.org/">Nagios</a></p>
<blockquote><p># sudo make all<br />
# sudo make install<br />
# sudo make install-init<br />
# sudo make install-commandmode<br />
# sudo make install-config<br />
# sudo ln -sf /usr/local/nagios/etc/ /etc/nagios<br />
# sudo make install-webconf</p></blockquote>
<p>Next we&#8217;ll setup our htaccess file:</p>
<blockquote><p># sudo htpasswd -c /etc/nagios/htpasswd.users nagiosadmin<br />
# sudo chown www-data htpasswd.users<br />
# sudo chmod 600 htpasswd.users</p></blockquote>
<p>Download and configure nagios plugins. The plugins are what let you monitor things like your <a href="http://www.asterisk.org/">Asterisk PBX</a> using <a title="Monitoring Asterisk with SNMP" href="http://www.voipphreak.ca/2007/04/16/monitoring-asterisk-14-with-snmp-and-cacti-for-pretty-graphs/">SNMP</a> or other methods.</p>
<blockquote><p># cd /usr/local/src<br />
# sudo wget <a href="http://heanet.dl.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.11.tar.gz">http://heanet.dl.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.11.tar.gz</a><br />
# sudo tar xvzf nagios-plugins-1.4.11.tar.gz<br />
# cd nagios-plugins-1.4.11<br />
# sudo ./configure &#8211;with-nagios-user=nagios &#8211;with-nagios-group=nagios<br />
# sudo make<br />
# sudo make install</p></blockquote>
<p>Now we are pretty much done with <a href="http://www.nagios.org/">Nagios</a> setup. We can move on to setting up <a href="http://www.nagiosadmin.de/">Nagios Administrator</a>. This part of the process can be a little confusing since their <a href="http://www.nagiosadmin.de/wiki/Installation_Nagiosadmin_auf_Debian">documentation is in german</a>. I taught myself a bit of german last night reading this, but I decyphered it for us to use it. Keep reading for the <a href="http://www.nagiosadmin.de/">Nagios Administrator</a> Setup portion.</p>
<p><strong>Configuring and installing Nagios Administrator</strong></p>
<p>First, we&#8217;ll have to install any pre-requisite packages for <a href="http://www.nagiosadmin.de/">Nagios Administrator</a>:</p>
<blockquote><p># sudo apt-get install php5-common traceroute php5-cli php5-gd</p></blockquote>
<p>Now lets create our web directory</p>
<blockquote><p># sudo mkdir /var/www/nagiosadmin</p></blockquote>
<p>Now we can download our <a href="http://www.nagiosadmin.de/">Nagios Administrator</a> files and drop them into the web directory on our server.</p>
<blockquote><p># cd /usr/src<br />
# sudo wget <a href="http://www.nagiosadmin.de/nagiosadmin-0.9.1.tar.bz2">http://www.nagiosadmin.de/nagiosadmin-0.9.1.tar.bz2</a><br />
# sudo tar xjpf nagiosadmin-0.9.1.tar.bz2 -C /var/www/nagiosadmin/</p></blockquote>
<p>Now we&#8217;ll create the mysql database. Like this</p>
<blockquote><p># mysqladmin -u root -p create nagiosadmin<br />
# mysql -u root -p</p>
<p>mysql&gt; GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,ALTER,INDEX,DROP<br />
ON nagiosadmin.*<br />
TO <a href="mailto:'nagiosadmin'@'localhost'">&#8216;nagiosadmin&#8217;@'localhost&#8217;</a><br />
IDENTIFIED BY &#8216;somepassword&#8217;;</p></blockquote>
<p>Now we have to configure <a href="http://www.nagiosadmin.de/">Nagios Administrator</a> to connect to our Database.</p>
<blockquote><p># cd /var/www/nagiosadmin<br />
# nano config/propel.ini</p></blockquote>
<p>and set</p>
<blockquote><p>propel.database.url        = mysql://nagiosadmin:yourpassword@localhost/nagiosadmin</p></blockquote>
<p>Now we edit the databases file and enter our database settings</p>
<blockquote><p># sudo nano config/databases.yml</p></blockquote>
<p>and set</p>
<blockquote><p>database:           nagiosadmin<br />
username:           nagiosadmin<br />
password:           yourpassword</p></blockquote>
<p>Now we have to make sure our Nagios shell commands are set properly in <a href="http://www.nagiosadmin.de/">Nagios Administrator</a>.</p>
<blockquote><p># sudo nano apps/backend/modules/generator/config/module.yml</p></blockquote>
<p>and make sure your paths are correct for these two lines</p>
<blockquote><p>config_check_command:           /usr/local/nagios/bin/nagios -v /etc/nagios/nagios.cfg 2&gt;&amp;1<br />
reload_nagios_command:          /usr/bin/sudo /usr/bin/killall -HUP nagios</p></blockquote>
<p>Now we have to enter visudo to set up the permissions for our <a href="http://www.nagios.org/">Nagios</a> user, done like this:</p>
<blockquote><p># sudo visudo</p></blockquote>
<p>then add</p>
<blockquote><p># for nagios<br />
%nagcmd ALL= NOPASSWD: /usr/bin/killall -HUP nagios</p></blockquote>
<p>Exit visudo by hitting the ESC key, and then typing &#8220;:wq&#8221; hitting enter.</p>
<p>Now, We have to do a few things that are pretty self explanitory with the <a href="http://www.nagiosadmin.de/">Nagios Administrator</a> control file.</p>
<blockquote><p># cd /var/www/nagiosadmin<br />
# sudo ./symfony fix-perms<br />
# sudo ./symfony propel-insert-sql<br />
# sudo ./symfony propel-load-data backend<br />
# sudo ./symfony check</p></blockquote>
<p>Next we&#8217;ll have to insert our Apache virtual host.</p>
<blockquote><p># sudo nano /etc/apache2/conf.d/nagios.conf</p></blockquote>
<p>Make sure you enter this line, and change the path to match your install if you changed the above instructions</p>
<blockquote><p>Alias /nagios/images/logos/nagiosimages /var/www/nagiosadmin/web/uploads/os_images</p></blockquote>
<p>Also, in the default settings, make sure to change all of the references to the htpasswd file to the following</p>
<blockquote><p>AuthUserFile /etc/nagios/htpasswd.users</p></blockquote>
<p>Now, lets setup the new virtual host for our <a href="http://www.nagiosadmin.de/">Nagios Administrator</a> and <a href="http://www.nagios.org/">Nagios</a> site.</p>
<blockquote><p># sudo mv /etc/apache2/sites-enabled/000-default ~/000-default.backup<br />
# sudo rm /etc/apache2/sites-enabled/000-default</p></blockquote>
<p>Now we have to add our new default virtual host configuration like so</p>
<blockquote><p># sudo touch /etc/apache2/sites-enabled/nagios.conf</p></blockquote>
<p>Enter the following, changing any paths as according to your configuration if you deviated from above.</p>
<blockquote><p>&lt;VirtualHost *:80&gt;</p>
<p>ServerAdmin <a href="mailto:root@yourdomain.com">root@yourdomain.com</a><br />
ServerName monitor.yourdomain.com<br />
DocumentRoot &#8220;/var/www/nagiosadmin/web&#8221;<br />
php_admin_flag magic_quotes_gpc 0<br />
php_admin_value memory_limit &#8220;32M&#8221;</p>
<p>&lt;Directory &#8220;/var/www/nagiosadmin/web&#8221;&gt;<br />
AllowOverride All<br />
Order allow,deny<br />
Allow from all<br />
&lt;/Directory&gt;</p>
<p>&lt;Files index.php&gt;<br />
AuthType Basic<br />
AuthName &#8220;NagiosAdmin&#8221;<br />
AuthUserFile /etc/nagios/htpasswd.users<br />
require user nagiosadmin<br />
&lt;/Files&gt;</p>
<p>Alias /phpmyadmin /var/www/phpmyadmin<br />
&lt;Directory /var/www/phpmyadmin&gt;<br />
AllowOverride All<br />
Order allow,deny<br />
Allow from all<br />
&lt;/Directory&gt;<br />
&lt;/VirtualHost&gt;</p></blockquote>
<p>Now we have to enable mod rewrite like this</p>
<blockquote><p># sudo mod_rewrite aktivieren</p></blockquote>
<p>And next lets restart Apache</p>
<blockquote><p># sudo /etc/init.d/apache2 restart</p></blockquote>
<p><strong>Configuring Nagios 3.0 to work with Nagios Administrator</strong></p>
<p>Now we have to make some quick edits to the nagios configuration and we&#8217;ll be up and running in no time.</p>
<p>First lets edit the Nagios configuration file</p>
<blockquote><p># nano /etc/nagios/nagios.cfg</p></blockquote>
<p>Now make sure yours looks like the following, commenting out the ones that are on by default and adding the new <a href="http://www.nagiosadmin.de/">Nagios Administrator</a> directory at the bottom.</p>
<blockquote><p>#cfg_file=/usr/local/nagios/etc/objects/commands.cfg<br />
#cfg_file=/usr/local/nagios/etc/objects/contacts.cfg<br />
cfg_file=/usr/local/nagios/etc/objects/timeperiods.cfg<br />
#cfg_file=/usr/local/nagios/etc/objects/templates.cfg</p>
<p># Definitions for monitoring the local (Linux) host<br />
#cfg_file=/usr/local/nagios/etc/objects/localhost.cfg</p>
<p>#cfg_dir=/usr/local/nagios/etc/servers<br />
#cfg_dir=/usr/local/nagios/etc/printers<br />
#cfg_dir=/usr/local/nagios/etc/switches<br />
#cfg_dir=/usr/local/nagios/etc/routers<br />
cfg_dir=/var/www/nagiosadmin/data/nagios</p></blockquote>
<p>Now, before starting nagios for the first time, lets go into the configuration interface and set up some default values.</p>
<p>Open a web browser and hit this url:</p>
<blockquote><p><a href="http://monitor.yourdomain.com/">http://monitor.yourdomain.com/</a></p></blockquote>
<p>You should see the login box for your <a href="http://www.nagiosadmin.de/">Nagios Administrator</a> site, which you can login with &#8220;nagiosadmin&#8221; and the password you entered earlier.</p>
<p>Once you login to the site, you will have to configure the following things:</p>
<blockquote><p>contacts -&gt; create -&gt; make one or two contacts<br />
contact groups -&gt; create -&gt; create a contact group, and assign some contacts to it<br />
host groups -&gt; create -&gt; create a host group<br />
host -&gt; create -&gt; create some hosts</p></blockquote>
<p>Now, go to the &#8220;Generator&#8221; Menu, and click on &#8220;Save&#8221;.</p>
<p>Now, go back to your command prompt, and start Nagios. It should start with no errors.</p>
<blockquote><p># sudo /etc/init.d/nagios start</p></blockquote>
<p>Now, go back to the web interface, you should be able to save and generate your configuration file with no errors.</p>
<p>Finally, add Nagios to your default runlevel</p>
<blockquote><p># sudo update-rc.d nagios defaults</p></blockquote>
<p><strong>Congratulations, we&#8217;re finished!<br />
</strong><br />
We are now finished with the setup. It&#8217;s up to you to setup proper security measures for the <a href="http://www.nagiosadmin.de/">Nagios Administrator</a> and <a href="http://www.nagios.org/">Nagios</a> site.</p>
<p>You can visit the <a href="http://www.nagiosadmin.de/">Nagios Administrator</a> panel here:</p>
<blockquote><p><a href="http://monitor.yourdomain.com/">http://monitor.yourdomain.com/</a></p></blockquote>
<p>and you can visit <a href="http://www.nagios.org/">Nagios</a> here</p>
<blockquote><p><a href="http://monitor.yourdomain.com/nagios/">http://monitor.yourdomain.com/nagios/</a></p></blockquote>
<p>Remember, you can also take a look at our <a title="Monitoring Asterisk with SNMP" href="http://www.voipphreak.ca/2007/04/16/monitoring-asterisk-14-with-snmp-and-cacti-for-pretty-graphs/">Monitoring Asterisk with SNMP Howto</a> for information on getting even more statistics from your <a href="http://www.asterisk.org/">Asterisk PBX</a> than you ever thought possible. We hope you like this article, and welcome comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mattgibson.ca/2008/06/19/monitoring-asterisk-with-snmp-nagios-and-nagios-administrator-using-ubuntu-lts-804-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu Server LTS 8.04 VMWare VMTools Howto and Tutorial</title>
		<link>http://www.mattgibson.ca/2008/06/17/ubuntu-server-lts-804-vmware-vmtools-howto-and-tutorial/</link>
		<comments>http://www.mattgibson.ca/2008/06/17/ubuntu-server-lts-804-vmware-vmtools-howto-and-tutorial/#comments</comments>
		<pubDate>Tue, 17 Jun 2008 05:57:26 +0000</pubDate>
		<dc:creator>Matt G</dc:creator>
				<category><![CDATA[Howto]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Vmware]]></category>
		<category><![CDATA[vmware tools]]></category>
		<category><![CDATA[workstation]]></category>

		<guid isPermaLink="false">http://www.mattgibson.ca/archives/112</guid>
		<description><![CDATA[You may have some difficulty with Ubuntu Server and VMWare Tools. Here&#8217;s how we got it working in the end: start vm # sudo mount /cdrom # cd /cdrom # cp *.tgz /tmp # cd /tmp # apt-get install build-essentials # apt-get install linux-headers-`uname -r` # tar xzvf vmtools&#60;yourversion.tgz&#62; # cd vmtools&#60;yourver&#62; # perl vmware-install.pl [...]]]></description>
			<content:encoded><![CDATA[<p>You may have some difficulty with Ubuntu Server and VMWare Tools. Here&#8217;s how we got it working in the end:</p>
<ul>
<li>start vm</li>
<li># sudo mount /cdrom</li>
<li># cd /cdrom</li>
<li># cp *.tgz /tmp</li>
<li># cd /tmp</li>
<li># apt-get install build-essentials</li>
<li># apt-get install linux-headers-`uname -r`</li>
<li># tar xzvf vmtools&lt;yourversion.tgz&gt;</li>
<li># cd vmtools&lt;yourver&gt;</li>
<li># perl vmware-install.pl</li>
</ul>
<p>That&#8217;s it. You might want to modify your console settings so you can get 1024&#215;768 from VMWare Workstation, but it&#8217;s not really required if you&#8217;re just SSH&#8217;ing to it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mattgibson.ca/2008/06/17/ubuntu-server-lts-804-vmware-vmtools-howto-and-tutorial/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to fix your hackable SSH on Debian and Ubuntu Servers</title>
		<link>http://www.mattgibson.ca/2008/05/15/how-to-fix-your-hackable-ssh-on-debian-and-ubuntu-servers/</link>
		<comments>http://www.mattgibson.ca/2008/05/15/how-to-fix-your-hackable-ssh-on-debian-and-ubuntu-servers/#comments</comments>
		<pubDate>Thu, 15 May 2008 17:55:53 +0000</pubDate>
		<dc:creator>Matt G</dc:creator>
				<category><![CDATA[Howto]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[vulnerable]]></category>

		<guid isPermaLink="false">http://www.mattgibson.ca/archives/107</guid>
		<description><![CDATA[If you&#8217;re running debian or ubuntu, your ssh keys are vulnerable. Follow these steps to regenerate them and secure your box back up. apt-get update apt-get upgrade cd /etc/ssh/ rm ssh_host_dsa_key rm ssh_host_dsa_key.pub rm ssh_host_rsa_key rm ssh_host_rsa_key.pub ssh-keygen -t dsa (filename as /etc/ssh/ssh_host_dsa_key) ssh-keygen -t rsa (filename as /etc/ssh/ssh_host_rsa_key) /etc/init.d/ssh restart]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re running debian or ubuntu, your ssh keys are vulnerable. Follow these steps to regenerate them and secure your box back up.</p>
<blockquote><p>apt-get update<br />
apt-get upgrade<br />
cd /etc/ssh/<br />
rm ssh_host_dsa_key<br />
rm ssh_host_dsa_key.pub<br />
rm ssh_host_rsa_key<br />
rm ssh_host_rsa_key.pub<br />
ssh-keygen -t dsa (filename as /etc/ssh/ssh_host_dsa_key)<br />
ssh-keygen -t rsa (filename as /etc/ssh/ssh_host_rsa_key)<br />
/etc/init.d/ssh restart</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.mattgibson.ca/2008/05/15/how-to-fix-your-hackable-ssh-on-debian-and-ubuntu-servers/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Adding TinyMCE to your ProjectPier or ActiveCollab Installation</title>
		<link>http://www.mattgibson.ca/2008/04/19/adding-tinymce-to-your-projectpier-or-activecollab-installation/</link>
		<comments>http://www.mattgibson.ca/2008/04/19/adding-tinymce-to-your-projectpier-or-activecollab-installation/#comments</comments>
		<pubDate>Sat, 19 Apr 2008 20:59:14 +0000</pubDate>
		<dc:creator>Matt G</dc:creator>
				<category><![CDATA[Howto]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[ProjectPier]]></category>
		<category><![CDATA[Ramblings]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[activecollab]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[project management]]></category>
		<category><![CDATA[project managers]]></category>
		<category><![CDATA[tiny mce]]></category>
		<category><![CDATA[tinymce]]></category>

		<guid isPermaLink="false">http://www.mattgibson.ca/archives/105</guid>
		<description><![CDATA[Many of you are project managers, and may be using Activecollab or ProjectPier. We were tired of their lame editor, so we decided to add TinyMCE into our installed version, both for ease of client use, and internal use. The instructions are very simple. 1. Go to ProjectPier, grab the latest version (or svn) 2. [...]]]></description>
			<content:encoded><![CDATA[<p>Many of you are project managers, and may be using <a title="ActiveCollab" href="http://www.activecollab.com">Activecollab</a> or <a title="ProjectPier" href="http://www.mattgibson.ca/wp-admin/www.projectpier.org">ProjectPier</a>.</p>
<p>We were tired of their lame editor, so we decided to add <a title="TinyMCE" href="http://tinymce.moxiecode.com/">TinyMCE</a> into our installed version, both for ease of client use, and internal use.</p>
<p>The instructions are very simple.</p>
<p>1. Go to <a title="ProjectPier" href="http://www.mattgibson.ca/wp-admin/www.projectpier.org">ProjectPier</a>, grab the latest version (or svn)</p>
<p>2. Install <a title="ProjectPier" href="http://www.mattgibson.ca/wp-admin/www.projectpier.org">ProjectPier</a> as you would normally</p>
<p>3. Install any <a title="Projectpier Development" href="http://www.projectpier.org/development">custom patches</a> or <a title="Project Pier Addons" href="http://www.projectpier.org/forum">addons</a> to project pier.</p>
<p>4. Download <a title="TinyMCE" href="http://tinymce.moxiecode.com/">TinyMCE</a></p>
<p>5. Uncompress <a title="TinyMCE" href="http://tinymce.moxiecode.com/">TinyMCE</a>, and enter the newly extracted directory. You will see a javascript directory. Rename this to tiny_mce.</p>
<p>6. Copy your newly renamed &#8220;tiny_mce&#8221; directory to the root of your ProjectPier installation.</p>
<blockquote><p># cp -R tiny_mce /var/www/yoursite/htdocs/projectpier/</p></blockquote>
<p>7. Now, this is the only &#8220;complicated&#8221; part. Go into your ProjectPier installation directory, and then enter the applications directory. Like this.</p>
<blockquote><p># cd /var/www/yoursite/htdocs/projectpier/<br />
# cd application<br />
# cd layouts</p></blockquote>
<p>8. Now you&#8217;re going to want to edit three files</p>
<blockquote><p># nano administration.php dashboard.php project_website.php</p></blockquote>
<p>9. Now in these files, you&#8217;re going to want to add the include for tiny_mce. Add the following code after the last &#8220;add_javascript_to_page&#8221; line at the top of each file and then you are done.</p>
<blockquote><p>&lt;?php echo add_javascript_to_page(&#8216;dropdown.js&#8217;) ?&gt;<br />
&lt;script language=&#8221;javascript&#8221;  type=&#8221;text/javascript&#8221; src=&#8221;<a href="&quot;http://www.yoursite.com/projectpier/tiny_mce/tiny_mce.js&quot;">http://www.yoursite.com/projectpier/tiny_mce/tiny_mce.js&#8221;&gt;&lt;/script</a>&gt;<br />
&lt;script language=&#8221;javascript&#8221; type=&#8221;text/javascript&#8221;&gt;<br />
tinyMCE.init({<br />
force_p_newlines: &#8220;false&#8221;,<br />
forced_root_block : &#8221;,<br />
theme : &#8220;advanced&#8221;,<br />
mode : &#8220;textareas&#8221;<br />
});<br />
&lt;/script&gt;</p></blockquote>
<p>10. That&#8217;s It! You are finished adding TinyMCE to your Project Management Installation! It should look something like this.</p>
<p align="center"><img src="http://www.mattgibson.ca/wp-content/uploads/2008/04/capture.jpg" alt="Capture" width="400" height="291" /></p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mattgibson.ca/2008/04/19/adding-tinymce-to-your-projectpier-or-activecollab-installation/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
	</channel>
</rss>

