Page 1 of 1
Localhost server is showing as down
Posted: Thu Aug 02, 2012 5:21 am
by mark@amor
Hi all,
I'm a complete linux and nagios virgin so please be gentle..
I have setup a Ubuntu (12.04) server in a VM and installed nagios (4.3.1) + pluging (x.1.16) as described in the articles on the Nagios website for the core install and plugin.
As far as I can tell there were no errors during any of the install processes.
When i go the web site the localhost is showing as down and critical on all services.
Looking for some help on what i can check to ensure my installation is working correctly?
Thanks,
Mark
Re: Localhost server is showing as down
Posted: Thu Aug 02, 2012 9:38 am
by slansing
You can check the configuration files with the following:
Code: Select all
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Are you behind a proxy? Are you using a VPN Tunnel? Have you tried turning off the operating system's firewall to test?
Did you install Nagios from source, and finally what type of checks are you attempting to create that are going critical?
Re: Localhost server is showing as down
Posted: Mon Aug 20, 2012 10:07 am
Hi, I have the exact same issue.
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg came back clean.
There were some errors when running step # 6 of the quickguide (
http://nagios.sourceforge.net/docs/nagi ... buntu.html)
'Make' and 'make install' gave an output like;
make[2]: *** [check_http.o] Error 1
make[2]:Leaving Directory ....
make[1]: *** [all_recursive] Error1
check_http.c:268:16: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result
make[1]: *** [check_http.o] Error 1
make[1]:Leaving Directory ....
make: *** [install-recursive] Error 1
Any ideas?
Regards,
Gary
Re: Localhost server is showing as down
Posted: Mon Aug 20, 2012 3:50 pm
by slansing
If you are attempting to follow documentation for Nagios Core that is supplied by Nagios Enterprises directories may differ than those of the Ubuntu guide as they have a customized version of Nagios. We recently released an install guide for installing from source on Ubuntu which can be found here:
http://assets.nagios.com/downloads/nagi ... Source.pdf
Have you checked what was posted above? Proxy, VPN, etc?
Re: Localhost server is showing as down
Posted: Tue Aug 21, 2012 8:11 am
Thanks for your help. I used this install guide and I am now up and running.
Re: Localhost server is showing as down
Posted: Tue Aug 21, 2012 3:22 pm
by slansing
Excellent glad it worked out for you.