PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Nagios Hosts immer im Status "Pending"



Phimay
14.07.06, 22:51
Hallo,

ich habe Nagios installiert und konfiguriert. Es hat auch gestartet die Weboberfläche kann ich auch benutzen etc.
Die hosts die ich konfiguriert habe bleiben allerdings immer im Status "Pending".
Hier mal ein paar Auszüge aus den meines erachtens wichtigsten Config Files:



# hosts.cfg
define host{
host_name wlanap
hostgroups netzwerkkomponenten
alias wlanap
address 192.168.2.52
check_command check-host-alive
max_check_attempts 3
check_period 24x7
contact_groups localadmins
notification_interval 120
notification_period 24x7
notification_options d,u,r,f
}




# services.cfg
define service{
host_name wlanap,dslrouter
service_description PING
servicegroups all-ping
check_command check_ping!100.0,20%!500.0,60%
max_check_attempts 2
normal_check_interval 2
retry_check_interval 1
check_period 24x7
notification_interval 120
notification_period 24x7
notification_options w,u,c,r,f
contact_groups localadmins
}


Ich vermute das sollte alles richtig sein. (Aus einem Buch abgetippt :-)).

Weiß jemand wie man Nagios dazu bringt den zu checken?
Muss man die Hosts evtl. einen Initialen Status irgendwie geben??

Danke für eure hilfe.

Gruß
Phil

Phimay
14.07.06, 23:40
Ich habe Nagios nun dazu bewegen können von dem Status Pening nach Up zu kommen indem ich in der Weboberfläche auf den host und dann auf "Re-schedule the next check of this host" geklickt habe. Leider aktualisiert er immer noch nicht automatisch.
Weiß jemand Rat? :confused:

Gruß
Phil

bla!zilla
15.07.06, 09:51
Welche Distri, welche Nagios-Version? Was sagen die Logs (Nagios und System)?

psy
15.07.06, 11:02
hast du in der datei timeperiods.cfg auch die entsprechenden perioden für 24x7 gesetzt?

also bspw.



define timeperiod{
timeperiod_name 24x7
alias 24 Hours A Day, 7 Days A Week
sunday 00:00-24:00
monday 00:00-24:00
tuesday 00:00-24:00
wednesday 00:00-24:00
thursday 00:00-24:00
friday 00:00-24:00
saturday 00:00-24:00
}

ciao
psy

Phimay
15.07.06, 12:36
Ups,

danke psy das wars!

Gruß
Phil