<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc="urn:schemas-microsoft-com:office:odc" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rtc="http://microsoft.com/officenet/conferencing" xmlns:D="DAV:" xmlns:Repl="http://schemas.microsoft.com/repl/" xmlns:mt="http://schemas.microsoft.com/sharepoint/soap/meetings/" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ppda="http://www.passport.com/NameSpace.xsd" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcs="http://schemas.microsoft.com/data/udc/soap" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udcp2p="http://schemas.microsoft.com/data/udc/parttopart" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:dsss="http://schemas.microsoft.com/office/2006/digsig-setup" xmlns:dssi="http://schemas.microsoft.com/office/2006/digsig" xmlns:mdssi="http://schemas.openxmlformats.org/package/2006/digital-signature" xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:spwp="http://microsoft.com/sharepoint/webpartpages" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:pptsl="http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/" xmlns:spsl="http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService" xmlns:Z="urn:schemas-microsoft-com:" xmlns:st="" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"OCR A Extended";
        panose-1:2 1 5 9 2 1 2 1 3 3;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="2050" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=WordSection1>

<p class=MsoNormal>I have been trying to update data information and also
create a graph under the same ICON.<o:p></o:p></p>

<p class=MsoNormal>I have changed the colons ‘:’ to html colons
also and even that does not do it.  : = &#58; per an earlier email.<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>I have to split them into an icon called ‘logins’
for graphing and an icon called ‘who’ for the ‘who –u’
output.<o:p></o:p></p>

<p class=MsoNormal>If I try to do them both to the same ICON, the graphing
stops but the data continues to be updated and displayed.<o:p></o:p></p>

<p class=MsoNormal>I currently have 3 logins going on the server:<o:p></o:p></p>

<p class=MsoNormal>                <img
width=139 height=165 id="Picture_x0020_1"
src="cid:image002.jpg@01CB0BCC.0B826540"><o:p></o:p></p>

<p class=MsoNormal>Here are the logins:<o:p></o:p></p>

<p class=MsoNormal>                <img
width=442 height=198 id="Picture_x0020_2"
src="cid:image004.jpg@01CB0BCC.0B826540"><o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>What I want to do is get both under the same ICON
name.  Do I need to do something like ‘data’ instead of ‘status’
on the ‘bb’ line?<o:p></o:p></p>

<p class=MsoNormal>I placed both the data pair and the who info in the same ‘status’
call to ‘bb’ and the graph stops.  The graph does not go away,
<o:p></o:p></p>

<p class=MsoNormal>the data points stop being accepted.<o:p></o:p></p>

<p class=MsoNormal>As long as I send the data to one icon and the graph pairs
to another, it works.<o:p></o:p></p>

<p class=MsoNormal>I am running 4.3.0-0.beta2 on CentOS.<o:p></o:p></p>

<p class=MsoNormal>                <o:p></o:p></p>

<p class=MsoNormal><b><u><span style='font-size:16.0pt'>Here is the simple
script using ‘who –u’ as the data source:<o:p></o:p></span></u></b></p>

<p class=MsoNormal># cat logins.sh<o:p></o:p></p>

<p class=MsoNormal>#!/bin/sh<o:p></o:p></p>

<p class=MsoNormal>#ident "@(#)logins.sh Ver. 1.0 Tom Schmitt 
2010"<o:p></o:p></p>

<p class=MsoNormal>#-------------------------------------------------------------------------------<o:p></o:p></p>

<p class=MsoNormal># Under GPL 2010 by Tom Schmitt  
dtschmitt@gmail.com  801.446.5645<o:p></o:p></p>

<p class=MsoNormal>#-------------------------------------------------------<o:p></o:p></p>

<p class=MsoNormal># From the HELP --> Custom Graphs in Xymon<o:p></o:p></p>

<p class=MsoNormal># Installed by Tom Schmitt for test purposes<o:p></o:p></p>

<p class=MsoNormal>#-------------------------------------------------------<o:p></o:p></p>

<p class=MsoNormal># Creates a graph of the number of logins under: 
logins<o:p></o:p></p>

