In the url, add state=1&state=2&state=3 to filter by those states. Alternatively, in 3.3.2, you can click on the failure state to get that filter

Ton

On 24 Oct 2009, at 18:17, "MaFFe Jan" <[email protected]> wrote:

Dear Opsview Users,

I would like to use the opsview viewport, but I want only to see not "OK" message, for example , Critical, Warning etc. I found options to set Params in file /usr/local/opsview-web/lib/ Opsview/Web/Controller/Viewport.pm
See Bold parameter.
Now only state 2 (critical) is visible but I would also want state 1 and maybe 3.
But tried to add this but it doesn't work.


sub status : Path : Args(1) {
    my ( $self, $c, $name ) = @_;
    $c->stash(
        additional_template_paths => [
$c->path_to( 'root', 'viewport', 'style' )- >stringify, # Must come before viewport to pick up most specific first
            $c->path_to( 'root', 'viewport' )->stringify,
        ]
    );
    $c->req->params->{keyword}               = $name;
    $c->req->params->{includehandleddetails} = 1;
   $c->req->params->{state}                  = 2;
   $c->forward("/viewport/check");
    my $keyword = $c->stash->{keyword};
    unless ( $keyword->enabled ) {
$c->stash( error => $c->loc ( "messages.keyword.viewportNotEnabled [_1]", $name ) );
        $c->detach("/soft_error");
    }
    my $style;
    unless ( $style = $c->req->param("style") ) {
        $style = $keyword->style;
    }

I can some help to set the correct parameter.
I'm sorry I'm not a developer :(.

Maybe there is another solution. Help me. !!

Thanks.

Windows 7: vind de juiste pc voor jou. Meer informatie.
_______________________________________________
Opsview-users mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-users
_______________________________________________
Opsview-users mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-users

Reply via email to