[Xymon] Xymon script for linux

Zdeněk Tlustý tlusty at vse.cz
Fri Sep 20 08:23:33 CEST 2019


Hello,

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.
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,

Zdenek

Dne 20. 9. 2019 v 4:53 Jeremy Laidman napsal(a):
> 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)?
>
> 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.
>
> On Fri, 20 Sep 2019 at 00:52, Japheth Cleaver <cleaver at terabithia.org 
> <mailto:cleaver at terabithia.org>> wrote:
>
>     On 9/18/2019 8:05 AM, Zdeněk Tlustý wrote:
>     > Hello,
>     >
>     > the script xymonclient-linux.sh is using commands like ifconfig,
>     > netstat, etc. These commands are marked as depreciated and some
>     of the
>     > Linux distributions have removed them already. For example SuSE
>     Linux
>     > Enterprise Server 15 has no support for netstat and ifconfig.
>     > The replacement are commands from iproute2 package like ip, ss,
>     > routel, etc.
>     > Are there any plan to replace depreciated commands with new ones?
>
>
>     Especially with SS and IP, it's something that's on the road map.
>     Unfortunately, doing that in a backwards-compatible way will still
>     keeping the 'linux' OStype/class 'linux' might prove difficult
>     without a
>     lot more text processing. (This flag is split on the receiving
>     side for
>     parsing out what client evaluations to run and how, since the
>     output of
>     SunOS, Linux, BSDs, and other *nixes can vary widely.)
>
>     One could either move current OS's to something like "linux-old", or
>     have upgraded scripts under "linux-new", or do a lot of 'awk'
>     calls in
>     xymonclient-linux.sh to try to duplicate previous output more
>     precisely.
>     I'm not sure which is better there.
>
>     Regards,
>     -jc
>
>     _______________________________________________
>     Xymon mailing list
>     Xymon at xymon.com <mailto:Xymon at xymon.com>
>     http://lists.xymon.com/mailman/listinfo/xymon
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20190920/adf01cbb/attachment.htm>


More information about the Xymon mailing list