Prosíme přihlašte se nebo zaregistrujte.

Přihlašte se svým uživatelským jménem a heslem.
Vaše pomoc je stále potřeba!

Autor Téma: Nagios2 problem pri instalaci  (Přečteno 2224 krát)

bak0nuk3m

  • Návštěvník
  • Příspěvků: 28
Nagios2 problem pri instalaci
« kdy: 01 Prosince 2007, 20:29:08 »
Ahoj vsem, instaluji Nagios2 a narazil jsem na problem, pres synaptic jsem nainstaloval nagios2 a vsechny potrebne balicky,
ve chvili kdy se pripojim pres web rozhrani, zobrazi se mi tato hlaska

Error: Could not read object configuration data!

Here are some things you should check in order to resolve this error:

   1. Verify configuration options using the -v command-line option to check for errors.
   2. Check the Nagios log file for messages relating to startup or status data errors.
   3. Make sure you've compiled the main program and the CGIs to use the same object data storage options (i.e. default text file or template-based file).

pomoci -v parametru jsem proveril konfiguracni soubor

/etc/nagios2$ nagios2 -v nagios.cfg

Nagios 2.9
Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org)
Last Modified: 04-10-2007
License: GPL

Reading configuration data...

Error: Cannot open resource file '/etc/nagios2/resource.cfg' for reading!
Running pre-flight check on configuration data...

Checking services...
        Checked 7 services.
Checking hosts...
        Checked 2 hosts.
Checking host groups...
        Checked 5 host groups.
Checking service groups...
        Checked 0 service groups.
Checking contacts...
        Checked 1 contacts.
Checking contact groups...
        Checked 1 contact groups.
Checking service escalations...
        Checked 0 service escalations.
Checking service dependencies...
        Checked 0 service dependencies.
Checking host escalations...
        Checked 0 host escalations.
Checking host dependencies...
        Checked 0 host dependencies.
Checking commands...
        Checked 85 commands.
Checking time periods...
        Checked 4 time periods.
Checking extended host info definitions...
        Checked 1 extended host info definitions.
Checking extended service info definitions...
        Checked 0 extended service info definitions.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors:   0

Things look okay - No serious problems were detected during the pre-flight check

Log file nagiosu ukazuje :

[1196537430] Nagios 2.9 starting... (PID=6458)
[1196537430] LOG VERSION: 2.0
[1196537430] Finished daemonizing... (New PID=6459)

Nevim kudy dal, vse se zda byt OK, primo na strankach nagiosu je postup jak zkompilovat
ale touto cestou se me nechce jit radeji bych sel pres balicek...

Nesetkal jste se nekdo s timto problemem ?
Jinak pouzivam apache2 s modulem cgi, fastcgi nemam nainstalovan

Diky za kazdou radu
Bak0

bak0nuk3m

  • Návštěvník
  • Příspěvků: 28
Re: Nagios2 problem pri instalaci
« Odpověď #1 kdy: 01 Prosince 2007, 20:32:17 »
jeste poznamka :

/etc/nagios2$ ps aux | grep nagios
nagios    6459  0.0  0.1  14064  1520 ?        SNsl 20:30   0:00 /usr/sbin/nagios2 -d /etc/nagios2/nagios.cfg
root      6469  0.1  1.5  38864 16308 ?        Ss   20:30   0:00 bluefish /var/log/nagios2/nagios.log
1000      6530  0.0  0.0   2976   764 pts/0    S+   20:36   0:00 grep nagios

Martin - ViPEr*CZ*

Re: Nagios2 problem pri instalaci
« Odpověď #2 kdy: 01 Prosince 2007, 20:35:09 »
Nejsou na tom root práva???

Error: Cannot open resource file '/etc/nagios2/resource.cfg' for reading!

Zkuste to se sudo  ;)
Open source is gold way... Mint 17.2, Debian 8.1 Jessie| Ubuntu Wiki (návody) | Google vyhledávač | Qt4 návody

bak0nuk3m

  • Návštěvník
  • Příspěvků: 28
Re: Nagios2 problem pri instalaci
« Odpověď #3 kdy: 01 Prosince 2007, 20:41:28 »
/etc/nagios2$ sudo nagios2 -v nagios.cfg

Nagios 2.9
Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org)
Last Modified: 04-10-2007
License: GPL

Reading configuration data...

Running pre-flight check on configuration data...

Checking services...
        Checked 7 services.
Checking hosts...
        Checked 2 hosts.
Checking host groups...
        Checked 5 host groups.
Checking service groups...
        Checked 0 service groups.
Checking contacts...
        Checked 1 contacts.
Checking contact groups...
        Checked 1 contact groups.
Checking service escalations...
        Checked 0 service escalations.
Checking service dependencies...
        Checked 0 service dependencies.
Checking host escalations...
        Checked 0 host escalations.
Checking host dependencies...
        Checked 0 host dependencies.
Checking commands...
        Checked 85 commands.
Checking time periods...
        Checked 4 time periods.
Checking extended host info definitions...
        Checked 1 extended host info definitions.
Checking extended service info definitions...
        Checked 0 extended service info definitions.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors:   0

Things look okay - No serious problems were detected during the pre-flight check

bak0nuk3m

  • Návštěvník
  • Příspěvků: 28
Re: Nagios2 problem pri instalaci
« Odpověď #4 kdy: 01 Prosince 2007, 20:41:50 »
To same, nagios samo startuji se sudo  :)

Martin - ViPEr*CZ*

Re: Nagios2 problem pri instalaci
« Odpověď #5 kdy: 01 Prosince 2007, 20:47:57 »
No teď to, ale tu chybu už nenapsalo??? Nikde ji tam nečtu...
Open source is gold way... Mint 17.2, Debian 8.1 Jessie| Ubuntu Wiki (návody) | Google vyhledávač | Qt4 návody

bak0nuk3m

  • Návštěvník
  • Příspěvků: 28
Re: Nagios2 problem pri instalaci
« Odpověď #6 kdy: 01 Prosince 2007, 20:49:38 »
protoze jsem to udelal se sudo :) pred tim to jenom nemohlo nacist jeden z conf souboru
tzn nagios stale nebezi ale konfigurace se zda byt zcela OK :]

Ten vypis je jen kontrola conf souboru, nagios stale hlasi stejnou chybu a nebezi

 

Provoz zaštiťuje spolek OpenAlt.