View previous topic :: View next topic |
Author |
Message |
derverstand Guru


Joined: 15 Dec 2005 Posts: 511 Location: /dev/null
|
Posted: Thu Jul 05, 2007 10:52 pm Post subject: Nagios ping pending |
|
|
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 |
|
 |
Princess Nell l33t


Joined: 15 Apr 2005 Posts: 931
|
Posted: Fri Jul 06, 2007 3:57 pm Post subject: |
|
|
Have you run the "pre-flight check"?
nagios -v /etc/nagios/nagios.cfg
(or wherever the config lives on gentoo). |
|
Back to top |
|
 |
LoSeR_5150 Guru


Joined: 20 Mar 2005 Posts: 455 Location: San Francisco, CA
|
Posted: Fri Jul 06, 2007 5:01 pm Post subject: |
|
|
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 |
|
 |
derverstand Guru


Joined: 15 Dec 2005 Posts: 511 Location: /dev/null
|
Posted: Fri Jul 06, 2007 5:22 pm Post subject: |
|
|
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 |
|
 |
svetzal n00b

Joined: 11 Jul 2007 Posts: 1
|
Posted: Wed Jul 11, 2007 11:22 am Post subject: Driving me nuts |
|
|
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 |
|
 |
|