<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18702"></HEAD>
<BODY>
<DIV><SPAN class=140001104-14112009><FONT size=2>Hello,</FONT></SPAN></DIV>
<DIV><SPAN class=140001104-14112009><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=140001104-14112009><FONT size=2>I have been fluffing around 
with Nagios for a couple of weeks, and have nearly finally nailed 
it.</FONT></SPAN></DIV>
<DIV><SPAN class=140001104-14112009><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=140001104-14112009><FONT size=2>I just have one thing to 
go.</FONT></SPAN></DIV>
<DIV><SPAN class=140001104-14112009><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=140001104-14112009><FONT size=2>I am trying to get MRTG to work 
with Nagios.</FONT></SPAN></DIV>
<DIV><SPAN class=140001104-14112009><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=140001104-14112009><FONT size=2>I have got MRGT working locally 
on my machine by going to these 2 sites in a browser:</FONT></SPAN></DIV>
<DIV><SPAN class=140001104-14112009><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=140001104-14112009><FONT size=2><A 
href="file:///usr/local/mrtg-2/share/mrtg2/icons/index.html">file:///usr/local/mrtg-2/share/mrtg2/icons/index.html</A> and 
</FONT></SPAN></DIV>
<DIV><SPAN class=140001104-14112009><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=140001104-14112009><FONT size=2><A 
href="file:///usr/local/mrtg-2/share/mrtg2/icons/localhost_2.html">file:///usr/local/mrtg-2/share/mrtg2/icons/localhost_2.html</A></FONT></SPAN></DIV>
<DIV><SPAN class=140001104-14112009><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=140001104-14112009><FONT size=2>I followed the tutorial below 
to set up my router with Nagios:</FONT></SPAN></DIV>
<DIV><SPAN class=140001104-14112009><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=140001104-14112009><FONT size=2><A 
href="http://www.thegeekstuff.com/2008/11/how-to-monitor-network-switch-and-ports-using-nagios/">http://www.thegeekstuff.com/2008/11/how-to-monitor-network-switch-and-ports-using-nagios/</A></FONT></SPAN></DIV>
<DIV><SPAN class=140001104-14112009><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=140001104-14112009><FONT size=2>however I am yet to get MRTG 
working with Nagios:</FONT></SPAN></DIV>
<DIV><SPAN class=140001104-14112009><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=140001104-14112009><FONT color=#ff0000 size=2>PING OK 
11-14-2009 13:13:56 21d 16h 10m 13s 1/3 PING OK - Packet loss = 0%, RTA = 1.38 
ms  </FONT></SPAN></DIV>
<DIV><SPAN class=140001104-14112009><FONT color=#ff0000 size=2>Port 1 Bandwidth 
Usage UNKNOWN 11-14-2009 13:09:49 21d 16h 8m 43s 3/3 <STRONG><FONT 
color=#000000>check_mrtgtraf: Unable to open MRTG log file</FONT></STRONG>  
</FONT></SPAN></DIV>
<DIV><SPAN class=140001104-14112009><FONT color=#ff0000 size=2>Port 1 Link 
Status OK 11-14-2009 13:11:29 12d 22h 37m 5s 1/3 SNMP OK - up(1)  
</FONT></SPAN></DIV>
<DIV><SPAN class=140001104-14112009><FONT color=#ff0000 size=2>Uptime OK 
11-14-2009 13:10:29 12d 22h 27m 57s 1/3 SNMP OK - Timeticks: (152738042) 17 
days, 16:16:20.42</FONT></SPAN></DIV>
<DIV><SPAN class=140001104-14112009><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=140001104-14112009><FONT size=2>My switch.cfg currently has the 
following:</FONT></SPAN></DIV>
<DIV><SPAN class=140001104-14112009><SPAN lang=EN-AU><FONT 
size=2></FONT></SPAN></SPAN> </DIV>
<DIV><SPAN class=140001104-14112009><SPAN lang=EN-AU><FONT color=#ff0000 
size=2># Monitor bandwidth via MRTG logs</FONT></SPAN></SPAN></DIV>
<DIV><SPAN class=140001104-14112009><SPAN lang=EN-AU><FONT size=2><FONT 
color=#ff0000>define service{<BR>use     generic-service ; 
Inherit values from a template<BR>host_name 
   Billion<BR>service_description   Port 1 Bandwidth 
