So, for further development, I've achieved what I wanted.
CSS:
I've created an archive on C:\Program Files (x86)\PRTG Network Monitor\webroot\css with the name styles_custom_v2.
Here is the content:
.map_iconcolornew_hasblack,
.map_iconcolornew_sensx {
color: #878787;
font-size: 20px;
text-align: center;
}
.map_iconcolornew_hasgreen,
.map_iconcolornew_sensg {
color: #b8c419;
font-size: 50px;
text-align: center;
}
.map_iconcolornew_hasblue,
.map_iconcolornew_sensb {
color: #477ec0;
font-size: 20px;
text-align: center;
}
.map_iconcolornew_hasorange,
.map_iconcolornew_sensp {
color: orange;
font-size: 20px;
text-align: center;
}
.map_iconcolornew_hasyellow,
.map_iconcolornew_sensy {
color: #f5c500;
font-size: 20px;
text-align: center;
}
.map_iconcolornew_hasack,
.map_iconcolornew_senso {
color: #e30613;
font-size: 20px;
text-align: center;
}
.map_iconcolornew_hasred,
.map_iconcolornew_haspartialred,
.map_iconcolornew_sensr {
color: #e30613;
font-size: 20px;
text-align: center;
}
And I've created a new map object in C:\Program Files (x86)\PRTG Network Monitor\webroot\mapobjects with the following text:
<!--Custom: Status Text with related Color-->
<div class="map_object map_icon2 map_icon_large <#sensor type="colorclassofstate" prefix="map_iconcolornew_" id="<@objectid>">" id="<@itemid>" objectid="<@objectid>" subid="<@subid>" style="<#mapobject type="coordinates" subid="<@subid>" mode="<@editmode>">">
<#mapobject type="objectgrip" mode="<@editmode>">
<#mapobject type="htmlbefore" subid="<@subid>">
<#objectstatus name="status" id="<@objectid>" var="objectstatus">
<#objectstatus name="message" show="textraw" id="<@objectid>" var="message">
<span class="status-text" style="font-size: 50px;">
<#objectstatus name="status" id="<@objectid>">
</span>
<#mapobject type="htmlafter" subid="<@subid>">
</div>
Add comment