I think you should be able to put the graph definition into server/etc/hobbitgraph.cfg with a suitable name, then put that name into both the "TEST2RRD" & "GRAPHS" environment variables in server/etc/hobbitserver.cfg.  Then send a suitable status message to xymon and the graph shows up.<div>
<br></div><div>I've just tried this on my laptop:  mash two existing graph definitions together (cpu freq and battery capacity) into one called "batfreq".  Add "batfreq" to "TEST2RRD" & "GRAPHS".  Send test message:</div>
<div><br></div><div>     server/bin/bb localhost "status lorien.batfreq green `date`"</div><div><br></div><div>A short time later a new column shows up called batfreq.  Clicking through thre green dot shows a single graph containing both battery capacity and 2 cpu frequency lines (dual-core cpu).</div>
<div><br></div><div>In your case, I think you might be able to get the combined graph to show up for each server by sending multiple status messages:</div><div><br></div><div>     server/bin/bb localhost "status server1.xxx green `date`"</div>
<div>     server/bin/bb localhost "status server2.xxx green `date`"</div><div>     etc...</div><div><br></div><div>all from one script.  Or just define a new server name in bb-hosts and send one message.  Either way, you'll probably want to have a regular status message going to Xymon so that the new column doesn't go purple.</div>
<div><br></div><div>Ralph Mitchell</div><div><div><br></div><div><br><div class="gmail_quote">On Wed, Jun 30, 2010 at 10:00 AM, Walter van Loon <span dir="ltr"><<a href="mailto:hobbit@general-failure.com">hobbit@general-failure.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I created a small script that scrapes info from several hosts/rrd's<br>
(connections to a particular IIS site) and puts it in a combined graph<br>
(see attached sample). I'm curious if it's possible to somehow create a<br>
"virtual host" in hobbit and use the hobbitgraph.cgi functions to create<br>
the graphs so I can also have the zoom & history functions.<br>
<br>
This is the script that created the attached graph:<br>
<br>
#!/bin/bash<br>
<br>
timestamp=COMMENT:Updated\\:`date|sed 's/:/\\\\:/g'`<br>
<br>
rrdtool graph combined.png \<br>
--imgformat=PNG \<br>
--title="Connections to xxxxxx.xxx.xx Last 48 Hours" \<br>
--base=1000 \<br>
--height=120 \<br>
--width=576 \<br>
-s e-48h \<br>
--slope-mode \<br>
--lower-limit=0 \<br>
--vertical-label="# connections" \<br>
--step 576 \<br>
'DEF:a=/var/lib/hobbit/rrd/server1/iisinfo.online.han.nl.rrd:realmempct:AVERAGE'<br>
\<br>
'AREA:a#0000CC:server1\t'  \<br>
'GPRINT:a:AVERAGE:Avg\: %7.0lf %s\t'  \<br>
'GPRINT:a:MAX:Max\: %7.0lf %s\j'  \<br>
'DEF:b=/var/lib/hobbit/rrd/server2/iisinfo.online.han.nl.rrd:realmempct:AVERAGE'<br>
\<br>
'STACK:b#0000FF:server2\t'  \<br>
'GPRINT:b:AVERAGE:Avg\: %7.0lf %s\t'  \<br>
'GPRINT:b:MAX:Max\: %7.0lf %s\j'  \<br>
'DEF:c=/var/lib/hobbit/rrd/server3/iisinfo.online.han.nl.rrd:realmempct:AVERAGE'<br>
\<br>
'STACK:c#3333FF:server3\t'  \<br>
'GPRINT:c:AVERAGE:Avg\: %7.0lf %s\t'  \<br>
'GPRINT:c:MAX:Max\: %7.0lf %s\j' \<br>
'DEF:d=/var/lib/hobbit/rrd/server4/iisinfo.online.han.nl.rrd:realmempct:AVERAGE'<br>
\<br>
'STACK:d#6666FF:server4\t'  \<br>
'GPRINT:d:AVERAGE:Avg\: %7.0lf %s\t'  \<br>
'GPRINT:d:MAX:Max\: %7.0lf %s\j' \<br>
'DEF:e=/var/lib/hobbit/rrd/server5/iisinfo.online.han.nl.rrd:realmempct:AVERAGE'<br>
\<br>
'STACK:e#9999FF:server5\t'  \<br>
'GPRINT:e:AVERAGE:Avg\: %7.0lf %s\t'  \<br>
'GPRINT:e:MAX:Max\: %7.0lf %s\j' \<br>
'DEF:f=/var/lib/hobbit/rrd/server6/iisinfo.online.han.nl.rrd:realmempct:AVERAGE'<br>
\<br>
'STACK:f#CCCCFF:server6\t'  \<br>
'GPRINT:f:AVERAGE:Avg\: %7.0lf %s\t'  \<br>
'GPRINT:f:MAX:Max\: %7.0lf %s\j' \<br>
'CDEF:total=a,b,+,c,+,d,+,e,+,f,+' \<br>
'LINE1:total#FF0000:Total\t' \<br>
'GPRINT:total:AVERAGE:Avg\: %7.0lf %s\t' \<br>
'GPRINT:total:MAX:Max\: %7.0lf %s\j'  \<br>
"$timestamp"<br>To unsubscribe from the hobbit list, send an e-mail to<br>
<a href="mailto:hobbit-unsubscribe@hswn.dk">hobbit-unsubscribe@hswn.dk</a><br>
<br></blockquote></div><br></div></div>