<p class=MsoNormal># Lists those logged in under:  who<o:p></o:p></p>

<p class=MsoNormal>#-------------------------------------------------------<o:p></o:p></p>

<p class=MsoNormal> <o:p></o:p></p>

<p class=MsoNormal>#-----------------------------------------------------------<o:p></o:p></p>

<p class=MsoNormal># Setup these files:<o:p></o:p></p>

<p class=MsoNormal>#-----------------------------------------------------------<o:p></o:p></p>

<p class=MsoNormal># Store this script at:<o:p></o:p></p>

<p class=MsoNormal>#       /home/xymon/client/ext
as logins.sh<o:p></o:p></p>

<p class=MsoNormal>#       Make it executable:<o:p></o:p></p>

<p class=MsoNormal>#          
cd /home/xymon/client/ext<o:p></o:p></p>

<p class=MsoNormal>#          
chmod 755 logins<o:p></o:p></p>

<p class=MsoNormal>#-----------------------------------------------------------<o:p></o:p></p>

<p class=MsoNormal># EDIT /home/xymon/client/etc/clientlaunch.cfg<o:p></o:p></p>

<p class=MsoNormal># and add these lines:<o:p></o:p></p>

<p class=MsoNormal>#    # Tom Schmitt testing from Xymon HELP
--> Custom Graphs<o:p></o:p></p>

<p class=MsoNormal>#    [loginsinfo]<o:p></o:p></p>

<p class=MsoNormal>#           
ENVFILE /home/xymon/client/etc/hobbitclient.cfg<o:p></o:p></p>

<p class=MsoNormal>#           
CMD /home/xymon/client/ext/logins.sh<o:p></o:p></p>

<p class=MsoNormal>#           
INTERVAL 5m<o:p></o:p></p>

<p class=MsoNormal>#-----------------------------------------------------------<o:p></o:p></p>

<p class=MsoNormal># EDIT /home/xymon/server/etc/hobbitserver.cfg<o:p></o:p></p>

<p class=MsoNormal># and add/edit these lines:<o:p></o:p></p>

<p class=MsoNormal>#       TEST2RRD="
<at-the-end>,logins=ncv"<o:p></o:p></p>

<p class=MsoNormal>#      
NCV_logins="logins:GAUGE"<o:p></o:p></p>

<p class=MsoNormal>#-----------------------------------------------------------<o:p></o:p></p>

<p class=MsoNormal># EDIT /home/xymon/server/etc/hobbitgraph.cfg<o:p></o:p></p>

<p class=MsoNormal># and add these lines:<o:p></o:p></p>

<p class=MsoNormal>#-----------------------------------------------------------<o:p></o:p></p>

<p class=MsoNormal>#       # Tom Schmitt Xymon
HELP --> Custom Graphs<o:p></o:p></p>

<p class=MsoNormal>#       [logins]<o:p></o:p></p>

<p class=MsoNormal>#              
TITLE Active Logins<o:p></o:p></p>

<p class=MsoNormal>#              
YAXIS Logins<o:p></o:p></p>

<p class=MsoNormal>#              
DEF:in=logins.rrd:logins:AVERAGE<o:p></o:p></p>

<p class=MsoNormal>#                      
# Colors the area under the value<o:p></o:p></p>

<p class=MsoNormal>#              
AREA:in#00CC00:Number of Logins<o:p></o:p></p>

<p class=MsoNormal>#                      
# Or the next line for a LINE graph<o:p></o:p></p>

<p class=MsoNormal>#              
LINE2:in#00CC00:Number of Logins<o:p></o:p></p>

<p class=MsoNormal>#              
COMMENT:     Number of Active Logins\n<o:p></o:p></p>

<p class=MsoNormal>#       # End of Tom Schmitt
Xymon HELP --> Custom Graphs<o:p></o:p></p>

<p class=MsoNormal>#-----------------------------------------------------------<o:p></o:p></p>

<p class=MsoNormal># EDIT /home/xymon/server/etc/hobbitlaunch.cfg<o:p></o:p></p>

