Localhost server is showing as down

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
mark@amor
Posts: 1
Joined: Wed Aug 01, 2012 9:45 am

Localhost server is showing as down

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Localhost server is showing as down

Post 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?
[email protected]
Posts: 4
Joined: Fri Aug 17, 2012 2:21 pm

Re: Localhost server is showing as down

Post by [email protected] »

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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Localhost server is showing as down

Post 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?
[email protected]
Posts: 4
Joined: Fri Aug 17, 2012 2:21 pm

Re: Localhost server is showing as down

Post by [email protected] »

Thanks for your help. I used this install guide and I am now up and running.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Localhost server is showing as down

Post by slansing »

Excellent glad it worked out for you.
Locked