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.
_________________________________________________________________
De nieuwe Windows 7: vind de juiste pc voor jou. Meer informatie.
http://windows.microsoft.com/shop_______________________________________________
Opsview-users mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-users