Xymon Mailing List Archive search

Powershell client from external server

list Jeremy Laidman
Mon, 17 Jul 2017 09:36:05 +1000
Message-Id: <CACO=ejyNrW+yS-JN2NDo-tq4cY11AWcmtgxZ5-ap0YG=user-a369f674e4f5@xymon.invalid>

Jason

The Xymon server has support for receiving client messages over CGI, which
means whatever protocols and (optionally) authentication your webserver can
support. This is achieved via the xymoncgimsg(8) CGI binary, which accepts
a client message in POST data, and returns the Xymon server response in the
body of the HTTP(s) response.

The xymoncgimsg CGI is not enabled by default, but just requires copying
(or symlinking, if permitted by your web server configuration) to a cgi-bin
directory.

I'm no Powershell programmer, but it might be possible for someone to
enhance the Powershell client to have an option to submit client messages
via web services, apparently using "Invoke-WebRequest". If I had time, I'd
have a crack at it myself.

This technique has been used with curl in the past:
http://comments.gmane.org/gmane.comp.monitoring.hobbit/27772. One can get
curl for Windows. Although hacking the PS client to support curl is
probably almost as much effort to hacking it to support URLs natively.

J

On 14 July 2017 at 19:00, Beck, Zak <user-aada0fa38bf8@xymon.invalid> wrote:
Hi Jason


The client does not support SSL/TLS directly. There was talk on the dev
mailing list in 2015 of the server having TLS support built-in, I don’t
know how far this got, whether it made it into a stable release and how
easy it would be to adapt the Powershell client to use TLS. I think there
are probably still questions over authentication (i.e. the message can be
encrypted, but how do you determine it is from who it says it is from).
Henrik would know.


I think the usual alternative advice is to use an intermediary such as
stunnel, which I note does have a Windows port -
https://www.stunnel.org/index.html.


Zak


*From:* Xymon [mailto:xymon-bounces at xymon.com] *On Behalf Of *Jason Jones
*Sent:* 14 July 2017 09:37
*To:* xymon at xymon.com
*Subject:* [External] [Xymon] Powershell client from external server


Hi all,

I was just wondering if anyone had any step-by-step instructions or advise
about sending the client data from the powershell client over a secure
connection, we have a few external servers that we would like to start
having their disk usage etc. sent back but would prefer if this was done
over SSL or similar.

Kind Regards,
Jason.

* Jason Jones*


* Codel Software Ltd*
Unit 1C
Charnwood Park
Bridgend
CF31 3PL

 +44 (0)1656 750 858
 +44 (0)1656 648 649
 user-f3cd0ee20c57@xymon.invalid
 http://www.codelsoftware.com
<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.codelsoftware.com_&d=DwMGaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=S-aLwpx-PHBTBMIG_c2JczRC0SfuZCmsiH9Iams25FI&m=SDHHRTOTg1V9E6D7uzjiH3GRbi8c8SW_zzLNsiv87Po&s=ody0eIAp18_qgD4zYiHtz543Ur3iqtZI_DeifyMM3rw&e=>;

Follow Us:
 @codel_software
<https://urldefense.proofpoint.com/v2/url?u=http-3A__twitter.com_codel-5Fsoftware&d=DwMGaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=S-aLwpx-PHBTBMIG_c2JczRC0SfuZCmsiH9Iams25FI&m=SDHHRTOTg1V9E6D7uzjiH3GRbi8c8SW_zzLNsiv87Po&s=qmDa20AIMZ0zhYpobT0pcGkfr-fT6bHVYgSb9gpJYaU&e=>;
@activabsence
<https://urldefense.proofpoint.com/v2/url?u=http-3A__twitter.com_activabsence&d=DwMGaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=S-aLwpx-PHBTBMIG_c2JczRC0SfuZCmsiH9Iams25FI&m=SDHHRTOTg1V9E6D7uzjiH3GRbi8c8SW_zzLNsiv87Po&s=QaqcjDrdXMz1YVQddXEHLVSb19AvueUbj0gx0nhIx_c&e=>;
 Linkedin
<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.linkedin.com_company_codel-2Dsoftware-2Dltd&d=DwMGaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=S-aLwpx-PHBTBMIG_c2JczRC0SfuZCmsiH9Iams25FI&m=SDHHRTOTg1V9E6D7uzjiH3GRbi8c8SW_zzLNsiv87Po&s=iNBxYqDVc0thXeQFwnqKiAfxvtEuetBKTepKHofn9tk&e=>;
  http://www.activabsence.co.uk
<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.activabsence.co.uk_&d=DwMGaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=S-aLwpx-PHBTBMIG_c2JczRC0SfuZCmsiH9Iams25FI&m=SDHHRTOTg1V9E6D7uzjiH3GRbi8c8SW_zzLNsiv87Po&s=GsApsqpTuIiTO7K5tEGhWed8OSAAWGlHhJ2nwpmszT8&e=>;

Registered in Wales No. 5838660

DELIVERING QUALITY: At Codel Software we are committed to delivering
quality software, services and client interactions. We have demonstrated
this through quality audits and customer satisfaction. Codel Software is an
ISO 9001:2008 certified company.

CONFIDENTIALITY NOTICE: This message is confidential and for the use only
of the intended recipient.  If you receive the message in error you are not
entitled to disseminate, copy or use the contents in any way. In such
circumstances please forward the message back to the sender.

WARNING :While Codel Software takes steps to prevent computer viruses
from being transmitted via electronic mail attachments we cannot guarantee
that attachments do not contain computer virus code. You are therefore
strongly advised to undertake anti virus checks prior to accessing the
attachment to this electronic mail.
Codel Software grants no warranties regarding performance use or quality
of any attachment and undertakes no liability for loss or damage howsoever
caused.

If you do not want to receive similar communications by e-mail from Codel
Software, please reply to this e-mail with 'remove' in the subject line.

*Help the environment –please don't print this email unless you really
need to!*

This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com


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.

www.accenture.com