On 10/18/06, <b class="gmail_sendername"><a href="mailto:joel@carnat.net">joel@carnat.net</a></b> <<a href="mailto:joel@carnat.net">joel@carnat.net</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>I wrote a script to get alert about CPU loads on a windows server using<br>SNMP (no I don't want to / can't install the hobbit client on the server<br>;). The status is returned OK (green before 50%, orange from 50 to 75 and
<br>red over 75).<br><br>The thing is, there is no graph done (yet).<br>I would like a graph that would show the load average variation.<br><br>(how) can the script be used to fill a RRD database ?<br>Should the load average value be returned in a special variable ?
<br></blockquote></div><span style="font-family: monospace;"><br></span>

<br>I'm doing something similar - SNMP queries against a Compaq system to produce a report like this:<br><br><pre>   CPU        1 min   5 min   30 min  60min<br>&green  0    14%     9%      9%      9%<br>&green  1       11%     7%      9%      9%<br><br></pre>I changed the [rrdstatus] entry in server/etc/hobbitlaunch.cfg to include the --extra-script & --extra-tests entries as described in the hobbit_rrd man page.
<br><br>If it gets through the mail system, my collection script is attached.  It's not rocket science, but it seems to get the job done.<br><br>That pokes the data into an RRD, then it's just a question of setting up the graph config to show what you want to see.
<br><br>Ralph Mitchell<br><br><pre><br></pre>

<br>