Xymon Mailing List Archive search

Xymondash issues

7 messages in this thread

list John Alexander · Mon, 25 Feb 2019 12:09:40 -0800 ·
Hi all,

I am having some issues with the Xymondash interface.  Everything works 
fine - it's properly displaying fault conditions, except that it will 
not acknowledge or disable alerts.  I only get a pop-up saying "could 
not acknowledge test"

xymon2json works just fine.  I get good json output.
xymon-ack gives nothing but a blank screen.  Same with xymon-disable

Acknowledging from the xymon "Acknowledge Alert" works fine.

Here is my config.ini  - I'm on CentOS 7 so python3 was installed as an 
addition.


# location of xymon executable in your file system
XYMONCLI="/home/xymon/server/bin/xymon"

# location of ackinfo.sh executable in your file system
XYMONACKINFOSH="/home/xymon/cgi-secure/ackinfo.sh"

# absolute URL of Xymon's svcstatus
XYMONSVCSTATUSURL="http://xymon.imasneezer.com/xymon-cgi/svcstatus"; <--- 
should this be svcstatus.sh?

# location of Xymon's critical.cfg in your file system (if you have one)
CRITICAL="/home/xymon/server/etc/critical.cfg"

# relative URL of svcstatus.sh on your monitoring server
XYMONURL="/xymon-cgi/svcstatus.sh"

# relative URL of xymon-ack on your monitoring server
XYMONACKURL="/xymondash/cgi/xymon-ack"

# relative URL of xymon-disable on your monitoring server
XYMONDISURL="/xymondash/cgi/xymon-disable"

# relative URL of xymon2json on your monitoring server
XYMONJSONURL="/xymondash/cgi/xymon2json"

# host name of xymon server
XYMONSERVER="xymon.imasneezer.com"

# website title
TITLE="Oak Street Medical xymon dashboard"

# path to python3 interpreter
PYTHON3="/usr/bin/env /opt/rh/rh-python36/root/usr/bin/python3"


Any ideas?

John Alexander
list John Alexander · Mon, 25 Feb 2019 16:07:35 -0800 ·
After more looking around, it appears that xymon-ack is returning a 400 Bad Request message.

Using wget to post the message as well as the web console show 400 errors.  It appears that the 400 is getting generated out of the form_is_valid(form_dict) routine in xymon-ack.

Any ideas?  I'm not a python guy by any means.

John A.
quoted from John Alexander

On 2/25/2019 12:09, John Alexander wrote:
Hi all,

I am having some issues with the Xymondash interface.  Everything works fine - it's properly displaying fault conditions, except that it will not acknowledge or disable alerts.  I only get a pop-up saying "could not acknowledge test"

xymon2json works just fine.  I get good json output.
xymon-ack gives nothing but a blank screen.  Same with xymon-disable

Acknowledging from the xymon "Acknowledge Alert" works fine.

Here is my config.ini  - I'm on CentOS 7 so python3 was installed as an addition.


# location of xymon executable in your file system
XYMONCLI="/home/xymon/server/bin/xymon"

# location of ackinfo.sh executable in your file system
XYMONACKINFOSH="/home/xymon/cgi-secure/ackinfo.sh"

# absolute URL of Xymon's svcstatus
XYMONSVCSTATUSURL="http://xymon.imasneezer.com/xymon-cgi/svcstatus"; <--- should this be svcstatus.sh?

# location of Xymon's critical.cfg in your file system (if you have one)
CRITICAL="/home/xymon/server/etc/critical.cfg"

# relative URL of svcstatus.sh on your monitoring server
XYMONURL="/xymon-cgi/svcstatus.sh"

# relative URL of xymon-ack on your monitoring server
XYMONACKURL="/xymondash/cgi/xymon-ack"

# relative URL of xymon-disable on your monitoring server
XYMONDISURL="/xymondash/cgi/xymon-disable"

# relative URL of xymon2json on your monitoring server
XYMONJSONURL="/xymondash/cgi/xymon2json"

# host name of xymon server
XYMONSERVER="xymon.imasneezer.com"

# website title
TITLE="Oak Street Medical xymon dashboard"

