Page 1 of 1

Nagios Log Server Web-Page wont load

Posted: Thu Oct 29, 2020 12:03 pm
by ColeNagios
I am new to this, We set up a Nagios Log Server and have been running it for a few weeks. Just recently the Web page decided to stop working we can SSH into the server but we cant view the webpage. Any ideas?

Re: Nagios Log Server Web-Page wont load

Posted: Fri Oct 30, 2020 10:23 am
by dchurch
Can you run:

Code: Select all

sudo service apache2 status
If it doesn't say "active (running)" it's not running. Start it by running

Code: Select all

sudo service apache2 restart
If you have further issues, we'll dig deeper.

Re: Nagios Log Server Web-Page wont load

Posted: Mon Nov 02, 2020 10:57 am
by ColeNagios
When I run that command this is what I get.

sudo service apache2 status
Redirecting to /bin/systemctl status apache2.service
Unit apache2.service could not be found.

Re: Nagios Log Server Web-Page wont load

Posted: Tue Nov 03, 2020 10:11 am
by dchurch
Sometimes the distro calls it "apache" or "httpd" instead of "apache2" so you could try a variant:

Code: Select all

sudo service httpd restart
sudo service apache restart
What distro are you running?

Re: Nagios Log Server Web-Page wont load

Posted: Wed Nov 04, 2020 4:59 pm
by ColeNagios
sudo service httpd restart

This command worked, but now the website is taking hours to load and once it dose it denies credentials. Any Ideas

Re: Nagios Log Server Web-Page wont load

Posted: Thu Nov 05, 2020 4:25 pm
by cdienger
Are you testing with the nagiosadmin account or another account?

What does the disk usage look like if you run "df -h" ? Instructions for increasing the size of the disk on the OVA install can be found at https://support.nagios.com/kb/article.php?id=814 if the drive is full.

Please send a profile from the system through private message. It can be gathered under Admin > System > System Status > Download System Profile or from the command line with:

Code: Select all

/usr/local/nagioslogserver/scripts/profile.sh
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 ticketing system. You can split the file into smaller files with the split command on the NLS(or other Linux machine) command line:

Code: Select all

split -b 5000000 /tmp/system-profile.tar.gz
The above command will split the system-profile.tar.gz into 5MB segments.

I'd also like to get a copy of the current settings index. This can be gathered by running:

Code: Select all

curl -XPOST http://localhost:9200/nagioslogserver/_export?path=/tmp/nagioslogserver.tar.gz
The file it creates and that we'd like to see is /tmp/nagioslogserver.tar.gz.