PDA

View Full Version : fresh install quite a few bugs...


triplef
30th March 2007, 21:14
bug #1.

line 62 = inter_check_delay_method=s

je crois c'est supposer etre service_inter_blahblah





===================
/usr/sbin/nagios /etc/nagios/nagios.cfg

Nagios 2.7
Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org)
Last Modified: 01-19-2007
License: GPL

Error in configuration file '/etc/nagios/nagios.cfg' - Line 62 (UNKNOWN VARIABLE)
Nagios 2.7 starting... (PID=469)




==============


bug #2

ca mets le contact_groups dans host_groups au lieu de hosts..

alors une fois manuellement re changer.. ca marche so so



===================================
/usr/sbin/nagios /etc/nagios/nagios.cfg

Nagios 2.7
Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org)
Last Modified: 01-19-2007
License: GPL

Nagios 2.7 starting... (PID=490)
Error: Invalid hostgroup object directive 'contact_groups'.
Error: Could not add object property in file '/etc/nagios/hostgroups.cfg' on line 24.
Bailing out due to one or more errors encountered in the configuration files. Run Nagios from the command line with the -v option to verify your config before restarting. (PID=490)

triplef
30th March 2007, 21:36
hmmm


ok apres une enqute minutieuse,, ;) grep -r

jai trouver pourquoi..

dans le fichier configNagios/formNagios.php

ca verifie la version oreon.. et ne trouve pas la bonne version.






## Part 11

$form->addElement('text', 'sleep_time', $lang["nag_intCheckSleepTm"], $attrsText3);
if ($oreon->user->get_version() == 1) {
/*$nagTab = array();
$nagTab[] = &HTML_QuickForm::createElement('radio', 'inter_check_delay_method', null, 'n', 'n');
$nagTab[] = &HTML_QuickForm::createElement('radio', 'inter_check_delay_method', null, 'd', 'd');
$nagTab[] = &HTML_QuickForm::createElement('radio', 'inter_check_delay_method', null, 's', 's');
$form->addGroup($nagTab, 'inter_check_delay_method', $lang["nag_intCheckDelMth"], ' ');*/
$form->addElement('text', 'inter_check_delay_method', $lang["nag_intCheckDelMth"], $attrsText3);
}
else if ($oreon->user->get_version() == 2) {
/*$nagTab = array();
$nagTab[] = &HTML_QuickForm::createElement('radio', 'service_inter_check_delay_method', null, 'n', 'n');
$nagTab[] = &HTML_QuickForm::createElement('radio', 'service_inter_check_delay_method', null, 'd', 'd');
$nagTab[] = &HTML_QuickForm::createElement('radio', 'service_inter_check_delay_method', null, 's', 's');
$form->addGroup($nagTab, 'service_inter_check_delay_method', $lang["nag_svIntCheckDelMth"], ' ');*/
$form->addElement('text', 'service_inter_check_delay_method', $lang["nag_svIntCheckDelMth"], $attrsText3);
$form->addElement('text', 'max_service_check_spread', $lang["nag_maxSvCheckSpread"], $attrsText3);
}

triplef
30th March 2007, 21:56
alors je reinstalle le tout avec vos install de nagios.. 2.5 nagios avec 1.4 oreon..

on va voir

triplef
30th March 2007, 22:34
meme chose


ligne 43 inter_check_delay_method=s

pwd
/usr/local/oreon/filesGeneration/nagiosCFG

svp on peux maider ?

rom
2nd April 2007, 10:42
Qu'avez vous mis comme valeur de Nagios dans "options generales => nagios" ?

Je pense que vous avez selectionne une version 1 de Nagios, et non 2...

triplef
25th April 2007, 20:15
exact merci beacoup...

trop bugger ce logiciel..

jai 2 host un group et 1 service..pas moyen de monter les autre sur les graphs..

c'est pas normal de debuger un soft pendant 5 jours..

WAtt
25th April 2007, 22:16
Bizarre, il me semble pourtant que durant l'installation (via navigateur) on nous demande de choisir la version de Nagios...

Next, Next, Finnish... ok, mais faut bien faire attention a toutes les questions :)