Something like this should work:
./xymon 127.0.0.1 "disable xymon.conn 1m "powered\ down\ for\ now"" ./xymon 127.0.0.1 "disable xymon.conn -1 "powered\ down\ for\ now""
Need to escape the spaces with backslashes in the message and also put the <message> in it's own quotation marks. I do commands like this from the command line all the time. Using "-1" will also work to "disable until OK", instead of specifying a duration like "1m".
-- Matt Vander Werf
On Thu, Oct 10, 2019 at 3:52 PM Scott Birl <scott.birl at temple.edu> wrote:
Is the port required for the RECIPIENT?
Try running: ./xymon --debug 127.0.0.1:1985 "disable xymon.comm 1m powered_down_for_now"
-----Original Message----- From: Uddin, Enaze <Enaze.Uddin at experian.com> Sent: Thursday, October 10, 2019 03:39 PM To: Scott Birl <scott.birl at temple.edu>; Xymon MailingList <xymon at xymon.com
Subject: RE: [Xymon] Enable/disable Issue
This is what I get now:
$ ./xymon 127.0.0.1 "disable xymon.comm 1m powered_down_for_now" Xymon version 4.3.28 Usage: ./xymon [--debug] [--merge] [--proxy=http://ip.of.the.proxy:port/] RECIPIENT DATA RECIPIENT: IP-address, hostname or URL DATA: Message to send, or "-" to read from stdin
Is using xymon a valid host considering I see it in the list of hosts to disable on the Enable/disable page? Not sure if that's the issue.
-----Original Message----- From: Xymon <xymon-bounces at xymon.com> On Behalf Of Scott Birl Sent: Thursday, October 10, 2019 2:34 PM To: Xymon MailingList <xymon at xymon.com> Subject: Re: [Xymon] Enable/disable Issue
Instead of "-1" trying using "1m" (for 1 minute).
Ive always had problems with spaces with the "why", so where you have powered down for now I had to change to powered_down_for_now
... so just in case you get another error.
-----Original Message----- From: Xymon <xymon-bounces at xymon.com> On Behalf Of Uddin, Enaze via Xymon Sent: Thursday, October 10, 2019 02:53 PM To: Root, Paul T <Paul.Root at CenturyLink.com>; xymon at xymon.com Subject: Re: [Xymon] Enable/disable Issue
Ok I tried again and I get this:
$ ./xymon 127.0.0.1 "disable xymon.comm -1 powered down for now" Unknown option -1 Xymon version 4.3.28 Usage: ./xymon [--debug] [--merge] [--proxy=http://ip.of.the.proxy:port/] RECIPIENT DATA RECIPIENT: IP-address, hostname or URL DATA: Message to send, or "-" to read from stdin
Is my syntax incorrect?
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon