[Xymon] Enable/disable Issue
Root, Paul T
Paul.Root at CenturyLink.com
Thu Oct 10 22:08:06 CEST 2019
No, this won’t work. You need to escape the interior double quotes.
But they are extraneous.
From: Xymon <xymon-bounces at xymon.com> On Behalf Of Matt Vander Werf
Sent: Thursday, October 10, 2019 3:00 PM
To: Scott Birl <scott.birl at temple.edu>; Uddin, Enaze <Enaze.Uddin at experian.com>
Cc: Xymon MailingList <xymon at xymon.com>
Subject: Re: [Xymon] Enable/disable Issue
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<mailto:scott.birl at temple.edu>> wrote:
Is the port required for the RECIPIENT?
Try running: ./xymon --debug 127.0.0.1:1985<http://127.0.0.1:1985> "disable xymon.comm 1m powered_down_for_now"
-----Original Message-----
From: Uddin, Enaze <Enaze.Uddin at experian.com<mailto:Enaze.Uddin at experian.com>>
Sent: Thursday, October 10, 2019 03:39 PM
To: Scott Birl <scott.birl at temple.edu<mailto:scott.birl at temple.edu>>; Xymon MailingList <xymon at xymon.com<mailto: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<https://imss91-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2fip.of.the&umid=F0B1E764-9493-DC05-9E9A-259E0E07611B&auth=19120be9529b25014b618505cb01789c5433dae7-38873bbee2dec200f6ab02ba4b39fe9394b7e3ca>.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<mailto: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<mailto: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<mailto: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<mailto:Paul.Root at CenturyLink.com>>; xymon at xymon.com<mailto: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<https://imss91-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2fip.of.the&umid=F0B1E764-9493-DC05-9E9A-259E0E07611B&auth=19120be9529b25014b618505cb01789c5433dae7-38873bbee2dec200f6ab02ba4b39fe9394b7e3ca>.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<mailto:Xymon at xymon.com>
http://lists.xymon.com/mailman/listinfo/xymon<https://imss91-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2flists.xymon.com%2fmailman%2flistinfo%2fxymon&umid=F0B1E764-9493-DC05-9E9A-259E0E07611B&auth=19120be9529b25014b618505cb01789c5433dae7-10f7c6dd602b22ed5a721c4537df151253a25503>
_______________________________________________
Xymon mailing list
Xymon at xymon.com<mailto:Xymon at xymon.com>
http://lists.xymon.com/mailman/listinfo/xymon<https://imss91-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2flists.xymon.com%2fmailman%2flistinfo%2fxymon&umid=F0B1E764-9493-DC05-9E9A-259E0E07611B&auth=19120be9529b25014b618505cb01789c5433dae7-10f7c6dd602b22ed5a721c4537df151253a25503>
This communication is the property of CenturyLink and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20191010/fffe842c/attachment.htm>
More information about the Xymon
mailing list