# path to python3 interpreter
PYTHON3="/usr/bin/env /opt/rh/rh-python36/root/usr/bin/python3"


Any ideas?

John Alexander

list Christian Herzog · Tue, 26 Feb 2019 07:07:55 +0100 ·
Hi John,

xymondash author here. Can you paste the request (or even better, open a
github issue)?

cheers,
-Christian
quoted from John Alexander


On Mon, Feb 25, 2019 at 04:07:35PM -0800, John Alexander wrote:
After more looking around, it appears that xymon-ack is returning a 400 Bad
Request message.

Using wget to post the message as well as the web console show 400 errors. 
It appears that the 400 is getting generated out of the
form_is_valid(form_dict) routine in xymon-ack.

Any ideas?  I'm not a python guy by any means.

John A.

On 2/25/2019 12:09, John Alexander wrote:
Hi all,
I am having some issues with the Xymondash interface.  Everything works
fine - it's properly displaying fault conditions, except that it will
not acknowledge or disable alerts.  I only get a pop-up saying "could
not acknowledge test"
xymon2json works just fine.  I get good json output.
xymon-ack gives nothing but a blank screen.  Same with xymon-disable
Acknowledging from the xymon "Acknowledge Alert" works fine.
Here is my config.ini  - I'm on CentOS 7 so python3 was installed as an
addition.
# location of xymon executable in your file system
XYMONCLI="/home/xymon/server/bin/xymon"
# location of ackinfo.sh executable in your file system
XYMONACKINFOSH="/home/xymon/cgi-secure/ackinfo.sh"
# absolute URL of Xymon's svcstatus
XYMONSVCSTATUSURL="http://xymon.imasneezer.com/xymon-cgi/svcstatus"; <---
should this be svcstatus.sh?
# location of Xymon's critical.cfg in your file system (if you have one)
CRITICAL="/home/xymon/server/etc/critical.cfg"
# relative URL of svcstatus.sh on your monitoring server
XYMONURL="/xymon-cgi/svcstatus.sh"
# relative URL of xymon-ack on your monitoring server
XYMONACKURL="/xymondash/cgi/xymon-ack"
# relative URL of xymon-disable on your monitoring server
XYMONDISURL="/xymondash/cgi/xymon-disable"
# relative URL of xymon2json on your monitoring server
XYMONJSONURL="/xymondash/cgi/xymon2json"
# host name of xymon server
XYMONSERVER="xymon.imasneezer.com"
# website title
TITLE="Oak Street Medical xymon dashboard"
# path to python3 interpreter
PYTHON3="/usr/bin/env /opt/rh/rh-python36/root/usr/bin/python3"
Any ideas?
John Alexander
-- 

Dr. Christian Herzog <user-5bd58cd9da64@xymon.invalid>  support: +41 44 633 26 68
IT Services Group, HPT H 8                    voice: +41 44 633 39 50
Department of Physics, ETH Zurich           8093 Zurich, Switzerland                     http://nic.phys.ethz.ch/
list John Alexander · Tue, 26 Feb 2019 06:26:53 -0800 ·
Hi Christian,

Thanks for the reply.  Here is my wget post
wget http://xymon.imasneezer.com/xymondash/cgi/xymon-ack 
--post-data="number=814407&msg=workingit&host=mini01.imasneezer.com&test=conn"

I see that xymon-ack is only looking for number, msg, host, and test in 
the post.  This follows the web console 400 error that I'm seeing when I 
try to ack the alert.

John Alexander
quoted from Christian Herzog

On 2/25/2019 22:07, Christian Herzog wrote:
Hi John,

xymondash author here. Can you paste the request (or even better, open a
github issue)?

cheers,
-Christian


On Mon, Feb 25, 2019 at 04:07:35PM -0800, John Alexander wrote:
After more looking around, it appears that xymon-ack is returning a 400 Bad
Request message.

Using wget to post the message as well as the web console show 400 errors.
It appears that the 400 is getting generated out of the
form_is_valid(form_dict) routine in xymon-ack.

Any ideas?  I'm not a python guy by any means.

John A.

On 2/25/2019 12:09, John Alexander wrote:
Hi all,

