Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Nagios ping pending
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
derverstand
Guru
Guru


Joined: 15 Dec 2005
Posts: 511
Location: /dev/null

PostPosted: Thu Jul 05, 2007 10:52 pm    Post subject: Nagios ping pending Reply with quote

Hi,

Just installed nagios2 on my server and configured a node with
Code:
define host{
       use                     generic-host
       host_name               marvin
       address                 131.246.236.239
       register                1   
       }

Rest of the config is unchanged default. In the webinterface the status is pending all the time. It seems like the ping doesn't work. I tried the check-host-alive command manually with
Code:
/usr/lib/nagios/plugins/check_ping -H marvin -w 5000,100% -c 5000,100% -p 1

and this works nicely. What do I miss in my config?

/BR
Back to top
View user's profile Send private message
Princess Nell
l33t
l33t


Joined: 15 Apr 2005
Posts: 931

PostPosted: Fri Jul 06, 2007 3:57 pm    Post subject: Reply with quote

Have you run the "pre-flight check"?

nagios -v /etc/nagios/nagios.cfg

(or wherever the config lives on gentoo).
Back to top
View user's profile Send private message
LoSeR_5150
Guru
Guru


Joined: 20 Mar 2005
Posts: 455
Location: San Francisco, CA

PostPosted: Fri Jul 06, 2007 5:01 pm    Post subject: Reply with quote

Hosts.cfg example:

define host {
host_name marvin
alias marvin
address 131.246.236.239
use generic-host
contact_groups admins
}

Services.cfg example:

define service {
service_description PING
use generic-service
host_name marvin
check_command check_ping!100.0,20%!500.0,60%
}


I use nagios at my work and I love it, was slightly daunting task to set it all up the way I wanted it, but now it runs like a champ. If you have any further questions just ask. Also as Princess Nell suggested /usr/nagios/bin/nagios -V /etc/nagios/nagios.cfg is your BEST friend when configuring nagios. I run it every time I make a configuration change just to be safe, and it has saved my ass a couple of times where I forgot something, or mistyped something. Anyways best of luck
_________________
Opteron 1356@2.4Ghz
6GB DDR2 800Mhz
128MB Quadro NVS 210S
640GB Western Digital HD
*Gentoo-x86_64-2.6.30-r1

Opteron175@2.2GHz
2GB DDR 400MHz
256MB Quadro 1400 Go
(2) 80GB Segate HDs: RAID0
*Gentoo-x86_64-2.6.30-r1
Back to top
View user's profile Send private message
derverstand
Guru
Guru


Joined: 15 Dec 2005
Posts: 511
Location: /dev/null

PostPosted: Fri Jul 06, 2007 5:22 pm    Post subject: Reply with quote

Now both the PING and the check-host-alive command don't work. The config file looks fine with nagios2 -v CONFIG.

What else could it be?
Back to top
View user's profile Send private message
svetzal
n00b
n00b


Joined: 11 Jul 2007
Posts: 1

PostPosted: Wed Jul 11, 2007 11:22 am    Post subject: Driving me nuts Reply with quote

Yeah, I'm trying to set up 2 Nagios installations on 2 different Gentoo boxes and one works and the other exhibits the problem you saw.

Were you ever able to resolve it?

Right now, I'm just trying to sync up their configs (the box that didn't work was behind a version of GCC and a few other packages... can't see it really making a difference, but who knows).

Can't find any permissions differences in /usr/nagios, /var/nagios/ etc. nagios -v and /etc/init.d/nagios checkconfig show no errors, I've even just copied the config files from the working machine to the failing machine and it still won't change the PENDING status.

Very frustrating...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum