[Xymon] windows powershell client

Raymond, David David.Raymond at ca.ebarrette.com
Wed Apr 6 16:22:34 CEST 2011


I try this new client, but I get error. I have try IP address and dns
name entry, same result.
Try it on windows 7 x64.

Exception calling "GetHostAddresses" with "1" argument(s): "No such host
is known"
At C:\Xymon\xymonsend.ps1:10 char:65
+         $srvIPs = $srvparams[0] | %{[system.net.dns]::GetHostAddresses
<<<< ($_)} | %{ $_.IPAddressToString}
    + CategoryInfo          : NotSpecified: (:) [],
MethodInvocationException
    + FullyQualifiedErrorId : DotNetMethodException

XymonSend : Cannot connect to host xymonhost () :
System.Management.Automation.MethodInvocationException: Exception cal
ling "Connect" with "2" argument(s): "Value cannot be null.
Parameter name: addresses" ---> System.ArgumentNullException: Value
cannot be null.
Parameter name: addresses
   at System.Net.Sockets.Socket.Connect(IPAddress[] addresses, Int32
port)
   at System.Net.Sockets.TcpClient.Connect(IPAddress[] ipAddresses,
Int32 port)
   at Connect(Object , Object[] )
   at
System.Management.Automation.DotNetAdapter.AuxiliaryMethodInvoke(Object
target, Object[] arguments, MethodInforma
tion methodInformation, Object[] originalArguments)
   --- End of inner exception stack trace ---
   at
System.Management.Automation.DotNetAdapter.AuxiliaryMethodInvoke(Object
target, Object[] arguments, MethodInforma
tion methodInformation, Object[] originalArguments)
   at System.Management.Automation.ParserOps.CallMethod(Token token,
Object target, String methodName, Object[] paramAr
ray, Boolean callStatic, Object valueToSet)
   at System.Management.Automation.MethodCallNode.InvokeMethod(Object
target, Object[] arguments, Object value)
   at System.Management.Automation.MethodCallNode.Execute(Array input,
Pipe outputPipe, ExecutionContext context)
   at System.Management.Automation.ParseTreeNode.Execute(Array input,
Pipe outputPipe, ArrayList& resultList, Execution
Context context)
   at
System.Management.Automation.StatementListNode.ExecuteStatement(ParseTre
eNode statement, Array input, Pipe output
Pipe, ArrayList& resultList, ExecutionContext context)
At line:1 char:11
+  xymonsend <<<<  "ping" "xymonhost"
    + CategoryInfo          : OpenError: (:) [Write-Error],
WriteErrorException
    + FullyQualifiedErrorId :
Microsoft.PowerShell.Commands.WriteErrorException,XymonSend

David Raymond-----Original Message-----
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf
Of David Baldwin
Sent: Thursday, March 31, 2011 0:17
To: Tom Georgoulias
Cc: xymon at xymon.com
Subject: Re: [Xymon] windows powershell client

Tom,
> What's the status of the powershell windows client?  I have a few 
> windows servers that need to be monitored and thought I'd try the 
> power shell client instead of BBWin, if the shell client is ready.
The following is still the state of play:
http://lists.xymon.com/oldarchive/2011/01/msg00244.html

On the only Windows host where I need to run external scripts, I am
running XymonPSClient as the client and BBWin with everything else
turned off except externals to run those scripts.

David.

--
David Baldwin - IT Unit
Australian Sports Commission          www.ausport.gov.au
Tel 02 62147830 Fax 02 62141830       PO Box 176 Belconnen ACT 2616
david.baldwin at ausport.gov.au          Leverrier Street Bruce ACT 2617


------------------------------------------------------------------------
-------------
Keep up to date with what's happening in Australian sport visit
http://www.ausport.gov.au

This message is intended for the addressee named and may contain
confidential and privileged information. If you are not the intended
recipient please note that any form of distribution, copying or use of
this communication or the information in it is strictly prohibited and
may be unlawful. If you receive this message in error, please delete it
and notify the sender.
------------------------------------------------------------------------
-------------
_______________________________________________
Xymon mailing list
Xymon at xymon.com
http://lists.xymon.com/mailman/listinfo/xymon



More information about the Xymon mailing list