[Xymon] [External] Re: WinPSClient - Client can't get local server name

Scot Kreienkamp Scot.Kreienkamp at la-z-boy.com
Thu Nov 29 17:28:46 CET 2018


It is domain joined, and ipconfig /all does show the computer name.  I also get the proper computer name from the echo statement, just not FQDN.  I can work around that on Xymon so that wouldn’t be a big deal.  Null value is the problem.

FYI, the clientname config isn’t in the word doc.  Putting it there does work though.

Thanks Zak and Tim!


Scot Kreienkamp |Senior Systems Engineer | La-Z-Boy Corporate
One La-Z-Boy Drive| Monroe, Michigan 48162 | Office: 734-384-6403 | | Mobile: 7349151444 | Email: Scot.Kreienkamp at la-z-boy.com
From: Beck, Zak [mailto:zak.beck at accenture.com]
Sent: Thursday, November 29, 2018 11:06 AM
To: Scot Kreienkamp <Scot.Kreienkamp at la-z-boy.com>
Cc: xymon at xymon.com
Subject: RE: [External] Re: [Xymon] WinPSClient - Client can't get local server name

Hi

You can do it that way, it might be painful if you have hundreds of servers to configure.

The client should pick up the host name from the computer name – the sort of thing you see if you do ipconfig /all:

[cid:image002.png at 01D487D6.2467A3B0]


Possibly this only works if your Windows computer is domain joined? If so, I could make it fallback to COMPUTERNAME from the environment, what do you get for echo %COMPUTERNAME% from the command line?

If this is not available then it’ll fall back to the client name from the XML config.

Zak

From: Xymon <xymon-bounces at xymon.com<mailto:xymon-bounces at xymon.com>> On Behalf Of Timothy Williams
Sent: Thursday, 29 November 2018 15:37
To: Scot.Kreienkamp at la-z-boy.com<mailto:Scot.Kreienkamp at la-z-boy.com>
Cc: xymon at xymon.com<mailto:xymon at xymon.com>
Subject: [External] Re: [Xymon] WinPSClient - Client can't get local server name

In the 'xymonclient_config.xml' file have the server name as first entry. This is on the server.

<XymonSettings>
  <clientname>someserver</clientname>
  <servers>xymonserver name or IP</servers>
...
</XymonSettings>

Tim Williams







On Thu, Nov 29, 2018 at 10:13 AM Scot Kreienkamp <Scot.Kreienkamp at la-z-boy.com<mailto:Scot.Kreienkamp at la-z-boy.com>> wrote:
Hi everyone,

I have one Win2008 32 bit server that I’m trying to install the WinPSClient on.  When I try to install it I get this:

C:\Program Files\xymon>powershell.exe ./xymonclient.ps1 install
You cannot call a method on a null-valued expression.
At C:\Program Files\xymon\xymonclient.ps1:934 char:81
+         if ($script:XymonSettings.clientlower -eq 1) { $clname = $clname.ToLower <<<< () }
    + CategoryInfo          : InvalidOperation: (ToLower:String) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

Service "XymonPSClient" installed successfully!


So I set clientfqdn and clientlower to 0 which eliminated the errors but the Xymon server never shows any information or ghost clients with the server name.  To start troubleshooting I looked at the data file produced by the client and found the server name is missing from the first line produced by the client:

client .powershell powershell XymonPS


It looks like I could define it in the script, but every time the client is updated by the Xymon server it will get overwritten as it doesn’t look like there’s a way to define it in the config file.

Any help would be appreciated.  I’m not a Windows scripter.


