[Xymon] Help turning off "msg" test with XymonPSClient.ps1

zak.beck at accenture.com zak.beck at accenture.com
Wed Dec 28 10:08:00 CET 2016


Hi David

 

Have a look in the xymon-lastcollect.txt file (which will be in C:\ by
default). This file contains the core payload sent to the server on the last
collect.

 

I suspect the setting has worked in as much as the client is no longer
sending the data to the server - there should be no sections in the above
log like this:

 

[msgs:eventlog_Application]

[msgs:eventlog_System]

 

And similar, depending on config.

 

I think what may be happening is that the server has old data for the msgs
test and so is displaying the column (probably with a purple alert) because
it is no longer receiving data.

 

I am by no means an expert on the server side. I think you can remove the
old data using something like this on the server:

 

xymon 0 "drop <server> [test]"

 

i.e.

 

xymon 0 "drop <server> msgs"

 

You might need to add NOCOLUMNS:msgs in hosts.cfg, not sure.

 

Cheers

 

Zak 

 

From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Mills,David (HHSC
Contractor)
Sent: 27 December 2016 22:46
To: 'xymon at xymon.com' <xymon at xymon.com>
Subject: [Xymon] Help turning off "msg" test with XymonPSClient.ps1

 

All -


I've installed a prototype of the PowerShell client, XymonPSClient.ps1
(2.1.5), and it is successfully reporting data back to the server. However,
I'm trying to eliminate all Windows event log data from being sent to the
server (i.e. suppressing the "msgs" column for that client on the Xymon
display).

 

According to the documentation for the xymonclient_config.xml file,  the
"reportevt" XML tag value controls this behavior: "reportevt . Whether to
scan and report event log . 0 = no 1 = yes". However, even after adding the
necessary tags and restarting the service on the Windows client, the "msgs"
column keeps coming back.

 

Here's the config file:

 

<XymonSettings>

 

     <servers>xxx.xxx.txaccess.net</servers>

 

     <clientlogfile>C:\Users\millsda\Desktop\Xymon PS Client
2.1.5\xymonclient.log</clientlogfile>

     <clientconfigfile>C:\Users\millsda\Desktop\Xymon PS Client
2.1.5\clientconfig.cfg</clientconfigfile>

 

     <clientfqdn>0</clientfqdn>

     <clientlower>1</clientlower>

  

     <reportevt>0</reportevt>

</XymonSettings>

 

Here's the output of the currently active configuration on the client:

 

PS C:\Users\millsda\Desktop\Xymon PS Client 2.1.5> .\xymonclient.ps1 config

XymonPSClient config:

 

XML: C:\Users\millsda\Desktop\Xymon PS Client 2.1.5\xymonclient_config.xml

Settable Params and values:

    clientbbwinmembug=1

    clientclass=powershell

    clientlogpath=C:\Users\millsda\Desktop\Xymon PS Client 2.1.5

    clientlogretain=0

    clientname=xxx

    ClientProcessPriority=Normal

    clientremotecfgexec=0

    clientsoftware=powershell

   EnableWin32_Product=0

    EnableWin32_QuickFixEngineering=0

    EnableWMISections=0

    externaldatalocation=C:\Users\millsda\Desktop\Xymon PS Client 2.1.5\tmp

    externalscriptlocation=C:\Users\millsda\Desktop\Xymon PS Client
2.1.5\ext

    loopinterval=300

    MaxEvents=5000

    maxlogage=60

    servergiflocation=/xymon/gifs/

    serversList=xxx.xxx.txaccess.net

    slowscanrate=72

    wanteddisksList=3

    clientconfigfile=C:\Users\millsda\Desktop\Xymon PS Client
2.1.5\clientconfig.cfg

    clientfqdn=0

    clientlogfile=C:\Users\millsda\Desktop\Xymon PS Client
2.1.5\xymonclient.log

    clientlower=1

    reportevt=0

    servers=xxx.xxx.txaccess.net

 

---

Thx!

 

~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~

David Mills
Systems Administrator
Northrop Grumman
(512) 595-1238 (mobile)

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20161228/c3cc599d/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6831 bytes
Desc: not available
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20161228/c3cc599d/attachment.bin>


More information about the Xymon mailing list