Xymon Mailing List Archive search

too much data in powershell client reports

list Mario de Chenno
Mon, 29 Jan 2018 11:54:39 +0000
Message-Id: <user-3dbd04ab7646@xymon.invalid>

Hello,
I started using slimmode with the following directive in clien-
local.cfg:
[host=mbox.*]
slimmode
sections:who,netstat,ipconfig,route,ifstat,users
clientversion:2.27:http://orwell.ceda.unina2.it/xymon/winpsclient/
xymonlogsend
but I got missing (->purple) sections (SVCS and WHO) in client log sent
to xymon, as reported below.
BTW, the sections in slimmode syntax seems not to match the xymon
columns, what about it?
[collector:]
client...
[date]
...
[clock]
...
[clientversion]
2.27
[uname]
Microsoft Windows Server 2016 Standard  (build 14393)
[cpu]
....
[disk]
....
[memory]
...
[EventlogSummary]
....
[msgs:EventlogSummary]
...
[msgs:eventlog_Application]
...
[procs]
...
[uptime]
...
[iis_sites]
....
[XymonConfig]
...
[XymonPSClientInfo]
...

Il giorno ven, 26/01/2018 alle 09.24 +0000, Beck, Zak ha scritto:
The ports check is just netstat -an. I would suggest for these
servers you use slimmode as you mention and then add an external
script to run your own netstat command and exclude the lines for the
IPs you are not interested in. 
 
For example, you can pipe the output of netstat to findstr and use an
inverse match to exclude the lines matching the expression using /v:
 
netstat -an | findstr /V "127.0.0.1"