#!/usr/bin/perl =head1 Explore Nagios This is a frameset implementation of the Nagios data visualiser written by Martin Houston. =cut use CGI::Pretty qw{-newstyle-urls :standard *table}; use CGI::Carp qw(fatalsToBrowser); my $query = new CGI; my $script_name = $query->script_name; my $path_info = $query->path_info; # where we find the main tools my $sl = '/usr/local/share/nagios_scripts'; =head1 frameset This is not part of the CGI library so we implement it here. Parameters are row or col, splits in the form "20%,*" an arrayref of the titles of each of the frames =cut sub frameset { my $res = ''; my($query,$roworcol,$splits,$tags) = @_; die "second parameter need to be rows or cols" unless $roworcol =~ /^(rows|cols)$/; my $script_name = $query->script_name; $res .= qq{