Unable to get to web UI
Unable to get to web UI
We installed Nagios Log Server and it was running fine for about 2 weeks. I recently tried to get back in to the web UI and it no longer loads for me. I can still get in to the CLI and check processes which says everything is running fine. I have to imagine something is just missing here but I am not versed enough in Linux to find it. We are using CentOS 7.
Re: Unable to get to web UI
Check the system and heap memory, disk, open indices, and cluster health with these commands:
Code: Select all
free -m
df -h
curl -XGET 'http://localhost:9200/_cluster/health?pretty=true'
curl 'localhost:9200/_cat/nodes?v'
curl 'localhost:9200/_cat/indices?pretty'As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Unable to get to web UI
I was only able to get some of the information. The other commands timed out. Not sure if that is a symptom of the same issue or potentially pointing to a cause.
[root@NECSD-NagiosLS-1 ~]# free -m
total used free shared buff/cache available
Mem: 7812 5696 618 386 1496 1323
Swap: 2047 5 2042
[root@NECSD-NagiosLS-1 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 3.9G 0 3.9G 0% /dev
tmpfs 3.9G 0 3.9G 0% /dev/shm
tmpfs 3.9G 390M 3.5G 10% /run
tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
/dev/mapper/centos-root 96G 91G 181M 100% /
/dev/sda1 976M 197M 713M 22% /boot
tmpfs 782M 0 782M 0% /run/user/48
tmpfs 782M 0 782M 0% /run/user/1000
tmpfs 782M 0 782M 0% /run/user/0
[root@NECSD-NagiosLS-1 ~]# curl -XGET 'http://localhost:9200/_cluster/health?pre tty=true'
curl: (56) Recv failure: Connection reset by peer
[root@NECSD-NagiosLS-1 ~]# curl 'localhost:9200/_cat/nodes?v'
curl: (56) Recv failure: Connection reset by peer
[root@NECSD-NagiosLS-1 ~]# curl 'localhost:9200/_cat/indices?pretty'
curl: (56) Recv failure: Connection reset by peer
[root@NECSD-NagiosLS-1 ~]# free -m
total used free shared buff/cache available
Mem: 7812 5696 618 386 1496 1323
Swap: 2047 5 2042
[root@NECSD-NagiosLS-1 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 3.9G 0 3.9G 0% /dev
tmpfs 3.9G 0 3.9G 0% /dev/shm
tmpfs 3.9G 390M 3.5G 10% /run
tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
/dev/mapper/centos-root 96G 91G 181M 100% /
/dev/sda1 976M 197M 713M 22% /boot
tmpfs 782M 0 782M 0% /run/user/48
tmpfs 782M 0 782M 0% /run/user/1000
tmpfs 782M 0 782M 0% /run/user/0
[root@NECSD-NagiosLS-1 ~]# curl -XGET 'http://localhost:9200/_cluster/health?pre tty=true'
curl: (56) Recv failure: Connection reset by peer
[root@NECSD-NagiosLS-1 ~]# curl 'localhost:9200/_cat/nodes?v'
curl: (56) Recv failure: Connection reset by peer
[root@NECSD-NagiosLS-1 ~]# curl 'localhost:9200/_cat/indices?pretty'
curl: (56) Recv failure: Connection reset by peer
Re: Unable to get to web UI
The curl commands failing would indicate that the elasticsearch service is not starting. Try starting it and checking its status with:
If there are still problems after this, please PM me a profile. It can be generated from the command line with:
This will create /tmp/system-profile.tar.gz. Note that this file can be very large and may not be able to be uploaded through the messaging system. This is usually due to the logs in the Logstash and/or Elasticsearch directories found in it. If it is too large, please open the profile, extract these directories/files and send them separately.
Code: Select all
systemctl start elasticsearch
systemctl status elasticseach -lCode: Select all
/usr/local/nagioslogserver/scripts/profile.shAs of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.