<p class=MsoNormal># and verify these lines at the end of the file:<o:p></o:p></p>

<p class=MsoNormal>#       [hobbitclient]<o:p></o:p></p>

<p class=MsoNormal>#              
ENVFILE /home/xymon/client/etc/hobbitclient.cfg<o:p></o:p></p>

<p class=MsoNormal>#              
NEEDS hobbitd<o:p></o:p></p>

<p class=MsoNormal>#              
CMD /home/xymon/client/bin/hobbitclient.sh<o:p></o:p></p>

<p class=MsoNormal>#              
LOGFILE $BBSERVERLOGS/hobbitclient.log<o:p></o:p></p>

<p class=MsoNormal>#              
INTERVAL 5m<o:p></o:p></p>

<p class=MsoNormal>#-----------------------------------------------------------<o:p></o:p></p>

<p class=MsoNormal>BB=/home/xymon/server/bin/bb    # Location of
'bb'<o:p></o:p></p>

<p class=MsoNormal>BBDISP=127.0.0.1               
# Local display<o:p></o:p></p>

<p class=MsoNormal>MACHINE="monitorp.csw.l-3com.com"<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>LOGINS=`who -u | wc -l | awk '{print $1}'`<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>#-----------------------------------------------------<o:p></o:p></p>

<p class=MsoNormal># Send the value pair for graphing under icon 'logins'<o:p></o:p></p>

<p class=MsoNormal>#-----------------------------------------------------<o:p></o:p></p>

<p class=MsoNormal>$BB $BBDISP "status $MACHINE.logins green<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>logins : $LOGINS<o:p></o:p></p>

<p class=MsoNormal>"<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal># Get the 'who -u' info and change all colons to:<o:p></o:p></p>

<p class=MsoNormal>#       &#58; for an html
colon<o:p></o:p></p>

<p class=MsoNormal># Edit the colons ':' to be html colons '&#58;'<o:p></o:p></p>

<p class=MsoNormal># You don't want the data to look like value pairs:<o:p></o:p></p>

<p class=MsoNormal>#     (name : value) or (name = value)
to Xymon<o:p></o:p></p>

<p class=MsoNormal>who -u >/tmp/logins.tom<o:p></o:p></p>

<p class=MsoNormal>sed -i 's/:/\&\#58\;/' /tmp/logins.tom<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>#--------------------------------------------------<o:p></o:p></p>

<p class=MsoNormal># Send the list of those logged in under icon 'who'<o:p></o:p></p>

<p class=MsoNormal>#--------------------------------------------------<o:p></o:p></p>

<p class=MsoNormal>$BB $BBDISP "status $MACHINE.who green `date`<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>`cat /tmp/logins.tom`<o:p></o:p></p>

<p class=MsoNormal>"<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>rm /tmp/logins.tom 2>/dev/null<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>exit 0<o:p></o:p></p>

<p class=MsoNormal>[root@monitorp ext]#<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal><b><u><span style='font-size:16.0pt'>The file with the
colons changed looks like this:<o:p></o:p></span></u></b></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>                [root@monitorp
ext]# cat /tmp/logins.temp <o:p></o:p></p>

<p class=MsoNormal style='text-indent:.5in'>root    
pts/2        2010-06-14 07&#58;32
01:10       13133 (dschmitt.csw.l-3com.com)<o:p></o:p></p>

<p class=MsoNormal style='text-indent:.5in'>root    
pts/3        2010-06-14
11&#58;54   .        
15324 (dschmitt.csw.l-3com.com)<o:p></o:p></p>

<p class=MsoNormal style='text-indent:.5in'>root    
pts/4        2010-06-14 12&#58;32
00:51        1438 (dschmitt.csw.l-3com.com)<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal style='text-indent:.5in;text-autospace:none'><b><i><span
style='font-size:8.0pt;font-family:"Arial","sans-serif"'>Thanks,<o:p></o:p></span></i></b></p>

<p class=MsoNormal style='text-indent:.5in;text-autospace:none'><b><i><span
style='font-size:8.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></i></b></p>

