Xymon Mailing List Archive search

findhost + enadis not working after in-place upgrade

8 messages in this thread

list Carl Melgaard · Wed, 9 Dec 2020 11:07:36 +0000 ·
Hi,

Where should I look to find out why findhost + enadis GUI's doesn't work at all - findhost returns no hits what so ever and enadis boxes aren't populated with servers at all... (Xymon 4.3.30-1.el7.terabithia). Looked thru the logs, but nothing seems out of order?

Regards,

Carl
list Carl Melgaard · Wed, 9 Dec 2020 12:50:38 +0000 ·
Hi,

Okay, so I found the issue. In hosts.cfg this part needs to be absolute last entry in the file:

# include additional host configurations
directory /etc/xymon/hosts.d


-      Otherwise find host and enadis.sh will not work.

Its probably documented somewhere, but I didn't know atleast.

Regards,

Carl
quoted from Carl Melgaard

Fra: Xymon <xymon-bounces at xymon.com> P? vegne af Carl Melgaard
Sendt: 9. december 2020 12:08
Til: xymon at xymon.com
Emne: [Xymon] findhost + enadis not working after in-place upgrade

Hi,

Where should I look to find out why findhost + enadis GUI's doesn't work at all - findhost returns no hits what so ever and enadis boxes aren't populated with servers at all... (Xymon 4.3.30-1.el7.terabithia). Looked thru the logs, but nothing seems out of order?

Regards,

Carl
list Mike Hatami · Wed, 28 Apr 2021 05:14:17 +0000 ·
Any answer for this one?
list Jeremy Laidman · Wed, 28 Apr 2021 16:15:03 +1000 ·
On Wed, 28 Apr 2021 at 15:42, Mike Hatami via Xymon <xymon at xymon.com> wrote:

Any answer for this one?
You're not giving us much to go on. Was this an upgrade to the OS or to
Xymon? From what version to what version? What investigation have you
carried out already? Have you checked for errors in the logs or in the
"xymond" status page for the server?

J
list Mike Hatami · Wed, 28 Apr 2021 06:29:13 +0000 ·
Hi Jeremy,

Thanks for the reply.

I installed a fresh Xymon on a CentOs as per the following:


  *   CentOS Stream 8 Server
  *   Xymon 4.3.30-1.el8.terabithia
  *   Enable/Disable page only sees the Xymon Server not any other hosts. I have something about 100 or more hosts and about 50 of them have client/agent installed and they report
  *   Another problem is that though clientlog is received and are green for the hosts only the xymon server has CPU/disk/procs/etc columns not other hosts


I checked all the httpd and xymon log as far as I could but cannot find anything. Xymond status page:
Wed Apr 28 16:21:42 2021 - xymon daemon up: 0 days, 01:24:59
Statistics for Xymon daemon
Version: 4.3.30-1.el8.terabithia
Up since 28-Apr-2021 14:56:43 (0 days, 01:24:59)

Incoming messages      :     122954
- status               :     118924
- combodata            :          0
- combo                :          0
- extcombo             :       1668
- page                 :          0
- summary              :          0
- clientsubmit         :          0
- clientconfig         :          0
- data                 :       1148
- clientlog            :          1
- client               :        849
- notes                :          0
- enable               :          0
- disable              :          0
- modify               :          0
- ack                  :          0
- config               :        128
- query                :          0
- xymondboard          :         98
- xymondlog            :         22
- hostinfo             :         22
- drop                 :          0
- rename               :          0
- dummy                :         82
- ping                 :          0
- notify               :          0
- schedule             :         12
- download             :          0
- Timeouts             :          0
- Bogus/Unknown        :          0
Incoming messages/sec  :         25 (average last 300 seconds)

status channel messages:     118945 (1 readers)
stachg channel messages:       1680 (1 readers)
page   channel messages:        713 (1 readers)
data   channel messages:       1148 (1 readers)
notes  channel messages:          0 (0 readers)
enadis channel messages:          0 (0 readers)
client channel messages:        848 (1 readers)
clichg channel messages:          9 (1 readers)
user   channel messages:          0 (0 readers)
backfeed messages      :          0

M

From: Jeremy Laidman <user-0608abae5e7c@xymon.invalid>
Sent: Wednesday, 28 April 2021 4:15 PM
To: Mike Hatami <user-c72b84f53a40@xymon.invalid>
Cc: xymon at xymon.com
Subject: Re: [Xymon] findhost + enadis not working after in-place upgrade

Alert: This message originated outside of NGS' network. BE CAUTIOUS before clicking any link or attachment!
quoted from Mike Hatami
On Wed, 28 Apr 2021 at 15:42, Mike Hatami via Xymon <xymon at xymon.com<mailto:xymon at xymon.com>> wrote:

Any answer for this one?

