<div>how do I do that? ..</div><div>it's a xml script..<div>the part where the status is taken is this one:<br><div><StatusServer></div><div><name>StatusServer</name></div><div><method>get</method></div>
<div><source>value</source></div><div><direction>output</direction></div><div><oid>.1.3.6.1.4.1.140.625.360.1.60</oid></div><div></StatusServer></div><br><div class="gmail_quote">
2011/11/8 Simon Hobson <span dir="ltr"><<a href="mailto:linux@thehobsons.co.uk">linux@thehobsons.co.uk</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">Andre Luis wrote:<br>
>well, I'm doing a cacti graph to show the weblogic server status..<br>
>I take the status with a snmp get and my ideas was to do the following..<br>
>1) get the Status..<br>
>2) compare the status with the "Running" string<br>
>3) if the strings match, the variable status_value would receive the<br>
>value 1, else it would be 0<br>
>4) create the graph with the status_value variable ..so if the<br>
>server is running, my graphs would be in 1 .. else it would be in 0<br>
>..<br>
><br>
>do you have any idea of how could I do that?<br>
<br>
</div>Simple, in your script, translate from whatever you get back via SNMP<br>
to a numeric value. Eg, "good" = 1, "failed" = 0. Store that number<br>
(use gauge datatype) in RRD. Then what you get out from RRD will be a<br>
measure of "goodness" over the consolidation/normalisation period<br>
queried. Eg, if when you consolidate, half the samples were 1, and<br>
half were 0, then you'd get 0.5 returned.<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
Simon Hobson<br>
<br>
Visit <a href="http://www.magpiesnestpublishing.co.uk/" target="_blank">http://www.magpiesnestpublishing.co.uk/</a> for books by acclaimed<br>
author Gladys Hobson. Novels - poetry - short stories - ideal as<br>
Christmas stocking fillers. Some available as e-books.<br>
<br>
_______________________________________________<br>
rrd-users mailing list<br>
<a href="mailto:rrd-users@lists.oetiker.ch">rrd-users@lists.oetiker.ch</a><br>
<a href="https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users" target="_blank">https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Att,<div><br></div><div><font face="arial, sans-serif"><span style="line-height:15px"><img src="http://209.20.66.234/ip/assinaturas/assinatura_mail_pax_andre_luis.jpg"><br>
</span></font></div><br>
</div></div>