I am having some issues with the Xymondash interface.  Everything works
fine - it's properly displaying fault conditions, except that it will
not acknowledge or disable alerts.  I only get a pop-up saying "could
not acknowledge test"

xymon2json works just fine.  I get good json output.
xymon-ack gives nothing but a blank screen.  Same with xymon-disable

Acknowledging from the xymon "Acknowledge Alert" works fine.

Here is my config.ini  - I'm on CentOS 7 so python3 was installed as an
addition.


# location of xymon executable in your file system
XYMONCLI="/home/xymon/server/bin/xymon"

# location of ackinfo.sh executable in your file system
XYMONACKINFOSH="/home/xymon/cgi-secure/ackinfo.sh"

# absolute URL of Xymon's svcstatus
XYMONSVCSTATUSURL="http://xymon.imasneezer.com/xymon-cgi/svcstatus"; <---
should this be svcstatus.sh?

# location of Xymon's critical.cfg in your file system (if you have one)
CRITICAL="/home/xymon/server/etc/critical.cfg"

# relative URL of svcstatus.sh on your monitoring server
XYMONURL="/xymon-cgi/svcstatus.sh"

# relative URL of xymon-ack on your monitoring server
XYMONACKURL="/xymondash/cgi/xymon-ack"

# relative URL of xymon-disable on your monitoring server
XYMONDISURL="/xymondash/cgi/xymon-disable"

# relative URL of xymon2json on your monitoring server
XYMONJSONURL="/xymondash/cgi/xymon2json"

# host name of xymon server
XYMONSERVER="xymon.imasneezer.com"

# website title
TITLE="Oak Street Medical xymon dashboard"

# path to python3 interpreter
PYTHON3="/usr/bin/env /opt/rh/rh-python36/root/usr/bin/python3"


Any ideas?

John Alexander

list Christian Herzog · Wed, 27 Feb 2019 07:45:00 +0100 ·
Hi John,
quoted from John Alexander
Thanks for the reply.  Here is my wget post
wget http://xymon.imasneezer.com/xymondash/cgi/xymon-ack --post-data="number=814407&msg=workingit&host=mini01.imasneezer.com&test=conn"
2 things: you seem to be missing the min=something value that tells xymon how
long to ack the test, but that's not the problem. The real problem was that
you're using FQDNs (we're not) and we didn't allow '.' in the input values.
Trivial fix, just git pull.

best,
-Christian
list John Alexander · Wed, 27 Feb 2019 07:20:17 -0800 ·
Ahh.. all of my hosts are FQDN.  I didn't include the "min=something" in 
my test since xymon-ack wasn't looking for it - as best as I could tell.

Thanks much Christian.

John A.
quoted from Christian Herzog

On 2/26/2019 22:45, Christian Herzog wrote:
Hi John,
Thanks for the reply.  Here is my wget post
wget http://xymon.imasneezer.com/xymondash/cgi/xymon-ack --post-data="number=814407&msg=workingit&host=mini01.imasneezer.com&test=conn"
2 things: you seem to be missing the min=something value that tells xymon how
long to ack the test, but that's not the problem. The real problem was that
you're using FQDNs (we're not) and we didn't allow '.' in the input values.
Trivial fix, just git pull.

best,
-Christian
list John Alexander · Wed, 27 Feb 2019 08:43:21 -0800 ·
Hi Christian,

The ack works perfectly now, but the disable has the same issue.

I'm no python guy, but it looks like copying the allowed_chars line from 
xymon-ack into xymon-disable fixes it.

Please don't ask me for a pull request - I'm not a git guy either.

Thanks so much for this great dashboard.  This solves a lot of problems 
for me.
quoted from John Alexander

John A.

On 2/26/2019 22:45, Christian Herzog wrote:
Hi John,
Thanks for the reply.  Here is my wget post
wget http://xymon.imasneezer.com/xymondash/cgi/xymon-ack --post-data="number=814407&msg=workingit&host=mini01.imasneezer.com&test=conn"
2 things: you seem to be missing the min=something value that tells xymon how
long to ack the test, but that's not the problem. The real problem was that
you're using FQDNs (we're not) and we didn't allow '.' in the input values.
Trivial fix, just git pull.

best,
-Christian