<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 13 March 2015 at 13:08, J.C. Cleaver <span dir="ltr"><<a href="mailto:cleaver@terabithia.org" target="_blank">cleaver@terabithia.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":2u1" class="a3s" style="overflow:hidden">A bigger issue is that in the fancy new late-Fedora/EL7 world, "ifconfig"<br>
is deprecated (actually, it's apparently been deprecated for like a decade<br>
in favor of 'ip', but I don't know anyone who doesn't use it) thanks to<br>
the move away from SysV initscripts and is no longer installed by default.</div></blockquote></div><br>Ah, that makes sense.  Well given that it's deprecated, I suppose the Xymon client script and server-side parser should probably have been adjusted to cope with this, sometime in the last decade.</div><div class="gmail_extra"><br></div><div class="gmail_extra">On the client, we could perhaps use "netstat -ibn" (like on BSD-based systems, and HPUX) and use the existing parsing code on the server.  If we use "ip -s" then we'll need new parsing code on the server side.</div><div class="gmail_extra"><br></div><div class="gmail_extra">The FREEBSD parsing on the server first looks for the V8 format then falls back to the original format if it doesn't match.  The Linux parsing could do the same, so if the Linux parsing string fails to match, look again using a suitable *BSD parsing string.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Then on the client side script, it'd be something like:</div><div class="gmail_extra"><br></div><div class="gmail_extra">[ -x /bin/ifconfig ] && /sbin/ifconfig || netstat -ibn</div><div class="gmail_extra"><br></div><div class="gmail_extra">J</div><div class="gmail_extra"><br></div></div>