Nagios Core on Ubuntu LTS 10.04

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.
bookie56
Posts: 5
Joined: Sat Jul 27, 2013 9:34 am

Nagios Core on Ubuntu LTS 10.04

Post by bookie56 »

Hi Everyone!
New guy on the block...
I have tried several how to's and still having problems with a general install on the Ubuntu Server 10.04...
I have a test computer which I have installed Ubuntu 10.04 LTS on and then just ran sudo apt-get update.....with out upgrading any packages. I have tried to follow this how to from Mel Kham:
http://www.unixmen.com/install-nagios-u ... x-and-10x/

One thing that comes up as already existing:
Sudo mkdir /usr/local/nagos/etc

I continued with the rest of the How To using nagios-3.5.0 and nagos-plugins-1.4.16
I had a recursive error on installing the plugins...?
I ran preflight checks and nothing turned up...

On logging in to nagios I checked all hosts and services I found this error:

Code: Select all


[07-27-2013 16:31:21] SERVICE ALERT: localhost;HTTP;CRITICAL;HARD;1;(Return code of 127 is out of bounds - plugin may be missing)

Where do I start trying to fix this?

bookie56
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: Nagios Core on Ubuntu LTS 10.04

Post by jsmurphy »

Have a look at the /usr/local/nagios/libexec dir... if it is empty then you need to install the nagios-plugins package which provides all of the default check executables.
bookie56
Posts: 5
Joined: Sat Jul 27, 2013 9:34 am

Re: Nagios Core on Ubuntu LTS 10.04

Post by bookie56 »

Hi jsmurphy
I gathered that there was a problem with the fact that I had an error on installing the nagios plugins :D
I continued with the rest of the How To using nagios-3.5.0 and nagos-plugins-1.4.16
I had a recursive error on installing the plugins...?
I ran preflight checks and nothing turned up...
Why I am getting an error I don't know...

bookie56
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios Core on Ubuntu LTS 10.04

Post by abrist »

Try to reinstall the plugins, and when you get an error, post the error with the surrounding information relating to the failure.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios Core on Ubuntu LTS 10.04

Post by lmiltchev »

Many times installing the nagios plugins fails if you don't have the "libssl-dev" package installed. Run the following command:

Code: Select all

apt-get install libssl-dev
then try to install the plugins again.

Hope this helps.
Be sure to check out our Knowledgebase for helpful articles and solutions!
bookie56
Posts: 5
Joined: Sat Jul 27, 2013 9:34 am

Re: Nagios Core on Ubuntu LTS 10.04

Post by bookie56 »

Hi abrist!
OK! been a while since I had my head in a Linux machine :lol:
How would I post the error sequence from a server?

lmiltchev...
Well, I am glad you came by...that was the problem and now I have no errors showing from web interface...

Thank you :D

OK!
I think because of my title I have other questions here about Nagios on Ubuntu LTS 10.04...BUT if the management disagree then please say!


I appreciate there is an awful lot to read about nagios and I am wading through the pile...

What is the best web interface at the moment for nagios?

At the moment there are two machines that I will need to monitor and they are both running LTS 10.04 as far as I know. How do I monitor them from my computer which is outside of the network that both computers are on?

Is monitoring usually done via email? If so can someone guide me on that point?

With the standard nagios core install do I need to add any parameters for monitoring?

Sorry, for all the questions...Even if I am knew here I always think of others with similar questions and a general thread is almost always useful for others...

Thanks so far guys!


bookie56
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: Nagios Core on Ubuntu LTS 10.04

Post by yancy »

What is the best web interface at the moment for nagios?
Hands down the best web interface is NagiosXI
At the moment there are two machines that I will need to monitor and they are both running LTS 10.04 as far as I know. How do I monitor them from my computer which is outside of the network that both computers are on?
Sound like a passive agent would be best. Can both computers reach your Nagios machine?
Is monitoring usually done via email? If so can someone guide me on that point?
What do you mean by monitoring via email?
With the standard nagios core install do I need to add any parameters for monitoring?
You will need to add host and services depending on what you are monitoring. This will also need to be configured based on if you choose active or passive monitoring. Can you provide more detail on what you're looking to do?

-Yancy
bookie56
Posts: 5
Joined: Sat Jul 27, 2013 9:34 am

Re: Nagios Core on Ubuntu LTS 10.04

Post by bookie56 »

Hi yancy :D
Sorry, got my knickers in a twist....and before you jump to conclusions...NO i don't wear them :D
OKI have two computers to monitor and I thought that they had to have nagios installed on both of them and I was looking at receiving emails at home to let me know if there is anything that needs attending to on the nagios machines...

Monitoring would probably be mostly hardware...

I understand the concept of passive and active - but how was you thinking...? I wont be actively working on the nagios machines...have a partner who will look after program development etc for the customer. I will be looking after hardware etc.


bookie56
mmiltchev
Posts: 10
Joined: Tue Jun 18, 2013 2:16 pm

Re: Nagios Core on Ubuntu LTS 10.04

Post by mmiltchev »

You only need to install Nagios on the server. You must install an agent (such as NRPE, NRDS, so on) on the computer you want to monitor and then configure the agent for active or passive checks.

-Michael
bookie56
Posts: 5
Joined: Sat Jul 27, 2013 9:34 am

Re: Nagios Core on Ubuntu LTS 10.04

Post by bookie56 »

Hi mmiltchev :D
Thanks for the info....OK will check that out...

bookie56
Locked