I'm trying to add a custom div as a map object. (very similar to Paessler's own dashboard detailed here https://www.paessler.com/blog/dashboards-at-paessler )
To do this, I need a custom javascript loaded, as well as a custom div. I have tried placing the javascript in PRTG/webroot/myfolder/myfiles.js however I'm getting a "not found" everytime I try to reference that location directly. Ex: http://prtg/myfolder/myfiles.js just says "Not Found"
How can I get PRTG to recognize the files that I placed into it's webroot folder?
Article Comments
after moving the folder inside the javascript folder, it seems to be loading javascript now, however now I cannot load the other related files.
For reference, here is the mapobject I'm trying to create
<!--Security Camera: Front Lobby--> <div class="map_object map_icon mapicon_status_white" id="<@itemid>" objectid="<@objectid>" subid="<@subid>" style="<#mapobject type="topleftcoordinates" subid="<@subid>" mode="<@editmode>">"> <#mapobject type="objectgrip" mode="<@editmode>"> <#mapobject type="htmlbefore" subid="<@subid>"> <span> <script type="text/javascript" src="/javascript/vxgplayer/vxgplayer-1.8.40.min.js"></script> <div class="vxgplayer" id="vxg_media_player1" url="rtsp://<link>/videoMain" nmf-src="/javascript/vxgplayer/pnacl/Release/media_player.nmf" nmf-path="/javascript/vxgplayer/pnacl/Release/media_player.nmf" width="300" height="200" mute="" controls="" avsync="" style="width: 320px; height: 240px;"></div> </span> <#mapobject type="htmlafter" subid="<@subid>"> </div>
there are two .nmf files that need to be loaded in conjunction with the javascript file, however my console shows they're getting a 404 error from the server when trying to load them.
Aug, 2017 - Permalink
Dear rgoodrow,
the web server does not allow unrestricted access to PRTG files. The only way here is to use external resources (HTTP links.)
Aug, 2017 - Permalink
Dear rgoodrow
Please try to put the js file in C:\Program Files (x86)\PRTG Network Monitor\webroot\javascript and use an according path in the map object file.
Aug, 2017 - Permalink