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