Changeset 291 for trunk/nagios-velvice
- Timestamp:
- Jul 16, 2018, 8:10:56 PM (7 years ago)
- Location:
- trunk/nagios-velvice
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/nagios-velvice/velvice.cgi
r290 r291 15 15 use strict; 16 16 use warnings; 17 use version; our $VERSION = version->declare('0.8. 8');17 use version; our $VERSION = version->declare('0.8.9'); 18 18 19 19 use CGI; … … 210 210 ) { 211 211 $now++; 212 my $interval = $srv->next_check() - $srv->last_check() || 300; 212 my $interval = $srv->next_check() - $srv->last_check() || 300; # 5 * 60 = 300 213 213 $interval = 240 if $interval < 240; 214 214 $interval = 3000 if $interval > 3000; 215 my $future = $now + 20 + int(rand($interval - 20)); # 5 * 60 = 300215 my $future = $now + 20 + int(rand($interval - 20)); 216 216 217 217 $htmlpage .= " <td class='checking'>" . ($future - $now) . "</td>\n"; -
trunk/nagios-velvice/velvice.css
r290 r291 97 97 98 98 td.checking { 99 background-color: red;99 background-color: #EB7239; 100 100 border-radius: 0ex 2ex 2ex 0ex; 101 101 color: white; 102 font-size: x-small; 103 font-weight: bold; 102 104 padding: 0ex 0.8ex 0ex 0.8ex; 105 text-align: right; 103 106 } 104 107
Note: See TracChangeset
for help on using the changeset viewer.