Changeset 287


Ignore:
Timestamp:
Jul 16, 2018, 7:47:01 PM (6 years ago)
Author:
g7moreau
Message:

Continue replacing check with red arrow

Location:
trunk/nagios-velvice
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/nagios-velvice/velvice.cgi

    r286 r287  
    1515use strict;
    1616use warnings;
    17 use version; our $VERSION = version->declare('0.8.5');
     17use version; our $VERSION = version->declare('0.8.6');
    1818
    1919use CGI;
     
    183183      if ($hostname ne $current_host) {
    184184         $current_host = $hostname;
    185          $htmlpage .= "  <td rowspan='$hostcount{$hostname}' $stylecolor>"
     185         $htmlpage .= "  <td $stylecolor rowspan='$hostcount{$hostname}'>"
    186186            . "<a href=\"$cgi_script_name?check=" . uri_encode($hostname) . '">&#8623;</a></td>' . "\n";
    187          $htmlpage .= "  <td class='hoop' rowspan='$hostcount{$hostname}' $stylecolor>"
     187         $htmlpage .= "  <td $stylecolor class='hoop' rowspan='$hostcount{$hostname}'>"
    188188            . "<a href=\"$config->{'nagios-server'}{'status-cgi'}?host=" . uri_encode($hostname) . "\">$hostname</a></td>\n";
    189189         }
     
    195195         $bold++ if $service =~ m/$act_regex/ and $config->{'remote-action'}{$act_name}{'style'} eq 'bold';
    196196         }
    197       $htmlpage .= $bold ? "  <td class='hoop bold' $stylecolor>" : "  <td class='hoop' $stylecolor>";
     197      $htmlpage .= $bold ? "  <td $stylecolor class='hoop bold'>" : "  <td $stylecolor class='hoop'>";
    198198      $htmlpage .= "$service</td>\n";
    199199
    200       $htmlpage .= "  <td class='hoop' $stylecolor>$status</td>\n";
    201       $htmlpage .= "  <td class='comment' $stylecolor>$output</td>\n";
    202       $htmlpage .= "  <td class='days";
     200      $htmlpage .= "  <td $stylecolor class='hoop'>$status</td>\n";
     201      $htmlpage .= "  <td $stylecolor class='comment'>$output</td>\n";
     202      $htmlpage .= "  <td $stylecolor class='days'>$downtime days</td>\n";
    203203
    204204      if (($cgi_check =~ m/all/i)
     
    215215         my $future = $now + 20 + int(rand($interval - 20)); # 5 * 60 = 300
    216216
    217          $htmlpage .= ' checking'; # add class checking
     217         $htmlpage .= "  <td class='checking'>" . ($future - $now) . "</td>\n"
    218218         #$htmlpage .= " -- <b>CHECK</b> [$now/" . ($future - $now) . "]";
    219219         printf $nagios_cmd "[%lu] SCHEDULE_FORCED_SVC_CHECK;%s;%s;%lu\n", $now, $hostname, $service, $now;
     
    239239         }
    240240
    241       $htmlpage .= "' $stylecolor>$downtime days</td>\n";
    242241      $htmlpage .= " </tr>\n";
    243242      }
  • trunk/nagios-velvice/velvice.css

    r286 r287  
    101101   content:          "\21B5";
    102102   padding:          0ex 0.8ex 0ex 0.8ex;
    103    border-radius:    0ex 0px 0px 2ex;
     103   border-radius:    0ex 1ex 1ex 0ex;
    104104   }
    105105
Note: See TracChangeset for help on using the changeset viewer.