<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.3790.4772" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=642201318-19112010>Hi
all:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=642201318-19112010></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=642201318-19112010>Got Nagios 3.0.3
running on RHEL5.5</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=642201318-19112010></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=642201318-19112010>I made a shell
script to dynamically look for and check the IF traffic rate.
</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=642201318-19112010>It is looking for
/^bond/ || /^eth/ out of the netstat -i output</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=642201318-19112010></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=642201318-19112010>There are 3
interfaces, bond0, eth0 & eth1</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=642201318-19112010>From command line,
all 3 IFs are displayed correctly, each IF on is own line with the performance
data displayed correctly as well.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=642201318-19112010>
<DIV><FONT face=Arial size=2><SPAN class=642201318-19112010>Here is the output
from the command line.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=642201318-19112010>
[root@denlraptor libexec]# ./check_iftraf <BR> bond0
receive=26676/min transmit=26100/min|bond0 26676;;;;
26100;;;; <BR> eth0 receive=26664/min
transmit=26100/min|eth0 26664;;;; 26100;;;; <BR> eth1
receive=12/min transmit=0/min|eth1 12;;;; 0;;;;
<BR></SPAN></FONT></DIV></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=642201318-19112010>The 'Services'
nagios screen only displays one line, bond0 - which is fine. Keep it short and I
like that.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=642201318-19112010></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=642201318-19112010>When I drill into
the service, the display gets out of whack.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=642201318-19112010>Example; The 'Status
Information' will display the bond0 results and the eth0 results but no eth1
results. The 'Performance Data' will display the perf data for bond0 &
eth0 then mix in the eth1 results and then display the eth1 perf
data.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=642201318-19112010></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=642201318-19112010>If I omit the perf
data, the results are displayed correctly. Here is sample output from
nagios;</SPAN></FONT></DIV>
<DIV><FONT><SPAN class=642201318-19112010><FONT face=Arial
size=2></FONT><BR><FONT face=Arial size=2> Status
Information: bond0 receive=276/min
transmit=132/min<BR>
eth0 receive=264/min transmit=132/min</FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=642201318-19112010>
eth1 receive=12/min transmit=0/min</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=642201318-19112010> Performance
Data:</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2></FONT></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT><SPAN class=642201318-19112010><FONT face=Arial size=2>If I include
perf data, I get the following output in nagios;</FONT></SPAN></FONT></DIV>
<DIV><FONT><SPAN class=642201318-19112010><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=642201318-19112010> </SPAN>Status
Information: bond0 receive=276/min transmit=132/min<BR><SPAN
class=642201318-19112010> </SPAN>
eth0 receive=264/min transmit=132/min</FONT></FONT><BR><FONT face=Arial><FONT
size=2><SPAN class=642201318-19112010> </SPAN>Performance
Data: bond0 276;;;; 132;;;; eth0 264;;;; 132;;;; <STRONG>eth1
receive=12/min transmit=0/min</STRONG>|eth1 12;;;;
0;;;;</FONT></FONT></FONT></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=642201318-19112010></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=642201318-19112010>
In the Perf Data are the results for eth1, which should be on the Status
line.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=642201318-19112010> The
<STRONG>eth1 receive=12/min transmit=0/min </STRONG>should not be on the
Performance Data line. It should be on the Status line but instead it is mixed
into the perf data.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=642201318-19112010></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=642201318-19112010>Here is the echo
line from the script.</SPAN></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=642201318-19112010> </SPAN>echo "${int[$j]}
receive=$RXOK/min transmit=$TXOK/min|${int[$j]} $RXOK;;;; $TXOK;;;;
"<BR></FONT></FONT></DIV>
<DIV align=left><FONT face=Arial size=2><SPAN class=642201318-19112010>Seems
like I have too many characters. So how do I 'shift' to have the correct
display?</SPAN></FONT></DIV>
<DIV align=left><FONT face=Arial size=2><SPAN class=642201318-19112010>I am
wanting to collect the perf data for all IFs and graph them. But with the
'Status' & 'Performance' displays out of whack ...</SPAN></FONT></DIV>
<DIV align=left><FONT face=Arial size=2><SPAN
class=642201318-19112010></SPAN></FONT> </DIV>
<DIV align=left><FONT face=Arial size=2><SPAN
class=642201318-19112010></SPAN></FONT> </DIV>
<DIV align=left><FONT face=Arial size=2><SPAN class=642201318-19112010>Many
thanks!</SPAN></FONT></DIV>
<DIV align=left><FONT face=Arial size=2></FONT> </DIV>
<DIV align=left><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<HR>The information contained in this transmission may be confidential. Any disclosure, copying, or further distribution of confidential information is not permitted unless such privilege is explicitly granted in writing by Quantum. Quantum reserves the right to have electronic communications, including email and attachments, sent across its networks filtered through anti virus and spam software programs and retain such messages in order to comply with applicable data security and retention requirements. Quantum is not responsible for the proper and complete transmission of the substance of this communication or for any delay in its receipt.<BR>
</BODY></HTML>