<!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.2900.3314" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=574102912-04112008><FONT face=Arial
color=#0000ff size=2>Hi</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=574102912-04112008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=574102912-04112008><FONT face=Arial
color=#0000ff size=2>NCV is going to get rather grumpy with that
output.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=574102912-04112008><FONT face=Arial
color=#0000ff size=2>It's going to try and parse every line with a : or an = in
it, and try and put it into the database somehow.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=574102912-04112008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=574102912-04112008><FONT face=Arial
color=#0000ff size=2>To get around it, you need to make sure there are no other
lines containing a : or = anywhere in the output, which does make displaying
time a little difficult.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=574102912-04112008><FONT face=Arial
color=#0000ff size=2>With a crafty sed command, you can change 12:45:02 to
something that looks like a 24-hour clock output, so it ends up like
12h45.02</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=574102912-04112008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=574102912-04112008><FONT face=Arial
color=#0000ff size=2>ThIs will leave the "Users Active" line as the only one
with a : and all will be well.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=574102912-04112008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=574102912-04112008><FONT face=Arial
color=#0000ff size=2>NCV can react strangely with spaces and _ in the field
names too, so I would suggest changing the active users : x
to</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=574102912-04112008><FONT face=Arial
color=#0000ff size=2>Active Users - X</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=574102912-04112008><FONT face=Arial
color=#0000ff size=2>Then at the bottom of your output, have the following 3
lines</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=574102912-04112008><FONT face=Arial
color=#0000ff size=2>echo '<FONT COLOR="Black">' >> $OUTFILE<BR>echo
"Users=$NumOfUsers" >> $OUTFILE</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=574102912-04112008><FONT face=Arial
color=#0000ff size=2>echo '</FONT>' >> $OUTFILE</FONT></SPAN></DIV>
<DIV><SPAN class=574102912-04112008><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=574102912-04112008><FONT face=Arial color=#0000ff size=2>Now we
have a single word for a fieldname, and it is the only line with a : or a
=</FONT></SPAN></DIV>
<DIV><SPAN class=574102912-04112008><FONT face=Arial color=#0000ff
size=2>Because you set the font to black, it will be invisible too, so it will
not disrupt you output formatting.</FONT></SPAN></DIV>
<DIV><SPAN class=574102912-04112008><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=574102912-04112008><FONT face=Arial color=#0000ff size=2>To
make it work, in hobbitserver.cfg, you need to make a 3 changes, but don't
panic, they are easy.</FONT></SPAN></DIV>
<DIV><SPAN class=574102912-04112008><FONT face=Arial color=#0000ff
size=2></FONT> </DIV>
<DIV dir=ltr align=left><SPAN class=574102912-04112008></SPAN><FONT face=Arial
color=#0000ff size=2>L<SPAN class=574102912-04112008>et's assume your test is
called mytest.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT><SPAN class=574102912-04112008></SPAN><SPAN
class=574102912-04112008></SPAN><FONT face=Arial color=#0000ff size=2>I<SPAN
class=574102912-04112008>n the line starting TEST2RRD= you need to add an entry
"mytest=ncv"</SPAN></FONT></FONT></DIV>
<DIV dir=ltr align=left><FONT><FONT><SPAN class=574102912-04112008></SPAN><SPAN
class=574102912-04112008></SPAN><FONT face=Arial color=#0000ff size=2>(<SPAN
class=574102912-04112008>R</SPAN><SPAN class=574102912-04112008>emember all
entries are , seperated)</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT><FONT><FONT face=Arial color=#0000ff size=2><SPAN
class=574102912-04112008></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT><FONT><FONT face=Arial color=#0000ff size=2><SPAN
class=574102912-04112008>Then if you want the graph to appear in the trends
column you need to add mytest to the line
GRAPHS=</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT><FONT><FONT face=Arial color=#0000ff size=2><SPAN
class=574102912-04112008></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT><FONT><FONT face=Arial color=#0000ff size=2><SPAN
class=574102912-04112008>The last change is a new line, further down, normally
just before the BB extentions definitions.</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT><FONT><FONT face=Arial color=#0000ff size=2><SPAN
class=574102912-04112008>Add the line</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT><FONT><FONT face=Arial color=#0000ff size=2><SPAN
class=574102912-04112008>NCV_mytest="Users:GAUGE"</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT><FONT><FONT face=Arial color=#0000ff size=2><SPAN
class=574102912-04112008></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT><FONT><FONT face=Arial color=#0000ff size=2><SPAN
class=574102912-04112008>You have to restart hobbit after these
changes.</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT><FONT><FONT face=Arial color=#0000ff size=2><SPAN
class=574102912-04112008>Give it some time, and after a while you should see the
rrd files will start getting populated.</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT><FONT><FONT face=Arial color=#0000ff size=2><SPAN
class=574102912-04112008></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT><FONT><FONT face=Arial color=#0000ff size=2><SPAN
class=574102912-04112008>Now you have to define your graphs in hobbitgraph.cfg,
but we can discuss that another day. :-)</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT><FONT><FONT face=Arial color=#0000ff size=2><SPAN
class=574102912-04112008></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT><FONT><FONT face=Arial color=#0000ff size=2><SPAN
class=574102912-04112008>Cheers</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT><FONT><FONT face=Arial color=#0000ff size=2><SPAN
class=574102912-04112008> Vernon</SPAN></DIV>
<DIV dir=ltr align=left><BR></DIV></FONT></FONT></FONT></SPAN>
<DIV dir=ltr align=left><SPAN class=574102912-04112008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=574102912-04112008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Gatis A. [mailto:gatis.anee@gmail.com]
<BR><B>Sent:</B> Tuesday, 4 November 2008 9:10 PM<BR><B>To:</B>
hobbit@hswn.dk<BR><B>Subject:</B> [hobbit] help with NCV<BR></FONT><BR></DIV>
<DIV></DIV>Hi,<BR><BR>Could you help me with configuring NCV please.<BR>I want
to graph "USERS ACTIVE".<BR><BR>If there is a plain <BR><PRE>"USERS ACTIVE: x"</PRE>Then graph is made fine, but if there is something
more I get:<BR><BR>2008-11-04 14:04:30 RRD error updating
/home/hob/hob/data/rrd/host1/rbackup.rrd from <A
href="http://127.0.0.1">127.0.0.1</A>: tmplt contains more DS definitions than
RRD<BR><BR>How can I tell NCV to ignore everything beyond "USERS ACTIVE"
line?<BR><BR>This is my output:<BR><BR><PRE>USERS ACTIVE: 6 <BR><BR>UNIX_PID LOGON_TIME MACHINE USERNAME MODULE PROGRAM SID SERIAL<BR>------------ -------------------- ---------- --------------- ----------------------------------- ----------------------------------- ------ ----------<BR>
25579 04-nov-2008 11:04:06 host1 MON1 oracle@host1 (TNS V1-V3) oracle@host1 (TNS V1-V3) 19 52205<BR>2501 04-nov-2008 11:04:06 host1 MON1 oracle@host1 (TNS V1-V3) oracle@host1 (TNS V1-V3) 19 52205<BR>
13730 04-nov-2008 12:01:09 host2 BB SQL*Plus oracle@host2 (P001) 26 58955<BR>4353 04-nov-2008 12:01:09 host2 BB SQL*Plus oracle@host2 (P001) 26 58955<BR>
19054 04-nov-2008 12:01:09 host2 BB SQL*Plus sqlplus@host2 (TNS V1-V3) 630 26167<BR>
18987 04-nov-2008 12:01:09 host2 BB SQL*Plus oracle@host2 (P001) 665 55557<BR></PRE><BR><BR><pre>
NOTICE: This email and any attachments are confidential.
They may contain legally privileged information or
copyright material. You must not read, copy, use or
disclose them without authorisation. If you are not an
intended recipient, please contact us at once by return
email and then delete both messages and all attachments.
</pre></BODY></HTML>