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
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
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
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
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
--
Dr. Christian Herzog <herzog at phys.ethz.ch> 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/
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
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
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
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
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.
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
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
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.
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
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
participants (2)
-
herzog@phys.ethz.ch
-
john.alexander@preachain.org