[Xymon] [External] Re: WinPSClient - Client can't get local server name
Beck, Zak
zak.beck at accenture.com
Fri Nov 30 11:43:08 CET 2018
Hmm not seen this before but I can make it fallback to %COMPUTERNAME%.
I’m overdue releasing a new version… I’ll also update the documentation.
Zak
From: Scot Kreienkamp <Scot.Kreienkamp at la-z-boy.com>
Sent: Thursday, 29 November 2018 16:29
To: Beck, Zak <zak.beck at accenture.com>
Cc: xymon at xymon.com
Subject: RE: [External] Re: [Xymon] WinPSClient - Client can't get local server name
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<mailto: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<mailto:Scot.Kreienkamp at la-z-boy.com>>
Cc: xymon at xymon.com<mailto: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:image001.png at 01D48899.76F50550]
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%7C6b2345ffa1d94d366f9208d65617bdd1%7Ce0793d390939496db129198edd916feb%7C0%7C0%7C636791057343940940&sdata=5QsUO%2FpO61Bii0t%2FCx7GRs19KdilvJdwkravQtBRVXw%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%7C6b2345ffa1d94d366f9208d65617bdd1%7Ce0793d390939496db129198edd916feb%7C0%7C0%7C636791057343940940&sdata=5QsUO%2FpO61Bii0t%2FCx7GRs19KdilvJdwkravQtBRVXw%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%7C6b2345ffa1d94d366f9208d65617bdd1%7Ce0793d390939496db129198edd916feb%7C0%7C0%7C636791057343940940&sdata=wSSeDohhNcZOSN4NYukXYSvGt0hYrtMbAM0tmKWfJH0%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%7C6b2345ffa1d94d366f9208d65617bdd1%7Ce0793d390939496db129198edd916feb%7C0%7C0%7C636791057343940940&sdata=wSSeDohhNcZOSN4NYukXYSvGt0hYrtMbAM0tmKWfJH0%3D&reserved=0>/<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebook.com%2Flazboy&data=02%7C01%7Czak.beck%40accenture.com%7C6b2345ffa1d94d366f9208d65617bdd1%7Ce0793d390939496db129198edd916feb%7C0%7C0%7C636791057343940940&sdata=wSSeDohhNcZOSN4NYukXYSvGt0hYrtMbAM0tmKWfJH0%3D&reserved=0>lazboy<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Ffacebook.com%2Flazboy&data=02%7C01%7Czak.beck%40accenture.com%7C6b2345ffa1d94d366f9208d65617bdd1%7Ce0793d390939496db129198edd916feb%7C0%7C0%7C636791057343940940&sdata=U5CI9jg0BbuXQfohNiC2PywEwVoQDAIHNiJraoYDRGA%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%7C6b2345ffa1d94d366f9208d65617bdd1%7Ce0793d390939496db129198edd916feb%7C0%7C0%7C636791057343940940&sdata=o%2FHvqlvHem4ODfxdq8LD6toenDbSlCK3K4ilgc%2FL0rQ%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%7C6b2345ffa1d94d366f9208d65617bdd1%7Ce0793d390939496db129198edd916feb%7C0%7C0%7C636791057343940940&sdata=d8rOnGmiiZt4GDjVirjaav4uSRTz8zkewE%2F%2FYRC1fo0%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%7C6b2345ffa1d94d366f9208d65617bdd1%7Ce0793d390939496db129198edd916feb%7C0%7C0%7C636791057343940940&sdata=d8rOnGmiiZt4GDjVirjaav4uSRTz8zkewE%2F%2FYRC1fo0%3D&reserved=0>
[cid:image002.jpg at 01D48899.76F50550]
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%7C6b2345ffa1d94d366f9208d65617bdd1%7Ce0793d390939496db129198edd916feb%7C0%7C0%7C636791057343940940&sdata=%2F%2BqdKMYMocJhmORRNTw4lRExkF7mfXaGkiRz6PwCtYk%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<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.accenture.com%2Fus-en%2Fprivacy-policy&data=02%7C01%7Czak.beck%40accenture.com%7C6b2345ffa1d94d366f9208d65617bdd1%7Ce0793d390939496db129198edd916feb%7C0%7C0%7C636791057343940940&sdata=92yESbDOXjgBJw%2FO9P8%2BRgyW%2FNcShDiukaE5D22UeCE%3D&reserved=0>.
______________________________________________________________________________________
www.accenture.com<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.accenture.com&data=02%7C01%7Czak.beck%40accenture.com%7C6b2345ffa1d94d366f9208d65617bdd1%7Ce0793d390939496db129198edd916feb%7C0%7C0%7C636791057343940940&sdata=zDy3fwW1FQX9KK0hYG7LBSkXtxyW6q3%2BEj849HF8B%2BQ%3D&reserved=0>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20181130/5aba0787/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 4274 bytes
Desc: image001.png
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20181130/5aba0787/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 21288 bytes
Desc: image002.jpg
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20181130/5aba0787/attachment.jpg>
More information about the Xymon
mailing list