Unfortunately I still have the same issue even after creating a new
directory, cloning the git master again and rerunning $ git submodule init
&& git submodule update:
/usr/src/git-master/icinga-core$ sudo git submodule init && git submodule
update
Submodule 'docbook' (git://git.icinga.org/icinga-doc.git) registered for
path 'docbook'
Submodule 'module/icinga-api' (git://git.icinga.org/icinga-api.git)
registered for path 'module/icinga-api'
Directory 'docbook' exists, but is neither empty nor a git repository
/usr/src/git-master/icinga-core$ sudo make install-api
Sorry, Icinga API not available!
Check md5 and source in ./module/icinga-api
If using GIT, try # git submodule init && git submodule update
2010/9/27 Michael Friedrich <[email protected]>
> Khoury Brazil wrote:
>
> Of course. That was the result *after* running the recommended command. See
> below:
>
> /usr/src/icinga-core-git-master$ sudo git submodule init && git submodule
> update
> Submodule 'docbook' (git://git.icinga.org/icinga-doc.git) registered for
> path 'docbook'
> Submodule 'module/icinga-api' (git://git.icinga.org/icinga-api.git)
> registered for path 'module/icinga-api'
> Directory 'docbook' exists, but is neither empty nor a git repository
>
>
> Seems to be an error with the docbook submodule in your clone (which caused
> submodule update not to happen). If possible, remove this clone and try a
> new one. I just did, and updating the submodules after initialization works
> just fine.
>
> ~/icinga/temp/icinga-core $ git submodule init && git submodule update
>
> Submodule 'docbook' (git://git.icinga.org/icinga-doc.git) registered for
> path 'docbook'
> Submodule 'module/icinga-api' (git://git.icinga.org/icinga-api.git)
> registered for path 'module/icinga-api'
> Cloning into docbook...
> remote: Counting objects: 2942, done.
> remote: Compressing objects: 100% (2552/2552), done.
> remote: Total 2942 (delta 1986), reused 704 (delta 384)
> Receiving objects: 100% (2942/2942), 9.33 MiB | 7.44 MiB/s, done.
> Resolving deltas: 100% (1986/1986), done.
> Submodule path 'docbook': checked out
> '6ea320d974e43cd815b175ca392db85ff3a07e98'
> Cloning into module/icinga-api...
> remote: Counting objects: 8528, done.
> remote: Compressing objects: 100% (5352/5352), done.
> remote: Total 8528 (delta 7206), reused 3663 (delta 2884)
> Receiving objects: 100% (8528/8528), 3.24 MiB, done.
> Resolving deltas: 100% (7206/7206), done.
> Submodule path 'module/icinga-api': checked out
> 'cbf195afa31cf824bf6d32999101eb1bf1877036'
>
>
> Kind regards,
> Michael
>
>
>
> /usr/src/icinga-core-git-master$ sudo make install-api
>
> Sorry, Icinga API not available!
> Check md5 and source in ./module/icinga-api
> If using GIT, try # git submodule init && git submodule update
>
>
> 2010/9/27 Michael Friedrich <[email protected]>
>
>> Khoury Brazil wrote:
>>
>> Spoke too soon:
>>
>> /usr/src/icinga-core-git-master$ sudo make install-api
>>
>> Sorry, Icinga API not available!
>> Check md5 and source in ./module/icinga-api
>> If using GIT, try # git submodule init && git submodule update
>>
>> Should I delete this clone and reclone to a fresh directory?
>>
>>
>> Just do what it says - if it is a fresh clone, you will need the
>> submodules being initialized. That is why I've added that error output and
>> hint to the Makefile ;-)
>>
>> Kind regards,
>> Michael
>>
>>
>>
>>
>> On Mon, Sep 27, 2010 at 1:55 AM, Khoury Brazil <[email protected]>wrote:
>>
>>> I did change back to the main directory. Sorry, it would have been better
>>> to actually send a full copy of what I had done. At any rate, it appears to
>>> have worked now:
>>>
>>> <removed>@<removed>:/usr/src/icinga-core-git-master$ sudo git pull
>>> origin master
>>> remote: Counting objects: 71, done.
>>> remote: Compressing objects: 100% (42/42), done.
>>> remote: Total 42 (delta 29), reused 0 (delta 0)
>>> Unpacking objects: 100% (42/42), done.
>>> From git://git.icinga.org/icinga-core
>>> * branch master -> FETCH_HEAD
>>> Updating 14c1257..73febd3
>>> Fast-forward
>>> module/icinga-api | 2 +-
>>> t-tap/smallconfig/{nagios.cfg => icinga.cfg} | 36
>>> ++++++++--------
>>> t-tap/smallconfig/minimal.cfg | 20 +++++-----
>>> t-tap/var/icinga.log.dummy | 2 +-
>>> t/920-nocontactgroup.t | 4 +-
>>> t/etc/cgi-with-generated-status.cfg | 10 ++--
>>> t/etc/cgi.cfg | 8 ++--
>>> t/etc/icinga-no-contactgroup.cfg | 42
>>> ++++++++++----------
>>> t/etc/icinga-no-service.cfg | 42
>>> ++++++++++----------
>>> t/etc/icinga-no-status.cfg | 36
>>> ++++++++--------
>>> ...status.cfg => icinga-with-generated-status.cfg} | 36
>>> ++++++++--------
>>> t/etc/icinga.cfg | 36
>>> ++++++++--------
>>> t/etc/minimal.cfg | 6 +-
>>> t/etc/no-contactgroup-error.cfg | 18 ++++----
>>> t/etc/no-service-error.cfg | 4 +-
>>> t/var/objects.precache.expected | 6 +-
>>> 16 files changed, 154 insertions(+), 154 deletions(-)
>>> rename t-tap/smallconfig/{nagios.cfg => icinga.cfg} (98%)
>>> rename t/etc/{nagios-with-generated-status.cfg =>
>>> icinga-with-generated-status.cfg} (98%)
>>>
>>> I'll see how it goes using this. Thanks!
>>>
>>>
>>>
>>> 2010/9/27 Michael Friedrich <[email protected]>
>>>
>>> Khoury Brazil wrote:
>>>>
>>>> Hi,
>>>>
>>>> This is what I get after running the final command:
>>>>
>>>> $git status
>>>> # On branch master
>>>> # Your branch is ahead of 'origin/master' by 31 commits.
>>>> #
>>>> nothing to commit (working directory clean)
>>>>
>>>>
>>>> did you change back to icinga-core main directory? i think you are
>>>> still within ./module/icinga-api - do a $ pwd
>>>> changing back to main dir ($ cd ../..) and then running $ git status
>>>> should tell you what i posted before.
>>>>
>>>> Either way, you will have the latest icinga-api checked out.
>>>>
>>>> If it did not work, I have now updated the submodule pointer in
>>>> icinga-core.git master, so you can check it out normally
>>>>
>>>> $ cd icinga-core
>>>> $ git pull origin master
>>>>
>>>> (would be great testing this, especially on solaris as I have fixed
>>>> major core dump issues - see #702)
>>>>
>>>> Kind regards,
>>>> Michael
>>>>
>>>>
>>>>
>>>> Thank you for your assistance.
>>>>
>>>> Best,
>>>> Khoury
>>>>
>>>>
>>>> On Sat, Sep 25, 2010 at 5:08 AM, Michael Friedrich <
>>>> [email protected]> wrote:
>>>>
>>>>> On 2010-09-25 05:50, Khoury Brazil wrote:
>>>>> > Hi,
>>>>> >
>>>>> > I'm sorry for the late reply. Here's what I have from the
>>>>> app/data/log:
>>>>> >
>>>>> > [Thu Sep 23 18:02:05 2010] [fatal] Uncaught AppKitPHPError: PHP Error
>>>>> > Declaration of IcingaApiConnectionDatabase::checkConfig() should be
>>>>> > compatible with that of IcingaApiConnection::checkConfig()
>>>>> >
>>>>> (/usr/local/icinga/share/icinga-api/objects/connection/IcingaApiConnectionDatabase.php:10)
>>>>> >
>>>>> (/usr/local/icinga-web/app/modules/AppKit/lib/logging/AppKitExceptionHandler.class.php:20)
>>>>> >
>>>>> > Both icinga-web and icinga were cloned from the git master.
>>>>>
>>>>> There's one slight problem with the icinga-api as it is a submodule of
>>>>> icinga-core.git - the submodule pointer has not been updated, so you
>>>>> will still get an old version of icinga-api. We do not update that
>>>>> pointer regularly, only if there's a stable api master available.
>>>>>
>>>>> but there's a solution for your problem, of course.
>>>>>
>>>>> $ cd icinga-core
>>>>> $ git checkout master
>>>>> $ git pull origin master
>>>>> $ cd module/icinga-api
>>>>> $ git checkout master
>>>>> $ git pull origin master
>>>>> $ cd ../..
>>>>> $ git status
>>>>>
>>>>> should tell you that module/icinga-api has been modified and you'll
>>>>> have
>>>>> the latest icinga-api git master available to be installed by make
>>>>> install-api
>>>>>
>>>>> kind regards,
>>>>> Michael
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> > For the install of icinga I used these configure arguments:
>>>>> > ./configure --with-command-group=icinga-cmd --enable-idoutils
>>>>> >
>>>>> > Make was run like so:
>>>>> > make install-api
>>>>> >
>>>>> > Thanks,
>>>>> > Khoury
>>>>> >
>>>>> >
>>>>> > 2010/9/21 Jannis Moßhammmer <[email protected]
>>>>> > <mailto:[email protected]>>
>>>>> >
>>>>> > Hi,
>>>>> >
>>>>> > sorry, the testing script is at this point not up to date (I
>>>>> > generally update it after the last changes are done), but you can
>>>>> > get it working by replacing the '#' with ';' in test.properties.
>>>>> >
>>>>> > No items sound like the api doesn't work. Do you have any errors
>>>>> > in app/data/log or your apache/php error log?
>>>>> >
>>>>> > Regards,
>>>>> >
>>>>> > Jannis
>>>>> >
>>>>> >
>>>>> > On 21.09.2010 03:44, Khoury Brazil wrote:
>>>>> >> Hi,
>>>>> >>
>>>>> >> I've installed icinga-web from the git master and seem to be
>>>>> >> stuck. When I authenticate with the default user it opens the
>>>>> >> main page with the bottom section (log) just 'Loading...'
>>>>> >> forever. If I attempt to load any of the panels from the Data
>>>>> >> section I get more of the same. When I run 'php
>>>>> >> icingaWebTesting.php' I get this:
>>>>> >>
>>>>> >> PHPUnit @package_version@ by Sebastian Bergmann.
>>>>> >>
>>>>> >> -> 500 internal server error!
>>>>> >>
>>>>> >> === Error ===
>>>>> >> Uncaught exception AppKitPHPError thrown!
>>>>> >>
>>>>> >> === Message ===
>>>>> >> PHP Error
>>>>> >>
>>>>> parse_ini_file(/usr/local/icinga-web/etc/..//etc/tests/test.properties):
>>>>> >> failed to open stream: No such file or directory
>>>>> >>
>>>>> (/usr/local/icinga-web/etc/tests/tests/installation/userRightsTest.php:10)
>>>>> >>
>>>>> >> === Stacktrace ===
>>>>> >> #0 [internal function]:
>>>>> >> AppKitExceptionHandler::phpErrorException(2,
>>>>> >> 'parse_ini_file(...', '/usr/local/icin...', 10, Array)
>>>>> >> #1
>>>>> >>
>>>>> /usr/local/icinga-web/etc/tests/tests/installation/userRightsTest.php(10):
>>>>> >> parse_ini_file('/usr/local/icin...')
>>>>> >> #2
>>>>> >>
>>>>> /usr/local/icinga-web/lib/agavi/src/vendor/PHPUnit/Framework/TestCase.php(701):
>>>>> >> userRightsTest->setUp()
>>>>> >> #3
>>>>> >>
>>>>> /usr/local/icinga-web/lib/agavi/src/vendor/PHPUnit/Framework/TestResult.php(687):
>>>>> >> PHPUnit_Framework_TestCase->runBare()
>>>>> >> #4
>>>>> >>
>>>>> /usr/local/icinga-web/lib/agavi/src/vendor/PHPUnit/Framework/TestCase.php(653):
>>>>> >> PHPUnit_Framework_TestResult->run(Object(userRightsTest))
>>>>> >> #5
>>>>> >>
>>>>> /usr/local/icinga-web/lib/agavi/src/vendor/PHPUnit/Framework/TestSuite.php(757):
>>>>> >>
>>>>> PHPUnit_Framework_TestCase->run(Object(PHPUnit_Framework_TestResult))
>>>>> >> #6
>>>>> >>
>>>>> /usr/local/icinga-web/lib/agavi/src/vendor/PHPUnit/Framework/TestSuite.php(732):
>>>>> >> PHPUnit_Framework_TestSuite->runTest(Object(userRightsTest),
>>>>> >> Object(PHPUnit_Framework_TestResult))
>>>>> >> #7
>>>>> >>
>>>>> /usr/local/icinga-web/lib/agavi/src/vendor/PHPUnit/Framework/TestSuite.php(675):
>>>>> >>
>>>>> PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult),
>>>>> >> false, Array, Array, false)
>>>>> >> #8
>>>>> >>
>>>>> /usr/local/icinga-web/lib/agavi/src/vendor/PHPUnit/Framework/TestSuite.php(675):
>>>>> >>
>>>>> PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult),
>>>>> >> false, Array, Array, false)
>>>>> >> #9
>>>>> >>
>>>>> /usr/local/icinga-web/lib/agavi/src/vendor/PHPUnit/TextUI/TestRunner.php(350):
>>>>> >>
>>>>> PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult),
>>>>> >> false, Array, Array, false)
>>>>> >> #10
>>>>> >>
>>>>> /usr/local/icinga-web/lib/agavi/src/testing/AgaviTesting.class.php(101):
>>>>> >> PHPUnit_TextUI_TestRunner->doRun(Object(AgaviTestSuite), Array)
>>>>> >> #11 /usr/local/icinga-web/etc/tests/icingaWebTesting.php(66):
>>>>> >> AgaviTesting::dispatch(Array)
>>>>> >>
>>>>> >> Any ideas?
>>>>> >>
>>>>> >> Thanks,
>>>>> >> Khoury
>>>>> >>
>>>>> >>
>>>>> >>
>>>>> ------------------------------------------------------------------------------
>>>>> >> Start uncovering the many advantages of virtual appliances
>>>>> >> and start using them to simplify application deployment and
>>>>> >> accelerate your shift to cloud computing.
>>>>> >> http://p.sf.net/sfu/novell-sfdev2dev
>>>>> >>
>>>>> >>
>>>>> >> _______________________________________________
>>>>> >> icinga-users mailing list
>>>>> >> [email protected] <mailto:
>>>>> [email protected]>
>>>>> >> https://lists.sourceforge.net/lists/listinfo/icinga-users
>>>>> >>
>>>>> >
>>>>> >
>>>>> >
>>>>> >
>>>>> > --
>>>>> > Jannis Moßhammer
>>>>> > Application Developer
>>>>> >
>>>>> > NETWAYS GmbH | Deutschherrnstr. 15-19 | D-90429 Nürnberg
>>>>> > Tel: +49 911 92885-0 | Fax: +49 911 92885-77
>>>>> > GF: Julian Hein | AG Nürnberg HRB18461
>>>>> >
>>>>> > http://www.netways.de |[email protected] <mailto:
>>>>> [email protected]>
>>>>> >
>>>>> > ** NETWAYS Open Source Monitoring Conference 2010 | Nürnberg, 06.
>>>>> und 07. Oktober 2010 |http://www.netways.de/osmc **
>>>>> >
>>>>> >
>>>>> >
>>>>> >
>>>>> ------------------------------------------------------------------------------
>>>>> > Start uncovering the many advantages of virtual appliances
>>>>> > and start using them to simplify application deployment and
>>>>> > accelerate your shift to cloud computing.
>>>>> > http://p.sf.net/sfu/novell-sfdev2dev
>>>>> > _______________________________________________
>>>>> > icinga-users mailing list
>>>>> > [email protected]
>>>>> > <mailto:[email protected]>
>>>>> > https://lists.sourceforge.net/lists/listinfo/icinga-users
>>>>> >
>>>>> >
>>>>> >
>>>>> >
>>>>> ------------------------------------------------------------------------------
>>>>> > Start uncovering the many advantages of virtual appliances
>>>>> > and start using them to simplify application deployment and
>>>>> > accelerate your shift to cloud computing.
>>>>> > http://p.sf.net/sfu/novell-sfdev2dev
>>>>> >
>>>>> >
>>>>> > _______________________________________________
>>>>> > icinga-users mailing list
>>>>> > [email protected]
>>>>> > https://lists.sourceforge.net/lists/listinfo/icinga-users
>>>>> >
>>>>>
>>>>>
>>>>> --
>>>>> DI (FH) Michael Friedrich
>>>>>
>>>>> Vienna University Computer Center
>>>>> Universitaetsstrasse 7 A-1010 Vienna, Austria
>>>>>
>>>>> email: [email protected]
>>>>> phone: +43 1 4277 14359
>>>>> fax: +43 1 4277 14279
>>>>> web: http://www.univie.ac.at/zid
>>>>>
>>>>> Icinga Core& IDOUtils Developer
>>>>> http://www.icinga.org
>>>>>
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Start uncovering the many advantages of virtual appliances
>>>>> and start using them to simplify application deployment and
>>>>> accelerate your shift to cloud computing.
>>>>> http://p.sf.net/sfu/novell-sfdev2dev
>>>>> _______________________________________________
>>>>> icinga-users mailing list
>>>>> [email protected]
>>>>> https://lists.sourceforge.net/lists/listinfo/icinga-users
>>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Start uncovering the many advantages of virtual appliances
>>>> and start using them to simplify application deployment and
>>>> accelerate your shift to cloud
>>>> computing.http://p.sf.net/sfu/novell-sfdev2dev
>>>>
>>>>
>>>> _______________________________________________
>>>> icinga-users mailing
>>>> [email protected]https://lists.sourceforge.net/lists/listinfo/icinga-users
>>>>
>>>>
>>>>
>>>> --
>>>> DI (FH) Michael Friedrich
>>>>
>>>> Vienna University Computer Center
>>>> Universitaetsstrasse 7 A-1010 Vienna, Austria
>>>>
>>>> email: [email protected]
>>>> phone: +43 1 4277 14359
>>>> fax: +43 1 4277 14279
>>>> web: http://www.univie.ac.at/zid
>>>>
>>>> Icinga Core & IDOUtils Developerhttp://www.icinga.org
>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Start uncovering the many advantages of virtual appliances
>>>> and start using them to simplify application deployment and
>>>> accelerate your shift to cloud computing.
>>>> http://p.sf.net/sfu/novell-sfdev2dev
>>>> _______________________________________________
>>>> icinga-users mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/icinga-users
>>>>
>>>>
>>>
>>
>> ------------------------------------------------------------------------------
>> Start uncovering the many advantages of virtual appliances
>> and start using them to simplify application deployment and
>> accelerate your shift to cloud computing.http://p.sf.net/sfu/novell-sfdev2dev
>>
>>
>> _______________________________________________
>> icinga-users mailing
>> [email protected]https://lists.sourceforge.net/lists/listinfo/icinga-users
>>
>>
>>
>> --
>> DI (FH) Michael Friedrich
>>
>> Vienna University Computer Center
>> Universitaetsstrasse 7 A-1010 Vienna, Austria
>>
>> email: [email protected]
>> phone: +43 1 4277 14359
>> fax: +43 1 4277 14279
>> web: http://www.univie.ac.at/zid
>>
>> Icinga Core & IDOUtils Developerhttp://www.icinga.org
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Start uncovering the many advantages of virtual appliances
>> and start using them to simplify application deployment and
>> accelerate your shift to cloud computing.
>> http://p.sf.net/sfu/novell-sfdev2dev
>> _______________________________________________
>> icinga-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/icinga-users
>>
>>
>
> ------------------------------------------------------------------------------
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing.http://p.sf.net/sfu/novell-sfdev2dev
>
>
> _______________________________________________
> icinga-users mailing
> [email protected]https://lists.sourceforge.net/lists/listinfo/icinga-users
>
>
>
> --
> DI (FH) Michael Friedrich
>
> Vienna University Computer Center
> Universitaetsstrasse 7 A-1010 Vienna, Austria
>
> email: [email protected]
> phone: +43 1 4277 14359
> fax: +43 1 4277 14279
> web: http://www.univie.ac.at/zid
>
> Icinga Core & IDOUtils Developerhttp://www.icinga.org
>
>
>
> ------------------------------------------------------------------------------
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing.
> http://p.sf.net/sfu/novell-sfdev2dev
> _______________________________________________
> icinga-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/icinga-users
>
>
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/icinga-users