Dear Ton Voon,

Thank you for your reaction.
I knew the Add state parameters in the url.
But I don't want to manual change the url , so I was looking for a default 
setting.
I only do not understand your alternative.
I'm using 3.3.2.
Where can I find this option. in Viewport ? 

With Kind Regards,

Gert-Jan

From: ton.v...@opsera.com
To: opsview-users@lists.opsview.org
Date: Sat, 24 Oct 2009 19:14:38 +0100
Subject: Re: [opsview-users] Viewport Configuration

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" <maffe...@hotmail.com> 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
Opsview-users@lists.opsview.org
http://lists.opsview.org/lists/listinfo/opsview-users
                                          
_________________________________________________________________
De  nieuwe Windows 7: maak alledaagse dingen makkelijker. Vind de juiste pc 
voor jou.
http://windows.microsoft.com/shop
_______________________________________________
Opsview-users mailing list
Opsview-users@lists.opsview.org
http://lists.opsview.org/lists/listinfo/opsview-users

Reply via email to