Xymon Mailing List Archive search

Critical hosts page does not work

4 messages in this thread

list Ken Connell · Tue, 10 Sep 2024 13:09:03 -0400 ·
Xymon ver 4.3.28

No matter what I try to add hosts to the Critical hosts page, nothing ever shows up.
critical.cfg always remains 0 bytes (has the same rights as other config files in the same dir).

How do I troubleshoot this ?

--


Ken Connell
Senior Network Engineer
Computer & Communication Services
Toronto Metropolitan University (Formerly Ryerson University)
XXX Victoria St
RM PODB50
Toronto, Ont
M5B 2K3
XXX-XXX-XXXX x556709
list Jeremy Laidman · Wed, 11 Sep 2024 09:43:47 +1000 ·
Hi Ken
To be honest, I generally modify my critical.cfg file directly (using vi) rather than through the web interface.

A few things you could check:
- confirm that it's writable by the user that runs your web server (eg "sudo -u apache touch critical.cfg")
- check your webserver logs for errors
- run the CGI from the command line to simulate a browser, and see if there are any errors; something like:
  SCRIPT_NAME=. REQUEST_METHOD=GET QUERY_STRING='HOSTNAME=localhost&SERVICE=conn' /usr/share/xymon/cgi-bin/criticalview.sh --env=/usr/lib/xymon/server/etc/xymonserver.cfg --debug >/dev/null
  (Copy the QUERY_STRING from your browser's location bar, after attempting an update)

Cheers
Jeremy

quoted from Ken Connell
On Wed, 11 Sept 2024 at 03:09, Ken Connell <user-db108f93c7f6@xymon.invalid> wrote:
Xymon ver 4.3.28

No matter what I try to add hosts to the Critical hosts page, nothing ever shows up.
critical.cfg always remains 0 bytes (has the same rights as other config files in the same dir).

How do I troubleshoot this ?

--


Ken Connell
Senior Network Engineer
Computer & Communication Services
Toronto Metropolitan University (Formerly Ryerson University)
list Ralph Mitchell · Tue, 10 Sep 2024 19:48:22 -0400 ·
The web server log may have some useful information too.
Ralph Mitchell

quoted from Jeremy Laidman
On Tue, Sep 10, 2024 at 7:44 PM Jeremy Laidman <user-0608abae5e7c@xymon.invalid> wrote:
Hi Ken
To be honest, I generally modify my critical.cfg file directly (using vi) rather than through the web interface.

A few things you could check:
- confirm that it's writable by the user that runs your web server (eg "sudo -u apache touch critical.cfg")
- check your webserver logs for errors
- run the CGI from the command line to simulate a browser, and see if there are any errors; something like:
  SCRIPT_NAME=. REQUEST_METHOD=GET QUERY_STRING='HOSTNAME=localhost&SERVICE=conn' /usr/share/xymon/cgi-bin/criticalview.sh --env=/usr/lib/xymon/server/etc/xymonserver.cfg --debug >/dev/null
  (Copy the QUERY_STRING from your browser's location bar, after attempting an update)

Cheers
Jeremy

On Wed, 11 Sept 2024 at 03:09, Ken Connell <user-db108f93c7f6@xymon.invalid> wrote:
Xymon ver 4.3.28

No matter what I try to add hosts to the Critical hosts page, nothing ever shows up.
critical.cfg always remains 0 bytes (has the same rights as other config files in the same dir).

How do I troubleshoot this ?

--


Ken Connell
Senior Network Engineer
Computer & Communication Services
Toronto Metropolitan University (Formerly Ryerson University)
list Ken Connell · Wed, 11 Sep 2024 10:23:03 -0400 ·
Thank you for the help, yeah it was a "rights issue" that I thought I had already corrected.
I was focused on "xymon logs" and didn't even think to check httpd logs, duh.

quoted from Ralph Mitchell
On Tue, Sep 10, 2024 at 7:48 PM Ralph M <user-00a5e44c48c0@xymon.invalid> wrote:
The web server log may have some useful information too.
Ralph Mitchell

On Tue, Sep 10, 2024 at 7:44 PM Jeremy Laidman <user-0608abae5e7c@xymon.invalid> wrote:
Hi Ken
To be honest, I generally modify my critical.cfg file directly (using vi) rather than through the web interface.

A few things you could check:
- confirm that it's writable by the user that runs your web server (eg "sudo -u apache touch critical.cfg")
- check your webserver logs for errors
- run the CGI from the command line to simulate a browser, and see if there are any errors; something like:
  SCRIPT_NAME=. REQUEST_METHOD=GET QUERY_STRING='HOSTNAME=localhost&SERVICE=conn' /usr/share/xymon/cgi-bin/criticalview.sh --env=/usr/lib/xymon/server/etc/xymonserver.cfg --debug >/dev/null
  (Copy the QUERY_STRING from your browser's location bar, after attempting an update)

Cheers
Jeremy

On Wed, 11 Sept 2024 at 03:09, Ken Connell <user-db108f93c7f6@xymon.invalid> wrote:
Xymon ver 4.3.28

No matter what I try to add hosts to the Critical hosts page, nothing ever shows up.
critical.cfg always remains 0 bytes (has the same rights as other config files in the same dir).

How do I troubleshoot this ?

--


Ken Connell
Senior Network Engineer
Computer & Communication Services
Toronto Metropolitan University (Formerly Ryerson University)