I've started as nagios user opsview-web (catalyst) with this commands in debug mode:
cd /usr/local/opsview-web/
/usr/bin/perl -w script/opsview_web_server.pl -d --pidfile /var/run/opsview/opsview-web.pid

I also changed /usr/local/opsview-web/etc/Log4perl.conf :

log4perl.rootLogger=DEBUG, LOGFILE, SCREEN
log4perl.logger.Opsview.Web.Controller.Root=DEBUG, LOGFILE
log4perl.logger.Catalyst.*=DEBUG, LOGFILE

If I get from the browser directly the atom page (http://hostname:3000/atom) get:

INFO - Opsview::Web powered by Catalyst 5.80021
You can connect to your server at http://nocvos2z1:3000
Use of uninitialized value in list assignment at /usr/local/nagios/perl/lib/Catalyst/Engine/HTTP.pm line 394. Use of uninitialized value in list assignment at /usr/local/nagios/perl/lib/Catalyst/Engine/HTTP.pm line 394.
Out of memory!

And the opsview_web_server.pl command exits. The logfile /var/log/opsview/opsview-web.log ends with the line:
You can connect to your server at http://nocvos2z1:3000
so it's not useful.

How I can get more useful information about this?

Thanks,
Emilio


Il 10/05/2010 16:28, Emilio Scalise ha scritto:
Hi,
I cannot get atom feeds on Solaris 10 (SPARC and x86) Opsview Community version 3.7.0.
I always get an empty page.
The issue is the same as the one reported on:
http://lists.opsview.org/lurker/thread/20090813.191407.767cf026.en.html#20090813.191407.767cf026

The other user has not told if he had a solution to the problem or not..

I tried to hack the code in:
/usr/local/opsview-web/lib/Opsview/Web/Controller/Root.pm

the method "atom" is the one responsible to the generation of the feed.
To see if there is any perl library missing I tried with the following code to generate an atom feed and it works.

If I place some debug lines like:
$c->log->debug('xxxxxxxx');

I've found that code after the line that says:
# We have to call again. This is because the user is not found in auto, until the above has been called
    $c->forward("/set_language");

is never reached. That's strange.

Anyone of you has got atom working on Solaris? Is it a Catalyst problem?


Thanks,
Emilio

-----------------------------------------------------------------------------------------------------------------------------
# cat /var/log/nagios/provaatom.pl
#!/usr/bin/perl

use lib "/usr/local/nagios/perl/lib";
use warnings;
use strict;
use XML::Atom::SimpleFeed;

my $atom = XML::Atom::SimpleFeed->new(
    title    => 'Example Atom Feed',
    link     => 'http://www.example.com/',
#    modified => '2005-10-11T21:46:00Z',
    author => {
                name => 'Ian Malpass'
              }
);

$atom->add_entry(
    title    => 'Hello world',
    link     => 'http://www.example.com/hello.html',
    content  => 'Greetings to you, world!',
#    modified => '2005-10-11T21:46:00Z',
);

open ATOM, '>example-atom.xml'
    or die "Can't write to example-atom.xml: $!";
$atom->print( \*ATOM );


_______________________________________________
Opsview-users mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-users

Reply via email to