mirror of https://github.com/mikaku/Monitorix.git
cosmetic update
This commit is contained in:
parent
a1a283e745
commit
7fad65bbb8
|
@ -386,11 +386,11 @@ sub apache_cgi {
|
||||||
print(" <img src='" . $config->{url} . $config->{imgs_dir} . $PNG[$e * 3] . "'>\n");
|
print(" <img src='" . $config->{url} . $config->{imgs_dir} . $PNG[$e * 3] . "'>\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if($title) {
|
if($title) {
|
||||||
print(" </td>\n");
|
print(" </td>\n");
|
||||||
print(" <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n");
|
print(" <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
undef(@riglim);
|
undef(@riglim);
|
||||||
if(trim($rigid[1]) eq 1) {
|
if(trim($rigid[1]) eq 1) {
|
||||||
push(@riglim, "--upper-limit=" . trim($limit[1]));
|
push(@riglim, "--upper-limit=" . trim($limit[1]));
|
||||||
|
|
|
@ -411,11 +411,11 @@ sub disk_cgi {
|
||||||
print(" <img src='" . $config->{url} . $config->{imgs_dir} . $PNG[$e * 3] . "'>\n");
|
print(" <img src='" . $config->{url} . $config->{imgs_dir} . $PNG[$e * 3] . "'>\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if($title) {
|
if($title) {
|
||||||
print(" </td>\n");
|
print(" </td>\n");
|
||||||
print(" <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n");
|
print(" <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
undef(@tmp);
|
undef(@tmp);
|
||||||
undef(@tmpz);
|
undef(@tmpz);
|
||||||
for($n = 0; $n < 8; $n += 2) {
|
for($n = 0; $n < 8; $n += 2) {
|
||||||
|
|
|
@ -714,11 +714,11 @@ sub fs_cgi {
|
||||||
print(" <img src='" . $config->{url} . $config->{imgs_dir} . $PNG[$e * 3] . "'>\n");
|
print(" <img src='" . $config->{url} . $config->{imgs_dir} . $PNG[$e * 3] . "'>\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if($title) {
|
if($title) {
|
||||||
print(" </td>\n");
|
print(" </td>\n");
|
||||||
print(" <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n");
|
print(" <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
undef(@riglim);
|
undef(@riglim);
|
||||||
if(trim($rigid[1]) eq 1) {
|
if(trim($rigid[1]) eq 1) {
|
||||||
push(@riglim, "--upper-limit=" . trim($limit[1]));
|
push(@riglim, "--upper-limit=" . trim($limit[1]));
|
||||||
|
|
|
@ -413,7 +413,6 @@ sub hptemp_cgi {
|
||||||
print(" </td>\n");
|
print(" </td>\n");
|
||||||
print(" <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n");
|
print(" <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
if(scalar(my @hptemp1 = split(',', $hptemp->{list}->{1}))) {
|
if(scalar(my @hptemp1 = split(',', $hptemp->{list}->{1}))) {
|
||||||
undef(@tmp);
|
undef(@tmp);
|
||||||
undef(@tmpz);
|
undef(@tmpz);
|
||||||
|
|
|
@ -713,11 +713,11 @@ sub kern_cgi {
|
||||||
print(" <img src='" . $config->{url} . $config->{imgs_dir} . $PNG1 . "'>\n");
|
print(" <img src='" . $config->{url} . $config->{imgs_dir} . $PNG1 . "'>\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if($title) {
|
if($title) {
|
||||||
print(" </td>\n");
|
print(" </td>\n");
|
||||||
print(" <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n");
|
print(" <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
undef(@tmp);
|
undef(@tmp);
|
||||||
undef(@tmpz);
|
undef(@tmpz);
|
||||||
push(@tmp, "AREA:cs#44AAEE:Context switches");
|
push(@tmp, "AREA:cs#44AAEE:Context switches");
|
||||||
|
|
|
@ -391,11 +391,11 @@ sub lighttpd_cgi {
|
||||||
print(" <img src='" . $config->{url} . $config->{imgs_dir} . $PNG[$e * 3] . "'>\n");
|
print(" <img src='" . $config->{url} . $config->{imgs_dir} . $PNG[$e * 3] . "'>\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if($title) {
|
if($title) {
|
||||||
print(" </td>\n");
|
print(" </td>\n");
|
||||||
print(" <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n");
|
print(" <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
undef(@riglim);
|
undef(@riglim);
|
||||||
if(trim($rigid[1]) eq 1) {
|
if(trim($rigid[1]) eq 1) {
|
||||||
push(@riglim, "--upper-limit=" . trim($limit[1]));
|
push(@riglim, "--upper-limit=" . trim($limit[1]));
|
||||||
|
|
|
@ -751,11 +751,11 @@ sub lmsens_cgi {
|
||||||
print(" <img src='" . $config->{url} . $config->{imgs_dir} . $PNG2 . "'>\n");
|
print(" <img src='" . $config->{url} . $config->{imgs_dir} . $PNG2 . "'>\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if($title) {
|
if($title) {
|
||||||
print(" </td>\n");
|
print(" </td>\n");
|
||||||
print(" <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n");
|
print(" <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
undef(@tmp);
|
undef(@tmp);
|
||||||
undef(@tmpz);
|
undef(@tmpz);
|
||||||
push(@tmp, ("LINE2:mb0#FFA500:MB 0\\g", "GPRINT:mb0:LAST:\\:%3.0lf "));
|
push(@tmp, ("LINE2:mb0#FFA500:MB 0\\g", "GPRINT:mb0:LAST:\\:%3.0lf "));
|
||||||
|
|
|
@ -878,11 +878,11 @@ sub mail_cgi {
|
||||||
print(" <img src='" . $config->{url} . $config->{imgs_dir} . $PNG2 . "'>\n");
|
print(" <img src='" . $config->{url} . $config->{imgs_dir} . $PNG2 . "'>\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if($title) {
|
if($title) {
|
||||||
print(" </td>\n");
|
print(" </td>\n");
|
||||||
print(" <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n");
|
print(" <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
undef(@riglim);
|
undef(@riglim);
|
||||||
if(trim($rigid[2]) eq 1) {
|
if(trim($rigid[2]) eq 1) {
|
||||||
push(@riglim, "--upper-limit=" . trim($limit[2]));
|
push(@riglim, "--upper-limit=" . trim($limit[2]));
|
||||||
|
|
|
@ -816,11 +816,11 @@ sub mysql_cgi {
|
||||||
print(" <img src='" . $config->{url} . $config->{imgs_dir} . $PNG[$e * 6 + 1] . "'>\n");
|
print(" <img src='" . $config->{url} . $config->{imgs_dir} . $PNG[$e * 6 + 1] . "'>\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if($title) {
|
if($title) {
|
||||||
print(" </td>\n");
|
print(" </td>\n");
|
||||||
print(" <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n");
|
print(" <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
undef(@riglim);
|
undef(@riglim);
|
||||||
if(trim($rigid[2]) eq 1) {
|
if(trim($rigid[2]) eq 1) {
|
||||||
push(@riglim, "--upper-limit=" . trim($limit[2]));
|
push(@riglim, "--upper-limit=" . trim($limit[2]));
|
||||||
|
|
|
@ -465,11 +465,11 @@ sub net_cgi {
|
||||||
print(" <img src='" . $config->{url} . $config->{imgs_dir} . $PNG1 . "'>\n");
|
print(" <img src='" . $config->{url} . $config->{imgs_dir} . $PNG1 . "'>\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if($title) {
|
if($title) {
|
||||||
print(" </td>\n");
|
print(" </td>\n");
|
||||||
print(" <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n");
|
print(" <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
undef(@riglim);
|
undef(@riglim);
|
||||||
if(trim($rigid[1]) eq 1) {
|
if(trim($rigid[1]) eq 1) {
|
||||||
push(@riglim, "--upper-limit=" . trim($limit[1]));
|
push(@riglim, "--upper-limit=" . trim($limit[1]));
|
||||||
|
|
|
@ -508,11 +508,11 @@ sub nfsc_cgi {
|
||||||
print(" <img src='" . $config->{url} . $config->{imgs_dir} . $PNG2 . "'>\n");
|
print(" <img src='" . $config->{url} . $config->{imgs_dir} . $PNG2 . "'>\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if($title) {
|
if($title) {
|
||||||
print(" </td>\n");
|
print(" </td>\n");
|
||||||
print(" <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n");
|
print(" <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
undef(@riglim);
|
undef(@riglim);
|
||||||
if(trim($rigid[2]) eq 1) {
|
if(trim($rigid[2]) eq 1) {
|
||||||
push(@riglim, "--upper-limit=" . trim($limit[2]));
|
push(@riglim, "--upper-limit=" . trim($limit[2]));
|
||||||
|
|
|
@ -673,11 +673,11 @@ sub nfss_cgi {
|
||||||
print(" <img src='" . $config->{url} . $config->{imgs_dir} . $PNG3 . "'>\n");
|
print(" <img src='" . $config->{url} . $config->{imgs_dir} . $PNG3 . "'>\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if($title) {
|
if($title) {
|
||||||
print(" </td>\n");
|
print(" </td>\n");
|
||||||
print(" <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n");
|
print(" <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
undef(@riglim);
|
undef(@riglim);
|
||||||
if(trim($rigid[3]) eq 1) {
|
if(trim($rigid[3]) eq 1) {
|
||||||
push(@riglim, "--upper-limit=" . trim($limit[3]));
|
push(@riglim, "--upper-limit=" . trim($limit[3]));
|
||||||
|
|
|
@ -407,11 +407,11 @@ sub nginx_cgi {
|
||||||
print(" <img src='" . $config->{url} . $config->{imgs_dir} . $PNG1 . "'>\n");
|
print(" <img src='" . $config->{url} . $config->{imgs_dir} . $PNG1 . "'>\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if($title) {
|
if($title) {
|
||||||
print(" </td>\n");
|
print(" </td>\n");
|
||||||
print(" <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n");
|
print(" <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
undef(@riglim);
|
undef(@riglim);
|
||||||
if(trim($rigid[1]) eq 1) {
|
if(trim($rigid[1]) eq 1) {
|
||||||
push(@riglim, "--upper-limit=" . trim($limit[1]));
|
push(@riglim, "--upper-limit=" . trim($limit[1]));
|
||||||
|
|
|
@ -408,11 +408,11 @@ sub ntp_cgi {
|
||||||
print(" <img src='" . $config->{url} . $config->{imgs_dir} . $PNG[$e * 3] . "'>\n");
|
print(" <img src='" . $config->{url} . $config->{imgs_dir} . $PNG[$e * 3] . "'>\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if($title) {
|
if($title) {
|
||||||
print(" </td>\n");
|
print(" </td>\n");
|
||||||
print(" <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n");
|
print(" <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
undef(@riglim);
|
undef(@riglim);
|
||||||
if(trim($rigid[1]) eq 1) {
|
if(trim($rigid[1]) eq 1) {
|
||||||
push(@riglim, "--upper-limit=" . trim($limit[1]));
|
push(@riglim, "--upper-limit=" . trim($limit[1]));
|
||||||
|
|
|
@ -403,11 +403,11 @@ sub nvidia_cgi {
|
||||||
print(" <img src='" . $config->{url} . $config->{imgs_dir} . $PNG1 . "'>\n");
|
print(" <img src='" . $config->{url} . $config->{imgs_dir} . $PNG1 . "'>\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if($title) {
|
if($title) {
|
||||||
print(" </td>\n");
|
print(" </td>\n");
|
||||||
print(" <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n");
|
print(" <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
undef(@tmp);
|
undef(@tmp);
|
||||||
undef(@tmpz);
|
undef(@tmpz);
|
||||||
push(@tmp, "LINE2:gpu0#FFA500:Card 0\\g");
|
push(@tmp, "LINE2:gpu0#FFA500:Card 0\\g");
|
||||||
|
|
|
@ -744,11 +744,11 @@ sub serv_cgi {
|
||||||
print(" <img src='" . $config->{url} . $config->{imgs_dir} . $PNG1 . "'>\n");
|
print(" <img src='" . $config->{url} . $config->{imgs_dir} . $PNG1 . "'>\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if($title) {
|
if($title) {
|
||||||
print(" </td>\n");
|
print(" </td>\n");
|
||||||
print(" <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n");
|
print(" <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
undef(@riglim);
|
undef(@riglim);
|
||||||
if(trim($rigid[1]) eq 1) {
|
if(trim($rigid[1]) eq 1) {
|
||||||
push(@riglim, "--upper-limit=" . trim($limit[1]));
|
push(@riglim, "--upper-limit=" . trim($limit[1]));
|
||||||
|
|
|
@ -931,11 +931,11 @@ sub squid_cgi {
|
||||||
print(" <img src='" . $config->{url} . $config->{imgs_dir} . $PNG3 . "'>\n");
|
print(" <img src='" . $config->{url} . $config->{imgs_dir} . $PNG3 . "'>\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if($title) {
|
if($title) {
|
||||||
print(" </td>\n");
|
print(" </td>\n");
|
||||||
print(" <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n");
|
print(" <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
undef(@riglim);
|
undef(@riglim);
|
||||||
if(trim($rigid[3]) eq 1) {
|
if(trim($rigid[3]) eq 1) {
|
||||||
push(@riglim, "--upper-limit=" . trim($limit[3]));
|
push(@riglim, "--upper-limit=" . trim($limit[3]));
|
||||||
|
|
|
@ -511,11 +511,11 @@ sub system_cgi {
|
||||||
print(" <img src='" . $config->{url} . $config->{imgs_dir} . $PNG1 . "'>\n");
|
print(" <img src='" . $config->{url} . $config->{imgs_dir} . $PNG1 . "'>\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if($title) {
|
if($title) {
|
||||||
print(" </td>\n");
|
print(" </td>\n");
|
||||||
print(" <td bgcolor='" . $colors->{title_bg_color} . "'>\n");
|
print(" <td bgcolor='" . $colors->{title_bg_color} . "'>\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
undef(@riglim);
|
undef(@riglim);
|
||||||
if(trim($rigid[1]) eq 1) {
|
if(trim($rigid[1]) eq 1) {
|
||||||
push(@riglim, "--upper-limit=" . trim($limit[1]));
|
push(@riglim, "--upper-limit=" . trim($limit[1]));
|
||||||
|
|
|
@ -297,11 +297,11 @@ sub user_cgi {
|
||||||
print(" <img src='" . $config->{url} . $config->{imgs_dir} . $PNG1 . "'>\n");
|
print(" <img src='" . $config->{url} . $config->{imgs_dir} . $PNG1 . "'>\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if($title) {
|
if($title) {
|
||||||
print(" </td>\n");
|
print(" </td>\n");
|
||||||
print(" <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n");
|
print(" <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
undef(@riglim);
|
undef(@riglim);
|
||||||
if(trim($rigid[1]) eq 1) {
|
if(trim($rigid[1]) eq 1) {
|
||||||
push(@riglim, "--upper-limit=" . trim($limit[1]));
|
push(@riglim, "--upper-limit=" . trim($limit[1]));
|
||||||
|
|
Loading…
Reference in New Issue