Scot Kreienkamp | Senior Systems Engineer | La-Z-Boy Corporate
One La-Z-Boy Drive | Monroe, Michigan 48162  | • 734-384-6403 | | • 7349151444 | •  Scot.Kreienkamp at la-z-boy.com<mailto:%7BE-mail%7D>
www<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.la-z-boy.com%2F&data=02%7C01%7Czak.beck%40accenture.com%7C5ede51fda234497d686408d656109edb%7Ce0793d390939496db129198edd916feb%7C0%7C0%7C636791026738576942&sdata=DamIaclRq6st8ZPoaaOaGH%2Bdjv28BcCD2YpJ%2FLa0hAs%3D&reserved=0>.la-z-boy.com<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.la-z-boy.com%2F&data=02%7C01%7Czak.beck%40accenture.com%7C5ede51fda234497d686408d656109edb%7Ce0793d390939496db129198edd916feb%7C0%7C0%7C636791026738586942&sdata=7x8wIPSjnmZd391L0UDx3bXEMI8t3yvTBJ7RXlKrNiw%3D&reserved=0> | facebook.<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebook.com%2Flazboy&data=02%7C01%7Czak.beck%40accenture.com%7C5ede51fda234497d686408d656109edb%7Ce0793d390939496db129198edd916feb%7C0%7C0%7C636791026738586942&sdata=d6b4D9eJaM2GSMClUtytoIvPq2Z8bQ%2B9stYAleSxXmw%3D&reserved=0>com<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebook.com%2Flazboy&data=02%7C01%7Czak.beck%40accenture.com%7C5ede51fda234497d686408d656109edb%7Ce0793d390939496db129198edd916feb%7C0%7C0%7C636791026738596950&sdata=R1sgGWpqvO8AiBnrnCFWO0dplFuV4Zq4SjDfLYPG8sw%3D&reserved=0>/<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebook.com%2Flazboy&data=02%7C01%7Czak.beck%40accenture.com%7C5ede51fda234497d686408d656109edb%7Ce0793d390939496db129198edd916feb%7C0%7C0%7C636791026738606958&sdata=95OsdpazBv1j0InPBdiHqaHqSoHGSa3unIS4oU2uhA0%3D&reserved=0>lazboy<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Ffacebook.com%2Flazboy&data=02%7C01%7Czak.beck%40accenture.com%7C5ede51fda234497d686408d656109edb%7Ce0793d390939496db129198edd916feb%7C0%7C0%7C636791026738616974&sdata=OUVqtBSEOUxNI0dzBeaWSvtlq5uQEMOfvewsJEGz0Yw%3D&reserved=0> | twitter.com/lazboy<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.com%2Flazboy&data=02%7C01%7Czak.beck%40accenture.com%7C5ede51fda234497d686408d656109edb%7Ce0793d390939496db129198edd916feb%7C0%7C0%7C636791026738616974&sdata=x1V6mhQxmvkxcshT5e3owU4HQZSNkZ83lSFf4FFA5c4%3D&reserved=0> | youtube.com/<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.youtube.com%2Fuser%2Flazboy&data=02%7C01%7Czak.beck%40accenture.com%7C5ede51fda234497d686408d656109edb%7Ce0793d390939496db129198edd916feb%7C0%7C0%7C636791026738626975&sdata=Ep31cPWEdNP7IrhDxo00%2BxkC2dGG%2FbiwcxYN2UGYLRw%3D&reserved=0>lazboy<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.youtube.com%2Fuser%2Flazboy&data=02%7C01%7Czak.beck%40accenture.com%7C5ede51fda234497d686408d656109edb%7Ce0793d390939496db129198edd916feb%7C0%7C0%7C636791026738626975&sdata=Ep31cPWEdNP7IrhDxo00%2BxkC2dGG%2FbiwcxYN2UGYLRw%3D&reserved=0>

[cid:image003.jpg at 01D487D6.2467A3B0]



This message is intended only for the individual or entity to which it is addressed.  It may contain privileged, confidential information which is exempt from disclosure under applicable laws.  If you are not the intended recipient, you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information.  If you have received this communication in error, please notify us immediately by e-mail or by telephone at the above number. Thank you.
_______________________________________________
Xymon mailing list
Xymon at xymon.com<mailto:Xymon at xymon.com>
http://lists.xymon.com/mailman/listinfo/xymon<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.xymon.com%2Fmailman%2Flistinfo%2Fxymon&data=02%7C01%7Czak.beck%40accenture.com%7C5ede51fda234497d686408d656109edb%7Ce0793d390939496db129198edd916feb%7C0%7C0%7C636791026738636987&sdata=jkNtThGrG8WvnND0PrL%2F5If505Y9VutobZR0jsxPc44%3D&reserved=0>

________________________________

This message is for the designated recipient only and may contain privileged, proprietary, or otherwise confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by you is prohibited. Where allowed by local law, electronic communications with Accenture and its affiliates, including e-mail and instant messaging (including content), may be scanned by our systems for the purposes of information security and assessment of internal compliance with Accenture policy. Your privacy is important to us. Accenture uses your personal data only in compliance with data protection laws. For further information on how Accenture processes your personal data, please see our privacy statement at https://www.accenture.com/us-en/privacy-policy.
______________________________________________________________________________________

www.accenture.com<http://www.accenture.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20181129/bd09c5a5/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 4274 bytes
Desc: image002.png
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20181129/bd09c5a5/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.jpg
Type: image/jpeg
Size: 21288 bytes
Desc: image003.jpg
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20181129/bd09c5a5/attachment.jpg>


More information about the Xymon mailing list