<?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/"
xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
xmlns:rawvoice="http://www.rawvoice.com/rawvoiceRssModule/"
> <channel><title>jappler.com &#187; UNIX</title> <atom:link href="http://jappler.com/blog/archive/tag/unix/feed" rel="self" type="application/rss+xml" /><link>http://jappler.com</link> <description>random and opinionated thoughts by Jennifer Zelazny</description> <lastBuildDate>Fri, 10 Feb 2012 15:25:47 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator><itunes:summary>random and opinionated thoughts by Jennifer Zelazny</itunes:summary> <itunes:author>jappler.com</itunes:author> <itunes:explicit>no</itunes:explicit> <itunes:image href="http://jappler.com/wp-content/plugins/powerpress/itunes_default.jpg" /> <itunes:subtitle>random and opinionated thoughts by Jennifer Zelazny</itunes:subtitle> <image><title>jappler.com &#187; UNIX</title> <url>http://jappler.com/wp-content/plugins/powerpress/rss_default.jpg</url><link>http://jappler.com</link> </image> <item><title>Copy to Clipboard in the Command Line Interface (CLI)</title><link>http://jappler.com/blog/archive/2008/06/10/copy-to-clipboard-in-the-command-line-interface-cli</link> <comments>http://jappler.com/blog/archive/2008/06/10/copy-to-clipboard-in-the-command-line-interface-cli#comments</comments> <pubDate>Wed, 11 Jun 2008 02:49:41 +0000</pubDate> <dc:creator>Jen</dc:creator> <category><![CDATA[Apple]]></category> <category><![CDATA[UNIX]]></category> <category><![CDATA[commands]]></category> <category><![CDATA[Mac OS]]></category> <category><![CDATA[pbcopy]]></category> <category><![CDATA[pbpaste]]></category> <guid
isPermaLink="false">http://www.jappler.com/?p=869</guid> <description><![CDATA[Ever wonder how to copy something from the command line into the Mac OS clipboard? If you want to copy/paste a files content (perhaps a log file or a conf file, etc) into the clipboard to use outside of the CLI, you can use the commands pbcopy and pbpaste. Example: I want to copy the contents of my public key to the clipboard (so I can send it to a server admin who will use... <a
href="http://jappler.com/blog/archive/2008/06/10/copy-to-clipboard-in-the-command-line-interface-cli">Read More &#187;</a>]]></description> <content:encoded><![CDATA[<p>Ever wonder how to copy something from the command line into the Mac OS clipboard?  If you want to copy/paste a files content (perhaps a log file or a conf file, etc) into the clipboard to use outside of the CLI, you can use the commands <a
href="http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/pbcopy.1.html">pbcopy and pbpaste</a>.  Example: I want to copy the contents of my public key to the clipboard (so I can send it to a server admin who will use it in allowing me to access their subversion repository).</p><p>All I would need to do is:<br
/> <code>cat id_dsa.pub | pbcopy</code></p><p>(cat writes out the content and then it is piped (|) into the clipboard)  This comes in handy!</p> ]]></content:encoded> <wfw:commentRss>http://jappler.com/blog/archive/2008/06/10/copy-to-clipboard-in-the-command-line-interface-cli/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Nano Tip</title><link>http://jappler.com/blog/archive/2007/08/15/nano-tip</link> <comments>http://jappler.com/blog/archive/2007/08/15/nano-tip#comments</comments> <pubDate>Wed, 15 Aug 2007 23:21:48 +0000</pubDate> <dc:creator>Jen</dc:creator> <category><![CDATA[Hints]]></category> <category><![CDATA[HOWTOs]]></category> <category><![CDATA[UNIX]]></category> <category><![CDATA[nano]]></category> <guid
isPermaLink="false">http://www.jappler.com/blog/archive/2007/08/15/nano-tip</guid> <description><![CDATA[I have been doing a lot of work recently on a remote server and have needed to use a text editor &#8211; so I decided to use the ever-so-easy nano. Problem is &#8211; the files I am working on are very long and editing them is not fun. I finally decided to look through the man pages (I am an emacs person myself) and found something that ended up saving me tons of time&#8230;&#8221;go to... <a
href="http://jappler.com/blog/archive/2007/08/15/nano-tip">Read More &#187;</a>]]></description> <content:encoded><![CDATA[<p>I have been doing a lot of work recently on a remote server and have needed to use a text editor &#8211; so I decided to use the ever-so-easy nano.  Problem is &#8211; the files I am working on are very long and editing them is not fun.  I finally decided to look through the man pages (I am an emacs person myself) and found something that ended up saving me tons of time&#8230;&#8221;go to line number&#8221;.  If you are editing a file and know you need to edit something on line 1245, you would type in:</p><pre class="brush: plain; title: ; notranslate">nano +1245 master.css</pre><p> and it would open the file to line 1245 so you do not need to scroll down.  Thank you man pages!</p> ]]></content:encoded> <wfw:commentRss>http://jappler.com/blog/archive/2007/08/15/nano-tip/feed</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>whereis and locate.</title><link>http://jappler.com/blog/archive/2007/01/29/whereis-and-locate</link> <comments>http://jappler.com/blog/archive/2007/01/29/whereis-and-locate#comments</comments> <pubDate>Tue, 30 Jan 2007 02:08:34 +0000</pubDate> <dc:creator>Jen</dc:creator> <category><![CDATA[Hints]]></category> <category><![CDATA[HOWTOs]]></category> <category><![CDATA[UNIX]]></category> <category><![CDATA[commands]]></category> <category><![CDATA[locate]]></category> <category><![CDATA[whereis]]></category> <guid
isPermaLink="false">http://www.jappler.com/blog/archive/2007/01/29/whereis-and-locate</guid> <description><![CDATA[A few simple commands to help make your life working with UNIX a little easier: If you are looking for a certain programs, use:whereis. Example. You want to find out where ipfw is located. In the command line type whereis ipfw and whereis will spit out the location (/sbin/ipfw). If you need to find a program or a file and you know what it is called, use:locate. Example. I know I want to uninstall MySQL,... <a
href="http://jappler.com/blog/archive/2007/01/29/whereis-and-locate">Read More &#187;</a>]]></description> <content:encoded><![CDATA[<p>A few simple commands to help make your life working with UNIX a little easier:</p><ul><li>If you are looking for a certain programs, use:<strong>whereis</strong>.  Example.  You want to find out where ipfw is located.  In the command line type <code>whereis ipfw</code> and whereis will spit out the location (/sbin/ipfw).</li><li>If you need to find a program or a file and you know what it is called, use:<strong>locate</strong>.  Example.  I know I want to uninstall MySQL, and I want to  see every file that has mysql in the file path. In the command line, type <code>locate MySQL</code> and locate will spit out every file with MySQL in the file path.  (Note, locate is case sensitive).</li></ul> ]]></content:encoded> <wfw:commentRss>http://jappler.com/blog/archive/2007/01/29/whereis-and-locate/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>print file size command.</title><link>http://jappler.com/blog/archive/2007/01/03/print-file-size-command</link> <comments>http://jappler.com/blog/archive/2007/01/03/print-file-size-command#comments</comments> <pubDate>Wed, 03 Jan 2007 22:30:04 +0000</pubDate> <dc:creator>Jen</dc:creator> <category><![CDATA[General]]></category> <category><![CDATA[Hints]]></category> <category><![CDATA[HOWTOs]]></category> <category><![CDATA[UNIX]]></category> <guid
isPermaLink="false">http://www.jappler.com/blog/archive/2007/01/03/print-file-size-command.php</guid> <description><![CDATA[Earlier today I was asked for the command to show a file size in UNIX and so I thought I would share. There are, of course, a few ways to do this. One great little command to keep handy is:du -h. The du (display utility) will print out the size of a file or directory. The -h will make it &#8220;human readable&#8221; (put the sizes in Byte, Kilobyte, Megabyte, Gigabyte, Terabyte and Petabyte). So, next... <a
href="http://jappler.com/blog/archive/2007/01/03/print-file-size-command">Read More &#187;</a>]]></description> <content:encoded><![CDATA[<p>Earlier today I was asked for the command to show a file size in UNIX and so I thought I would share.  There are, of course, a few ways to do this.  One great little command to keep handy is:<code>du -h</code>.  The <b>du</b> (display utility) will print out the size of a file or directory.  The <b>-h</b> will make it &#8220;human readable&#8221; (put the sizes in Byte, Kilobyte, Megabyte, Gigabyte, Terabyte and Petabyte).  So, next time you need file or directory sizes, use <code>du -h</code> and be done with it!</p> ]]></content:encoded> <wfw:commentRss>http://jappler.com/blog/archive/2007/01/03/print-file-size-command/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>command line to the rescue&#8230;again.</title><link>http://jappler.com/blog/archive/2006/06/27/stuffit-expander-not-cutting-ituse-the-command-line</link> <comments>http://jappler.com/blog/archive/2006/06/27/stuffit-expander-not-cutting-ituse-the-command-line#comments</comments> <pubDate>Wed, 28 Jun 2006 01:49:15 +0000</pubDate> <dc:creator>Jen</dc:creator> <category><![CDATA[Content Management Systems]]></category> <category><![CDATA[General]]></category> <category><![CDATA[UNIX]]></category> <category><![CDATA[gunzip]]></category> <category><![CDATA[tar]]></category> <category><![CDATA[XOOPS]]></category> <guid
isPermaLink="false">http://www.jappler.com/blog/archive/2006/06/27/stuffit-expander-not-cutting-ituse-the-command-line.php</guid> <description><![CDATA[While upgrading a client&#8217;s web site to XOOPS 2.0.14 I ran into some issues with the XOOPS 2.0.14 package file (a tar.gz file). Stuffit Expander would only extract a few folders, then report an error and quit. After a few attempts, and all failures, I had to chose to turn to the command line and bingo, no problems! So, if you ever have any issues with Stuffit Expander and need to uncompress a .tar.gz file,... <a
href="http://jappler.com/blog/archive/2006/06/27/stuffit-expander-not-cutting-ituse-the-command-line">Read More &#187;</a>]]></description> <content:encoded><![CDATA[<p>While upgrading a client&#8217;s web site to XOOPS 2.0.14 I ran into some issues with the XOOPS 2.0.14 package file (a tar.gz file).  Stuffit Expander would only extract a few folders, then report an error and quit.  After a few attempts, and all failures, I had to chose to turn to the command line and bingo, no problems! So, if you ever have any issues with Stuffit Expander and need to uncompress a .tar.gz file, the following commands will come in handy:</p><ul><li>To uncompress a gz file</b>: <code>gunzip file.gz </code></li><li>To uncompress a tar file:<br
/> <code>tar [tar options (usually xvf)] file.tar</code></li><li>To uncompress a .tar.gz file: <code>tar xzvf file.tar.gz</code></li></ul><p>Questions? Check out the man pages for <a
href="http://www.hmug.org/man/1/tar.php">tar</a> and <a
href="http://www.hmug.org/man/1/gunzip.php">gunzip</a>.<br
/> [tags]XOOPS, gunzip, tar[/tags]</p> ]]></content:encoded> <wfw:commentRss>http://jappler.com/blog/archive/2006/06/27/stuffit-expander-not-cutting-ituse-the-command-line/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>ubuntu 5.10 for PPC.</title><link>http://jappler.com/blog/archive/2006/03/24/ubuntu-510-for-ppc</link> <comments>http://jappler.com/blog/archive/2006/03/24/ubuntu-510-for-ppc#comments</comments> <pubDate>Fri, 24 Mar 2006 12:27:56 +0000</pubDate> <dc:creator>Jen</dc:creator> <category><![CDATA[General]]></category> <category><![CDATA[UNIX]]></category> <category><![CDATA[Fedora-Core-5-PPC]]></category> <category><![CDATA[Snaptic-Package-Manager]]></category> <category><![CDATA[Ubuntu]]></category> <category><![CDATA[Ubuntu-PPC]]></category> <guid
isPermaLink="false">http://www.jappler.com/archive/2006/03/24/ubuntu-510-for-ppc/</guid> <description><![CDATA[Well, after some problems downloading the 3.3GB image of Fedora Core 5 and then my PowerBook not recognizing the DVD media (no, I was not about to re-download all five install CD images and burn them to CD&#8230;this is not 1993 again with installer floppies everywhere&#8230;and I did not have any other DVD media on hand), I decided to try a different flavor of Linux: Ubuntu. A few people that I I have been talking... <a
href="http://jappler.com/blog/archive/2006/03/24/ubuntu-510-for-ppc">Read More &#187;</a>]]></description> <content:encoded><![CDATA[<p>Well, after some problems downloading the 3.3GB image of <a
href="http://fedora.redhat.com">Fedora Core 5</a> and then my PowerBook not recognizing the DVD media (no, I was not about to re-download all five install CD images and burn them to CD&#8230;this is not 1993 again with installer floppies everywhere&#8230;and I did not have any other DVD media on hand), I decided to try a different flavor of Linux: <a
href="http://www.ubuntu.com">Ubuntu</a>.  A few people that I I have been talking to recently either prefer <a
href="http://www.ubuntu.com">Ubuntu</a>, or have recently tried it, like <a
href="http://www.timfitz.net/">Tim</a>.  Since the install image is only 644.5MB, I decided it might be the time to try it out.<br
/> <br
/> From the very beginning, I was impressed.  I first had problems with my install because of a CD error, but to my delight, the Ubuntu installer gav eme an option to set up a web server with a click of a button which served all the installation log files so I could look at them and find the problem.  When I got home, I burned another copy and while my Comcast connection was out (TV and internet!) I installed and configured Ubuntu with ease.<br
/> <br
/> What I really like so far about Ubuntu:</p><ul><li>small install (one CD worth)</li><li>Ubuntu recognized all my hardware without me having to hack anything!</li><li>the ability to run Ubuntu from a CD (live CD)</li><li>awesome documentation in the help menu&#8230;the &#8220;Tips and Tricks&#8221; rock, and answered most of my questions</li><li>the &#8220;Snaptic Package Manager&#8221; which easily allows you to install packages</li><li>after installing packages with the &#8220;Snaptic Package Manager&#8221;, the new applications are put in appropriate menus, etc!</li><li>the great little sounds I get when clicking on buttons and icons <img
src='http://jappler.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></li></ul><p>So far, I am extremely happy with Ubuntu and look forward to using it more and more.  It is plenty fast and if all goes well, I may see how it runs on my Apple cube so I can get that back into play.  As of now&#8230;this is, by far, my favorite flavor of Linux I have played with (Yellow Dog, Mandrake (Mandriva), Redhat, and Fedora FC3, FC4).  If you are looking to run Linux, give Ubuntu some attention &#8211; it gets the Jappler stamp of approval!<br
/> <br
/> PS.  Happy 5th birthday to Mac OS X today.  Five years ago, Mac OS X 10.0 was released!<br
/> [tags]Fedora Core 5 PPC, Ubuntu PPC, Snaptic Package Manager[/tags]</p> ]]></content:encoded> <wfw:commentRss>http://jappler.com/blog/archive/2006/03/24/ubuntu-510-for-ppc/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>print out certain line numbers with sed.</title><link>http://jappler.com/blog/archive/2006/02/24/print-out-certain-line-numbers-with-sed</link> <comments>http://jappler.com/blog/archive/2006/02/24/print-out-certain-line-numbers-with-sed#comments</comments> <pubDate>Fri, 24 Feb 2006 12:20:48 +0000</pubDate> <dc:creator>Jen</dc:creator> <category><![CDATA[General]]></category> <category><![CDATA[Hints]]></category> <category><![CDATA[HOWTOs]]></category> <category><![CDATA[UNIX]]></category> <category><![CDATA[sed]]></category> <guid
isPermaLink="false">http://www.jappler.com/archive/2006/02/24/print-out-certain-line-numbers-with-sed/</guid> <description><![CDATA[It has been a year now since I completed my UNIX/Linux certification training and every once and awhile I think about my friend Perl, but I really enjoy helping others with some simple needs. Ben (yeah, I got him using WordPress too ) aked me a great recently: Question: If i have a huge log text fie and i want to pull a range of lines out of the middle, how can I easily do... <a
href="http://jappler.com/blog/archive/2006/02/24/print-out-certain-line-numbers-with-sed">Read More &#187;</a>]]></description> <content:encoded><![CDATA[<p>It has been a year now since I completed my UNIX/Linux certification training and every once and awhile I think about my friend <a
href="http://www.perl.org">Perl</a>, but I really enjoy helping others with some simple needs. <a
href="http://cyberdog.wordpress.org">Ben</a> (yeah, I got him using WordPress too <img
src='http://jappler.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> ) aked me a great recently:<br
/> <br
/> <b>Question: If i have a huge log text fie and i want to pull a range of lines out of the middle, how can I easily do this?</b><br
/> <br
/> <b>Answer</b>: <code>sed -n '3,6 p' /var/log/httpd/error_log</code><br
/> <br
/> <b>Answer broken down</b>:</p><ul><li><a
href="http://www.gnu.org/software/sed/">sed</a> is the UNIX tool I chose for this.</li><li><code>-n</code> is used so that sed does not print out more than what I need.</li><li><code>'3,6 p'</code>indicates that I want lines 3-6 of the log file to print out (in the command line) and the <code>p</code> is used for: &#8220;If the substitution was made, then print the new pattern space.&#8221;</li><li><code>/var/log/httpd/error_log</code> specifies the log file that I need to extract data from</li></ul><p>Hope this comes in handy!<br
/> [tags] sed [/tags]</p> ]]></content:encoded> <wfw:commentRss>http://jappler.com/blog/archive/2006/02/24/print-out-certain-line-numbers-with-sed/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Nagios Updated</title><link>http://jappler.com/blog/archive/2005/11/21/nagios-updated</link> <comments>http://jappler.com/blog/archive/2005/11/21/nagios-updated#comments</comments> <pubDate>Tue, 22 Nov 2005 01:50:11 +0000</pubDate> <dc:creator>Jen</dc:creator> <category><![CDATA[General]]></category> <category><![CDATA[UNIX]]></category> <category><![CDATA[Nagios]]></category> <guid
isPermaLink="false">http://www.jappler.com/archive/2005/11/21/nagios-updated/</guid> <description><![CDATA[Hi. I spent my exciting day with my old friend Nagios. Due to a few issues, I had to move my Nagios install to a new server, and while I had the time to move it, I also decided it was time to tweak it some. I wanted to point out that Nagios was updated to version 1.3 (change log). No major changes, but enough to upgrade. Missed my Nagios articles? Why Nagios? Installing Nagios... <a
href="http://jappler.com/blog/archive/2005/11/21/nagios-updated">Read More &#187;</a>]]></description> <content:encoded><![CDATA[<p>Hi.  I spent my exciting day with my old friend <a
href="http://www.nagios.org/">Nagios</a>.  Due to a few issues, I had to move my Nagios install to a new server, and while I had the time to move it, I also decided it was time to tweak it some.   I wanted to point out that Nagios was updated to version 1.3 (<a
href="http://nagios.org/development/changelog.php">change log</a>). No major changes, but enough to upgrade.<br
/> Missed my Nagios articles?</p><ul><li><a
href="http://www.jappler.com/archive/2005/09/15/system-monitoring-with-nagios-part-1-of-3/">Why Nagios?</a></li><li><a
href="http://www.jappler.com/archive/2005/09/20/system-monitoring-with-nagios-part-2-of-3/">Installing Nagios</a></li><li><a
href="http://www.jappler.com/archive/2005/09/28/system-monitoring-with-nagios-part-3-of-4/">Configuring Nagios</a></li><li><a
href="http://www.jappler.com/archive/2005/10/12/system-monitoring-with-nagios-part-4-of-4/">Customizing Nagios</a></li></ul><p>Ps, the upgrade was a piece of cake.  No issues (for once).<br
/> [tags]Nagios[/tags]</p> ]]></content:encoded> <wfw:commentRss>http://jappler.com/blog/archive/2005/11/21/nagios-updated/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>System Monitoring with Nagios &#8211; Part 4 of 4</title><link>http://jappler.com/blog/archive/2005/10/12/system-monitoring-with-nagios-part-4-of-4</link> <comments>http://jappler.com/blog/archive/2005/10/12/system-monitoring-with-nagios-part-4-of-4#comments</comments> <pubDate>Thu, 13 Oct 2005 04:21:53 +0000</pubDate> <dc:creator>Jen</dc:creator> <category><![CDATA[General]]></category> <category><![CDATA[HOWTOs]]></category> <category><![CDATA[UNIX]]></category> <category><![CDATA[Nagios]]></category> <guid
isPermaLink="false">http://www.jappler.com/?p=299</guid> <description><![CDATA[I have decided to write a four part article on the benefits of using Nagios. The first article focused on why I chose Nagios/what it offers. The second article focused on installing Nagios on Mac OS X. The third article focused on configuring Nagios. This fourth article will focus on improving the Nagios interface and further customizing it. Customizing Nagios&#8230;the fun continues. Run Nagios at Boot with an Init Script: There is a great article... <a
href="http://jappler.com/blog/archive/2005/10/12/system-monitoring-with-nagios-part-4-of-4">Read More &#187;</a>]]></description> <content:encoded><![CDATA[<p><a
href="http://www.nagios.com"><img
src="http://www.nagios.org/images/smalllogo7.gif" alt="nagios" /></a> I have decided to write a four part article on the benefits of using Nagios.  The <a
href="http://www.jappler.com/archive/2005/09/15/system-monitoring-with-nagios-part-1-of-3/">first article</a> focused on why I chose Nagios/what it offers.  The <a
href="http://www.jappler.com/archive/2005/09/20/system-monitoring-with-nagios-part-2-of-3/">second article</a> focused on installing Nagios on Mac OS X.  The <a
href="http://www.jappler.com/archive/2005/09/28/system-monitoring-with-nagios-part-3-of-4/">third article</a> focused on configuring Nagios. This fourth article will focus on improving the Nagios interface and further customizing it.<br
/> <br
/> Customizing Nagios&#8230;the fun continues.<br
/> <b>Run Nagios at Boot with an Init Script</b>: There is a great article on how to create a StartUpItem for Mac OS X.  Scroll all the way to the bottom and <a
href="http://homepage.mac.com/duling/halfdozen/Nagios-Howto-p1.html">follow the instructions</a>.<br
/> <br
/> <b>Adding Icons</b>: If you know me, you also know I need to work with a good interface.  Nagios&#8230;leaves something to be desired, but you can do some little things to make it look better, like adding icons.  Icons?  Yeah.  I use <a
href="http://www.ncbce.org/Sept05/apple_logo.gif">blue Apple logos</a> for all my Mac OS X Client machines, <a
href="http://pics.computerbase.de/artikel/469/25_m.jpg">grey Apple logos</a> for my Mac OS X Server machines, Cisco icons for my networking equip, HP printer icons for my printers, etc.  How?</p><ul><li>Download/create/use icons that come with Nagios.  Make sure the icons are located: <code>/usr/local/nagios/images/logos</code></li><li>Create a config file: <code>/usr/local/nagios/etc/hostextinfo.cfg</code> (see my working example in article 3).  This config file allows you to attach an image, url, notes, etc to each host.</li><li>Uncomment the extended service information line in the cgi.cfg file &#8211; around line 275. (<code>xedtemplate_config_file=/usr/local/nagios/etc/hostextinfo.cfg</code>)</li></ul><p><b>Changing the look of the web interface</b>: When I first saw the &#8220;stylesheets&#8221; folder in <code>/usr/local/nagios/share</code> I got excited.  After taking a look at the stylesheets, I became less than excited.  Hundreds of &#8220;font-family&#8221;, &#8220;color&#8221;, etc styles is&#8230;well, not what I expected.  Good news, a few good &#8220;find and replace&#8221; statements and you are set.  I recommend doing the &#8220;find and replace&#8221; in multiple files all at once.  Hopefully in version 2 of Nagios, they will go to using one stylesheet that controls everything. Please? <img
src='http://jappler.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br
/> [tags]Nagios[/tags]</p> ]]></content:encoded> <wfw:commentRss>http://jappler.com/blog/archive/2005/10/12/system-monitoring-with-nagios-part-4-of-4/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>System Monitoring with Nagios &#8211; Part 3 of 4</title><link>http://jappler.com/blog/archive/2005/09/28/system-monitoring-with-nagios-part-3-of-4</link> <comments>http://jappler.com/blog/archive/2005/09/28/system-monitoring-with-nagios-part-3-of-4#comments</comments> <pubDate>Thu, 29 Sep 2005 01:14:42 +0000</pubDate> <dc:creator>Jen</dc:creator> <category><![CDATA[HOWTOs]]></category> <category><![CDATA[UNIX]]></category> <category><![CDATA[Nagios]]></category> <guid
isPermaLink="false">http://www.jappler.com/?p=289</guid> <description><![CDATA[I have decided to write a four part article on the benefits of using Nagios. The first article focused on why I chose Nagios/what it offers. The second article focused on installing Nagios on Mac OS X. This third article will focuses on configuring Nagios. The fourth article will focus on improving the Nagios interface and further customizing it. Configuring Nagios&#8230;let the fun begin! With version 1.2 of Nagios, there are multiple files by default... <a
href="http://jappler.com/blog/archive/2005/09/28/system-monitoring-with-nagios-part-3-of-4">Read More &#187;</a>]]></description> <content:encoded><![CDATA[<p><a
href="http://www.nagios.com"><img
src="http://www.nagios.org/images/smalllogo7.gif" alt="nagios" /></a> I have decided to write a four part article on the benefits of using Nagios.  The <a
href="http://www.jappler.com/archive/2005/09/15/system-monitoring-with-nagios-part-1-of-3/">first article</a> focused on why I chose Nagios/what it offers.  The <a
href="http://www.jappler.com/archive/2005/09/20/system-monitoring-with-nagios-part-2-of-3/">second article</a> focused on installing Nagios on Mac OS X.  This third article will focuses on configuring Nagios. The fourth article will focus on improving the Nagios interface and further customizing it.<br
/> <br
/> Configuring Nagios&#8230;let the fun begin!  With version 1.2 of <a
href="http://www.nagios.org">Nagios</a>, there are multiple files by default located in <code>/usr/local/nagios/etc/</code>:</p><ul><li><b>cgi.cfg </b>This file is used to define the  settings for the nagios&#8217; CGIs.  All of your basic CGI paths, authentication, commands are in this file. <a
href="http://nagios.sourceforge.net/docs/1_0/configcgi.html">cgi.cfg help</a> <a
href="http://nagios.sourceforge.net/docs/1_0/cgiauth.html">more cgi.cfg help</a></li><li><b>checkcommands.cfg </b>This file is used to define some basic commands you can use to check your systems with such as &#8220;check smtp&#8221;, &#8220;check ftp&#8221;,etc.</li><li><b>contactgroups.cfg </b>This file is used to define information about contact groups.  Ex.  If you have multiple admins for your network (network admin, web admin, database admin, you can define which admins are in certain groups. (Nice to set up so that the web admins are not notified when the file server goes down, and the network admins are not notified when the web servers go down &#8211; assuming the network admin has no responsibility for the web servers)</li><li><b>contacts.cfg </b>This file is used to define the contact information for the admins that need to be contacted if/when their servers go down.  You can define pager numbers/email addresses/IM accounts, etc in this file.</li><li><b>dependencies.cfg </b>This file is used to define information on your network&#8217;s dependencies.  You can define things in a way so that nagios knows that your web server&#8217;s availability is dependent on your database server, and your database server is dependent on your local router, and your local router is dependent on your ISP&#8217;s router, etc.  You can define both host dependencies and service dependencies here.</li><li><b>escalations.cfg </b>This file is used to define information on escalating the known problem to other people/groups.  This is handy if you have multiple tiers of IT staff, or if you have a small IT staff and want to make sure someone is notified of the problem.  (Ex. Network admin is notified the mail server is down, but does not do anything in x minutes.  After x minutes, a page, email, IM, etc can then go to someone else or another group of people.<a
href="http://nagios.sourceforge.net/docs/1_0/escalations.html">escalations.cfg help</a></li><li><b>hostgroups.cfg </b>This file is used to define all the host groups.  Ex.  You can group all of your database servers, web servers, printers, network equipment, etc.</li><li><b>hosts.cfg </b>This file is used to define all your hosts that you want to monitor.  Each host will have an entry with the IP, host name, etc.</li><li><b>misccommands.cfg </b>This file is used to define all the commands that will notify the admins (notify by pager, email, et).</li><li><b>nagios.cfg </b>This file is used to define the main configuration information. <a
href="http://nagios.sourceforge.net/docs/1_0/configmain.html">nagios.cfg help</a></li><li><b>resource.cfg </b></li><li><b>services.cfg </b>This file is used to define the actual servers and services you want to monitor.  If you monitor several services (http, smtp, smb, etc) on one host, each service will have a listing.</li><li><b>timeperiods.cfg </b>This file is used to define timeperiods.  You can have varying time periods for different services/hosts.  Ex.  You can set up a &#8220;24&#215;7&#8243; time period for all your high availability servers, but use a &#8220;work hours&#8221; time periods for monitoring/reporting failures for something like your printers.</li><li>**I also added icons and clickable URLs in another config file called: <b>hostextinfo.cfg</b></li></ul><p>All these files&#8230;but what do I do with them?  How about some <a
href="/other/nagios_etc.zip">working examples of the cfg files that were changed</a>!</p> ]]></content:encoded> <wfw:commentRss>http://jappler.com/blog/archive/2005/09/28/system-monitoring-with-nagios-part-3-of-4/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