You're not giving us much to go on. Was this an upgrade to the OS or to Xymon? From what version to what version? What investigation have you carried out already? Have you checked for errors in the logs or in the "xymond" status page for the server?

J
list Carl Melgaard · Wed, 28 Apr 2021 08:47:49 +0000 ·
Hi,

I believe I sent the solution back to the list, when I found out, but anyways, here's the reason it bugged out for me:
quoted from Carl Melgaard

Okay, so I found the issue. In hosts.cfg this part needs to be absolute last entry in the file:

# include additional host configurations
directory /etc/xymon/hosts.d


-      Otherwise find host and enadis.sh will not work.

Its probably documented somewhere, but I didn't know atleast.

Regards,

Carl


Fra: Mike Hatami <user-c72b84f53a40@xymon.invalid>
Sendt: 28. april 2021 07:14
Til: xymon at xymon.com
Emne: Re: [Xymon] findhost + enadis not working after in-place upgrade

Any answer for this one?
list Jeremy Laidman · Thu, 29 Apr 2021 02:40:54 +1000 ·
Check your "Ghost Clients" report to see if the hostnames in hosts.cfg
match the hostnames in the status messages.

The xymond status page indicates that you've received no enable or disable
messages - possibly because they've been rejected by xymond, which I would
expect to see in a log somewhere, such as xymond.log.

The enable/disable page is a CGI script. If it's having permissions
problems or some other issue, you might see something show up in the Apache
logs.

As I understand it, the enable/disable CGI binary gets its host list by
loading in the hosts.cfg and any included files. The CGI binary runs as the
Apache user. So the Apache user needs to have read permission on the
hosts.cfg file and any included files and their containing directories. So
check the permissions of any host files and ensure that the Apache user can
read them. If this is the problem, I would expect a log message in the
Apache log file indicating a permissions problem.

J

On Wed, 28 Apr 2021 at 16:29, Mike Hatami <user-c72b84f53a40@xymon.invalid>
quoted from Mike Hatami
wrote:
Hi Jeremy,


Thanks for the reply.


I installed a fresh Xymon on a CentOs as per the following:


   - CentOS Stream 8 Server
   - Xymon 4.3.30-1.el8.terabithia
   - Enable/Disable page only sees the Xymon Server not any other hosts.
   I have something about 100 or more hosts and about 50 of them have
   client/agent installed and they report
   - Another problem is that though clientlog is received and are green
   for the hosts only the xymon server has CPU/disk/procs/etc columns not
   other hosts


I checked all the httpd and xymon log as far as I could but cannot find
anything. Xymond status page:

*Wed Apr 28 16:21:42 2021 - xymon daemon up: 0 days, 01:24:59*

Statistics for Xymon daemon

Version: 4.3.30-1.el8.terabithia

Up since 28-Apr-2021 14:56:43 (0 days, 01:24:59)


Incoming messages      :     122954

- status               :     118924

- combodata            :          0

- combo                :          0

- extcombo             :       1668

- page                 :          0

- summary              :          0

- clientsubmit         :          0

- clientconfig         :          0

- data                 :       1148

- clientlog            :          1

- client               :        849

- notes                :          0

- enable               :          0

- disable              :          0

- modify               :          0

- ack                  :          0

- config               :        128

- query                :          0

- xymondboard          :         98

- xymondlog            :         22

- hostinfo             :         22

- drop                 :          0

- rename               :          0

- dummy                :         82

- ping                 :          0

- notify               :          0

- schedule             :         12

- download             :          0

- Timeouts             :          0

- Bogus/Unknown        :          0

Incoming messages/sec  :         25 (average last 300 seconds)


status channel messages:     118945 (1 readers)

stachg channel messages:       1680 (1 readers)

page   channel messages:        713 (1 readers)

data   channel messages:       1148 (1 readers)

notes  channel messages:          0 (0 readers)

enadis channel messages:          0 (0 readers)

client channel messages:        848 (1 readers)

clichg channel messages:          9 (1 readers)

user   channel messages:          0 (0 readers)

backfeed messages      :          0


M


*From:* Jeremy Laidman <user-0608abae5e7c@xymon.invalid>
*Sent:* Wednesday, 28 April 2021 4:15 PM
*To:* Mike Hatami <user-c72b84f53a40@xymon.invalid>
*Cc:* xymon at xymon.com
*Subject:* Re: [Xymon] findhost + enadis not working after in-place
upgrade


Alert: This message originated outside of NGS' network. *BE CAUTIOUS* before
clicking any link or attachment!

On Wed, 28 Apr 2021 at 15:42, Mike Hatami via Xymon <xymon at xymon.com>
wrote:


Any answer for this one?


You're not giving us much to go on. Was this an upgrade to the OS or to
Xymon? From what version to what version? What investigation have you
carried out already? Have you checked for errors in the logs or in the
"xymond" status page for the server?