<p class=MsoNormal style='text-indent:.5in;text-autospace:none'><b><i><span
style='font-size:8.0pt;font-family:"Arial","sans-serif"'>Tom Schmitt<o:p></o:p></span></i></b></p>

<p class=MsoNormal style='text-indent:.5in;text-autospace:none'><i><span
style='font-size:8.0pt;font-family:"Arial","sans-serif"'>Senior IT Staff -
R&D</span></i><span style='font-size:8.0pt;font-family:"Arial","sans-serif"'><o:p></o:p></span></p>

<p class=MsoNormal style='text-indent:.5in;text-autospace:none'><span
style='font-size:8.0pt;font-family:"Arial","sans-serif"'>L-3 Communication
Systems West<o:p></o:p></span></p>

<p class=MsoNormal style='text-indent:.5in;text-autospace:none'><span
style='font-size:8.0pt;font-family:"Arial","sans-serif"'>640 North 2200 West<o:p></o:p></span></p>

<p class=MsoNormal style='text-indent:.5in;text-autospace:none'><span
style='font-size:8.0pt;font-family:"Arial","sans-serif"'>P.O. Box 16850<o:p></o:p></span></p>

<p class=MsoNormal style='text-indent:.5in;text-autospace:none'><span
style='font-size:8.0pt;font-family:"Arial","sans-serif"'>Salt Lake City,
UT  84116<o:p></o:p></span></p>

<p class=MsoNormal style='text-indent:.5in;text-autospace:none'><span
style='font-size:8.0pt;font-family:"Arial","sans-serif"'>Phone (801) <i>594-3030</i><o:p></o:p></span></p>

<p class=MsoNormal style='text-indent:.5in;text-autospace:none'><span
style='font-size:8.0pt;font-family:"Arial","sans-serif"'>Cell     
(801) 231-7230<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.25in;text-indent:.25in;text-autospace:
none'><span style='font-size:8.0pt;font-family:"Arial","sans-serif"'>eFax   
(413) <i>480-6873</i><o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.25in;text-indent:.25in;text-autospace:
none'><b><i><span style='font-size:8.0pt;font-family:"Arial","sans-serif"'>D.Tom.Schmitt@L-3Com.com<o:p></o:p></span></i></b></p>

<p class=MsoNormal style='margin-left:.25in;text-indent:.25in;text-autospace:
none'><b><i><span style='font-size:8.0pt;font-family:"Arial","sans-serif"'>          
</span></i></b><b><span style='font-size:8.0pt;font-family:"OCR A Extended"'>\\\\||////</span></b><b><i><span
style='font-size:8.0pt;font-family:"Arial","sans-serif"'><o:p></o:p></span></i></b></p>

<p class=MsoNormal style='margin-left:.25in;text-indent:.25in;text-autospace:
none'><b><i><span style='font-size:8.0pt;font-family:"Arial","sans-serif"'>            
</span></i></b><b><span style='font-size:8.0pt;font-family:"OCR A Extended"'>\
~  ~ /  </span></b><b><i><span style='font-size:8.0pt;font-family:
"Arial","sans-serif"'><o:p></o:p></span></i></b></p>

<p class=MsoNormal style='margin-left:.25in;text-indent:.25in;text-autospace:
none'><b><i><span style='font-size:8.0pt;font-family:"Arial","sans-serif"'> 
           </span></i></b><b><span
style='font-size:8.0pt;font-family:"OCR A Extended"'>| @  @ |   </span></b><b><i><span
style='font-size:8.0pt;font-family:"Arial","sans-serif"'><o:p></o:p></span></i></b></p>

<p class=MsoNormal style='margin-left:.25in;text-indent:.25in;text-autospace:
none'><b><span style='font-size:8.0pt;font-family:"OCR A Extended"'>--oOo---(_)---oOo--</span></b><b><i><span
style='font-size:8.0pt;font-family:"Arial","sans-serif"'><o:p></o:p></span></i></b></p>

<p class=MsoNormal><o:p> </o:p></p>

</div>

</body>

</html>