Nagios® Core™ Version 3.2.1 Problem

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.
jonjimar
Posts: 6
Joined: Sat Feb 05, 2011 1:39 pm

Nagios® Core™ Version 3.2.1 Problem

Post by jonjimar »

I'm trying to add a new host with the Nagios Administrator, but i can see the host in the principal panel of nagios.

Someone can help me with that, i don't know what i need to do for can monitoring a lot of servers that i have in linux.

Thanks a lot for the help.

Jonathan J.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Nagios® Core™ Version 3.2.1 Problem

Post by mguthrie »

Check on the following things:

Is the configuration file being included by the main nagios.cfg file.

Has the configuration been verified so Nagios can restart correctly?

Have you restarted Nagios now that the new config is in place and included in the list of config files and directories?
jonjimar
Posts: 6
Joined: Sat Feb 05, 2011 1:39 pm

Re: Nagios® Core™ Version 3.2.1 Problem

Post by jonjimar »

thanks.

But how I can restart nagios via ssh?


Thanks a lot.

Jonathan J.
jonjimar
Posts: 6
Joined: Sat Feb 05, 2011 1:39 pm

Re: Nagios® Core™ Version 3.2.1 Problem

Post by jonjimar »

I tried with the command but have the error:

root@nagios3:~# /etc/rc.d/init.d/nagios reload
-bash: /etc/rc.d/init.d/nagios: No such file or directory
root@nagios3:~#

Too, I tried through the web interface, but i still see only la localhost created by the application.


Jonathan J.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Nagios® Core™ Version 3.2.1 Problem

Post by mguthrie »

What distro are you on, and what installation method did you use (yum, apt, source)? The directory locations are different dependent on distro and installation method.
jonjimar
Posts: 6
Joined: Sat Feb 05, 2011 1:39 pm

Re: Nagios® Core™ Version 3.2.1 Problem

Post by jonjimar »

I used a jumbox image...
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Nagios® Core™ Version 3.2.1 Problem

Post by mguthrie »

I'd see if the place you got the image from has any documentation. The downside of someone else's package virtual appliance for Nagios is that we don't know how they've set it up, either the OS or Nagios.

You need to find your nagios binary, run something to the effect of:
<pathto>/nagios -v <pathto>/nagios.cfg
to verify your configuration. If it passes verification, then you can restart nagios if you find the init script, or just do:
killall nagios
<pathto>/nagios -d <pathto>/nagios.cfg
to start the Nagios daemon
jonjimar
Posts: 6
Joined: Sat Feb 05, 2011 1:39 pm

Re: Nagios® Core™ Version 3.2.1 Problem

Post by jonjimar »

I re-install my server, with ubunto 10 and then the nagios and plugins...

In this moment all is working but the server don't send email when a server was out...

How I can configure this part?


Jonathan J.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Nagios® Core™ Version 3.2.1 Problem

Post by mguthrie »

Can you post your host config, and the contact config that's assigned to that host?
jonjimar
Posts: 6
Joined: Sat Feb 05, 2011 1:39 pm

Re: Nagios® Core™ Version 3.2.1 Problem

Post by jonjimar »

contacts.cfg

define contact{
contact_name nagiosadmin ; Short name of user
use generic-contact ; Inherit default values from generic-contact template (defined above)
alias Nagios Admin ; Full name of user

email <email> ; <<***** CHANGE THIS TO YOUR EMAIL ADDRESS ******
}

define contactgroup{
contactgroup_name admins
alias Nagios Administrators
members nagiosadmin
}
Attachments
nagios.rar
(12.33 KiB) Downloaded 112 times
Locked