Changeset 287
- Timestamp:
- Jul 16, 2018, 7:47:01 PM (6 years ago)
- Location:
- trunk/nagios-velvice
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/nagios-velvice/velvice.cgi
r286 r287 15 15 use strict; 16 16 use warnings; 17 use version; our $VERSION = version->declare('0.8. 5');17 use version; our $VERSION = version->declare('0.8.6'); 18 18 19 19 use CGI; … … 183 183 if ($hostname ne $current_host) { 184 184 $current_host = $hostname; 185 $htmlpage .= " <td rowspan='$hostcount{$hostname}' $stylecolor>"185 $htmlpage .= " <td $stylecolor rowspan='$hostcount{$hostname}'>" 186 186 . "<a href=\"$cgi_script_name?check=" . uri_encode($hostname) . '">↯</a></td>' . "\n"; 187 $htmlpage .= " <td class='hoop' rowspan='$hostcount{$hostname}' $stylecolor>"187 $htmlpage .= " <td $stylecolor class='hoop' rowspan='$hostcount{$hostname}'>" 188 188 . "<a href=\"$config->{'nagios-server'}{'status-cgi'}?host=" . uri_encode($hostname) . "\">$hostname</a></td>\n"; 189 189 } … … 195 195 $bold++ if $service =~ m/$act_regex/ and $config->{'remote-action'}{$act_name}{'style'} eq 'bold'; 196 196 } 197 $htmlpage .= $bold ? " <td class='hoop bold' $stylecolor>" : " <td class='hoop' $stylecolor>";197 $htmlpage .= $bold ? " <td $stylecolor class='hoop bold'>" : " <td $stylecolor class='hoop'>"; 198 198 $htmlpage .= "$service</td>\n"; 199 199 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"; 203 203 204 204 if (($cgi_check =~ m/all/i) … … 215 215 my $future = $now + 20 + int(rand($interval - 20)); # 5 * 60 = 300 216 216 217 $htmlpage .= ' checking'; # add class checking217 $htmlpage .= " <td class='checking'>" . ($future - $now) . "</td>\n" 218 218 #$htmlpage .= " -- <b>CHECK</b> [$now/" . ($future - $now) . "]"; 219 219 printf $nagios_cmd "[%lu] SCHEDULE_FORCED_SVC_CHECK;%s;%s;%lu\n", $now, $hostname, $service, $now; … … 239 239 } 240 240 241 $htmlpage .= "' $stylecolor>$downtime days</td>\n";242 241 $htmlpage .= " </tr>\n"; 243 242 } -
trunk/nagios-velvice/velvice.css
r286 r287 101 101 content: "\21B5"; 102 102 padding: 0ex 0.8ex 0ex 0.8ex; 103 border-radius: 0ex 0px 0px 2ex;103 border-radius: 0ex 1ex 1ex 0ex; 104 104 } 105 105
Note: See TracChangeset
for help on using the changeset viewer.