<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-2">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hello,<br>
<br>
I have checked the presence of "ss" on SuSE Linux Enterprise Server
11. This system was release in 2009. And there is "ss" on such old
system. As far as I remember, I started to use "ip" over 15 years
ago. I haven't met any system without iproute2 package installed for
last 10 years.<br>
You can make your own check to confirm this. Probably there is no
need to make any additional logic for backup compatibility. Probably
there are "ip", "SS", "routel" commands on all systems.<br>
<br>
BR,<br>
<br>
Zdenek<br>
<br>
<div class="moz-cite-prefix">Dne 20. 9. 2019 v 4:53 Jeremy Laidman
napsal(a):<br>
</div>
<blockquote type="cite"
cite="mid:a6fad6671fd840909e8e523737b7df12@VI1PR06MB5581.eurprd06.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-2">
<div dir="ltr">Would it be difficult to have the server-side linux
parser look for [ports] and if not found, then look for [ss];
and similarly, [ifconfig] has [ip-addr] as its fallback
(assuming "ip addr show" gives similar output - probably
doesn't, but you get the idea)?
<div><br>
</div>
<div>Minorly tangential, I think sar is more
universally available these days than when the client scripts
were first created. So I'm wondering if we should make better
use of sar, perhaps even have a [sar] section of the client
message, that is the first place that xymond goes when looking
for statistics.</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Fri, 20 Sep 2019 at 00:52,
Japheth Cleaver <<a href="mailto:cleaver@terabithia.org"
moz-do-not-send="true">cleaver@terabithia.org</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
On 9/18/2019 8:05 AM, Zdenėk Tlustý wrote:<br>
> Hello,<br>
><br>
> the script xymonclient-linux.sh is using commands like
ifconfig, <br>
> netstat, etc. These commands are marked as depreciated
and some of the <br>
> Linux distributions have removed them already. For
example SuSE Linux <br>
> Enterprise Server 15 has no support for netstat and
ifconfig.<br>
> The replacement are commands from iproute2 package like
ip, ss, <br>
> routel, etc.<br>
> Are there any plan to replace depreciated commands with
new ones?<br>
<br>
<br>
Especially with SS and IP, it's something that's on the road
map. <br>
Unfortunately, doing that in a backwards-compatible way will
still <br>
keeping the 'linux' OStype/class 'linux' might prove difficult
without a <br>
lot more text processing. (This flag is split on the receiving
side for <br>
parsing out what client evaluations to run and how, since the
output of <br>
SunOS, Linux, BSDs, and other *nixes can vary widely.)<br>
<br>
One could either move current OS's to something like
"linux-old", or <br>
have upgraded scripts under "linux-new", or do a lot of 'awk'
calls in <br>
xymonclient-linux.sh to try to duplicate previous output more
precisely. <br>
I'm not sure which is better there.<br>
<br>
Regards,<br>
-jc<br>
<br>
_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com" target="_blank"
moz-do-not-send="true">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon"
rel="noreferrer" target="_blank" moz-do-not-send="true">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
</blockquote>
</div>
</blockquote>
<br>
</body>
</html>