J

list Mike Hatami · Thu, 29 Apr 2021 04:04:39 +0000 ·
Hi Jeremy,

Thank you very much for helping me with this.

No ghost client, all hosts? clientlog are received by the server. Even I searched all the logs with no indication of ghost clients.
Following your instruction the hosts.cfg permission was as root user and group so I changed it to apache that the web service is running as and rebooted the server. But no changes yet.

Kind regards,
Mike
quoted from Jeremy Laidman

From: Jeremy Laidman <user-0608abae5e7c@xymon.invalid>
Sent: Thursday, 29 April 2021 2:41 AM
To: Mike Hatami <user-c72b84f53a40@xymon.invalid>
Cc: xymon at xymon.com
Subject: Re: [Xymon] findhost + enadis not working after in-place upgrade

Check your "Ghost Clients" report to see if the hostnames in hosts.cfg match the hostnames in the status messages.

The xymond status page indicates that you've received no enable or disable messages - possibly because they've been rejected by xymond, which I would expect to see in a log somewhere, such as xymond.log.

The enable/disable page is a CGI script. If it's having permissions problems or some other issue, you might see something show up in the Apache logs.

As I understand it, the enable/disable CGI binary gets its host list by loading in the hosts.cfg and any included files. The CGI binary runs as the Apache user. So the Apache user needs to have read permission on the hosts.cfg file and any included files and their containing directories. So check the permissions of any host files and ensure that the Apache user can read them. If this is the problem, I would expect a log message in the Apache log file indicating a permissions problem.

J

On Wed, 28 Apr 2021 at 16:29, Mike Hatami <user-c72b84f53a40@xymon.invalid<mailto:user-c72b84f53a40@xymon.invalid>> wrote:
Hi Jeremy,

Thanks for the reply.

I installed a fresh Xymon on a CentOs as per the following:


  *   CentOS Stream 8 Server
  *   Xymon 4.3.30-1.el8.terabithia
  *   Enable/Disable page only sees the Xymon Server not any other hosts. I have something about 100 or more hosts and about 50 of them have client/agent installed and they report
  *   Another problem is that though clientlog is received and are green for the hosts only the xymon server has CPU/disk/procs/etc columns not other hosts


I checked all the httpd and xymon log as far as I could but cannot find anything. Xymond status page:
Wed Apr 28 16:21:42 2021 - xymon daemon up: 0 days, 01:24:59
Statistics for Xymon daemon
Version: 4.3.30-1.el8.terabithia
Up since 28-Apr-2021 14:56:43 (0 days, 01:24:59)

Incoming messages      :     122954
- status               :     118924
- combodata            :          0
- combo                :          0
- extcombo             :       1668
- page                 :          0
- summary              :          0
- clientsubmit         :          0
- clientconfig         :          0
- data                 :       1148
- clientlog            :          1
- client               :        849
- notes                :          0
- enable               :          0
- disable              :          0
- modify               :          0
- ack                  :          0
- config               :        128
- query                :          0
- xymondboard          :         98
- xymondlog            :         22
- hostinfo             :         22
- drop                 :          0
- rename               :          0
- dummy                :         82
- ping                 :          0
- notify               :          0
- schedule             :         12
- download             :          0
- Timeouts             :          0
- Bogus/Unknown        :          0
Incoming messages/sec  :         25 (average last 300 seconds)

status channel messages:     118945 (1 readers)
stachg channel messages:       1680 (1 readers)
page   channel messages:        713 (1 readers)
data   channel messages:       1148 (1 readers)
notes  channel messages:          0 (0 readers)
enadis channel messages:          0 (0 readers)
client channel messages:        848 (1 readers)
clichg channel messages:          9 (1 readers)
user   channel messages:          0 (0 readers)
backfeed messages      :          0

M

From: Jeremy Laidman <user-0608abae5e7c@xymon.invalid<mailto:user-0608abae5e7c@xymon.invalid>>
Sent: Wednesday, 28 April 2021 4:15 PM
To: Mike Hatami <user-c72b84f53a40@xymon.invalid<mailto:user-c72b84f53a40@xymon.invalid>>
Cc: xymon at xymon.com<mailto:xymon at xymon.com>
Subject: Re: [Xymon] findhost + enadis not working after in-place upgrade

Alert: This message originated outside of NGS' network. BE CAUTIOUS before clicking any link or attachment!
On Wed, 28 Apr 2021 at 15:42, Mike Hatami via Xymon <xymon at xymon.com<mailto:xymon at xymon.com>> wrote:

Any answer for this one?

You're not giving us much to go on. Was this an upgrade to the OS or to Xymon? From what version to what version? What investigation have you carried out already? Have you checked for errors in the logs or in the "xymond" status page for the server?

J