Usage<BR>check_command    </FONT><FONT 
color=#000000><STRONG>check_local_mrtgtraf!/usr/local/mrtg-2/share/mrtg2/icons/localhost2.log!AVG!1000000,1000000!5000000,5000000!10</STRONG></FONT></FONT></SPAN></SPAN></DIV>
<DIV><SPAN class=140001104-14112009><SPAN lang=EN-AU><FONT color=#ff0000 
size=2>}</FONT></DIV></SPAN></SPAN>
<DIV><SPAN class=140001104-14112009><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=140001104-14112009><TR><TD 
class=statusEven></TD></TR></SPAN><SPAN class=140001104-14112009><FONT size=2>My 
localhost2.log is at the location above: 
<STRONG>/usr/local/mrtg-2/share/mrtg2/icons/localhost2.log</STRONG> ,however I 
still must have something wrong for it to not work.</FONT></SPAN></DIV>
<DIV><SPAN class=140001104-14112009><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=140001104-14112009><FONT size=2>When I run: 
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg , it says: 
"<STRONG>Things look okay - No serious problems were detected during the 
pre-flight check</STRONG>"</FONT></SPAN></DIV>
<DIV><SPAN class=140001104-14112009><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=140001104-14112009><FONT size=2>When I run: 
/usr/local/mrtg-2/bin/mrtg /home/mrtg/cfg/mrtg.cfg , it says: 
</FONT></SPAN></DIV>
<DIV><SPAN class=140001104-14112009></SPAN> </DIV>
<DIV> </DIV><!-- Signature F26E9377-4A50-4B2E-8C641A702C39CF01 -->
<DIV 
style="FONT-FAMILY: Geneva, Arial, Sans-serif; COLOR: #000000; FONT-SIZE: 10pt" 
dir=ltr align=left>
<DIV style="WIDTH: 599px; HEIGHT: 283px">
<DIV><FONT face="Times New Roman">If you have any other questions or comments, 
please do not hesitate to contact me at any time.<BR><BR>Kind 
regards,<BR>Anthony.<BR></FONT></DIV>
<MARQUEE style="LINE-HEIGHT: 100%; WIDTH: 300px; HEIGHT: 43px" id=Marquee1 
direction=down behavior=slide loop=1 scrollAmount=1 trueSpeed scrollDelay=25 
border="2"><SPAN class=style2><FONT 
size=2>__________________________________________</FONT></SPAN> <BR><BR><SPAN 
class=style3><FONT size=1 face=Verdana>Anthony Exeter</FONT></SPAN></MARQUEE>
<MARQUEE style="LINE-HEIGHT: 100%; WIDTH: 337px; HEIGHT: 19px; FONT-SIZE: 10pt" 
id=Marquee2 behavior=slide loop=1 scrollAmount=1 trueSpeed scrollDelay=3 
border="0">
<DIV><FONT color=#808080 size=1 face=verdana><STRONG>xmanhosting 
</STRONG></FONT></DIV></MARQUEE>
<MARQUEE style="WIDTH: 300px; HEIGHT: 13px; FONT-SIZE: 10pt" id=Marquee3 
behavior=slide loop=1 scrollAmount=2 trueSpeed scrollDelay=5 border="0"><FONT 
color=#808080 size=1 face=verdana><STRONG>PO Box 691 | Innaloo | WA | 6918 | F: 
08 6270 4407</STRONG></FONT></MARQUEE>
<MARQUEE style="LINE-HEIGHT: 100%; WIDTH: 450px; HEIGHT: 48px" id=Marquee4 
direction=up behavior=slide loop=1 scrollAmount=1 trueSpeed scrollDelay=20 
border="0">
<DIV><FONT size=1 face=verdana><STRONG><SPAN 
class=style4>Email</SPAN></STRONG></FONT> <FONT color=#700048 size=1 
face=verdana><A 
href="outbind://16/anthony@xmanhosting.com.au"><STRONG>anthony@xmanhosting.com.au</STRONG></A></FONT><BR><FONT 
color=#808080 size=1 face=verdana>We value your feedback:<BR>Please review our 
services, or provide comments <A 
href="http://www.xmanhosting.com.au/review-our-services/" 
target=_blank>here</A></FONT></DIV></MARQUEE><IMG 
src="http://www.swishdesign.com.au/xman/footer.gif" width=410 
height=80></DIV></DIV><!-- End_Signature F26E9377-4A50-4B2E-8C641A702C39CF01 -->
<DIV> </DIV></BODY></HTML>