<div dir="ltr">Thanks bill, it was.<div>We have a software that needs to monitor itself, i.e. the server.</div><div>We chose collectd as we found no other sane alternatives.</div><div>We managed to get hdd stats, ram stats, network stats and cpu stats, but what is left is interface status.</div>
<div>We don't need nagios, this is a requirement for collectd.</div><div>I found a way though: to read theĀ /sys/class/net/eth0/carrier file: 1 for up, 0 for down (i suppose).</div><div>Another issue i've faced is that the "tail" plugin (for reading files) doesn't work - it always returns "null".<br>
</div><div>Maybe I'll find yet another plugin, maybe it'll be the "Exec" plugin and "cat /sys/class/net/eth0/carrier" script.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
2014-04-18 19:02 GMT+04:00 bill <span dir="ltr"><<a href="mailto:bilsch@gmail.com" target="_blank">bilsch@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I think what the question was really about was monitoring. not just metrics<br>
<br>
the use if metrics in an overall monitoring solution is important. collectd itself I view more as a metrics collection framework<br>
<br>
what is really needed as part of the answer is that collectd itself is not an alerting framework. eg they need I look at something like nagios. getting nagios checks to do threshold checks against historical metrics ( say link errors in the last 30 seconds ) is very helpful<br>

<br>
collectd itself does not necessarily know not care about individual link state<br>
<br>
original requester - hope that helps. was that really more your question/direction?<br>
<br>
<br>
Bill Schwanitz<br>
<br>
If A is a success in life, then A equals x plus y plus z. Work is x; y is play; and z is keeping your mouth shut. - Albert Einstein.<br>
<div class="HOEnZb"><div class="h5"><br>
> On Apr 18, 2014, at 10:21 AM, "G.W. Haywood" <<a href="mailto:collectd@jubileegroup.co.uk">collectd@jubileegroup.co.uk</a>> wrote:<br>
><br>
> B0;278;0cHi there,<br>
><br>
>> On Fri, 18 Apr 2014, (??????? ???????) wrote:<br>
>><br>
>> How can I determine network interface status? (up/down)<br>
><br>
> man ip<br>
> man ifconfig<br>
><br>
> --<br>
><br>
> 73,<br>
> Ged.<br>
><br>
> _______________________________________________<br>
> collectd mailing list<br>
> <a href="mailto:collectd@verplant.org">collectd@verplant.org</a><br>
> <a href="http://mailman.verplant.org/listinfo/collectd" target="_blank">http://mailman.verplant.org/listinfo/collectd</a><br>
<br>
_______________________________________________<br>
collectd mailing list<br>
<a href="mailto:collectd@verplant.org">collectd@verplant.org</a><br>
<a href="http://mailman.verplant.org/listinfo/collectd" target="_blank">http://mailman.verplant.org/listinfo/collectd</a><br>
</div></div></blockquote></div><br></div>