Greggers
Perch
enterprise said:Greg, are you save the code as status.asp ? (this is for display the images)
It's working now... no idea what I did/didn't do
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature currently requires accessing the site using the built-in Safari browser.
enterprise said:Greg, are you save the code as status.asp ? (this is for display the images)
Greggers said:It's working now... no idea what I did/didn't do
Yash said:...I have spent 8 hour configuring this. Not fun, let me tell you
Yash said:ok guys.. I just finished setting up graphing for the windows servers. Graphing for the linux servers will be added in a few days.
WinSD1 Graph
http://jodopulse.com:8090/WinSD1/panel.htm
Win8 Graph
http://jodopulse.com:8090/Win8/panel.htm
to view all graphs:
http://jodopulse.com:8090/
Click on the server name to see all graphs for that server
I have spent 8 hour configuring this. Not fun, let me tell you
gsaunders said:Now I know someone did some work to get the previous stuff posted on their own site... will there be a way to do the same with the new stuff? I would love to offer this to my clients so they can examine things.
<%
'' ASP Monitor Script
'' Powered by EnterpriseDreams Solutions
'' In order to get this thing working you need to do only one thing
'' 1) Absolutally Nothing!!
'' Of course I know most of you will be able to adapt this more to suit your own needs, but at least it gets you started.
'' Please, no remove this
'' Code By Juan C. Barreiro
'' EnterpriseDreams Solutions
'' www.enterprisedreams.net
Function LeoFile(archivo)
On Error Resume Next
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objText = objFSO.OpenTextFile(Server.MapPath("./ss_scripts/"&archivo&".htm"),1,false,0)
TemplateGenerado = objText.ReadAll
Set objText = Nothing
Set objFSO = Nothing
LeoFile = TemplateGenerado
End Function
Function ReplaceHTML(CodeHtml,TextDomain,StrPage,varOpenURL)
CodeHtml = Replace(CodeHtml,"JodoHost",TextDomain)
'' CodeHtml = Replace(CodeHtml,"localhost","cp."&TextDomain)
CodeHtml = Replace(CodeHtml,"jodoshared.com",TextDomain)
CodeHtml = Replace(CodeHtml,LeoFile("ss_top"),LeoFile("ss_top_replace"))
CodeHtml = Replace(CodeHtml,"?","/?\")
CodeHtml = Replace(CodeHtml,"href=""","href="""&StrPage&"?")
CodeHtml = Replace(CodeHtml,StrPage&"?#","#")
CodeHtml = Replace(CodeHtml,"src=""","src="""&StrPage&"?")
CodeHtml = Replace(CodeHtml,StrPage&"?mailto:","mailto:webmaster@"&TextDomain)
CodeHtml = Replace(CodeHtml,StrPage&"?http://www.paessler.com/prtg//?\banner=prtg4","http://"&TextDomain)
CodeHtml = Replace(CodeHtml,StrPage&"?http://www.paessler.com//?\ref=PRTGcopy","http://www.paessler.com/?ref=PRTGcopy")
CodeHtml = Replace(CodeHtml,StrPage&"?http://www.paessler.com/prtg//?\ref=PRTGcopy","http://www.paessler.com/prtg/?ref=PRTGcopy")
CodeHtml = Replace(CodeHtml,StrPage&"?/images/logo_ed.gif","/images/logo_ed.gif")
ReplaceHTML = CodeHtml
End Function
Function ServerStatus(varOpenURL,InicioCadena,FinCadena,TextDomain,StrPage)
On Error Resume Next
Set objXMLHTTP = Server.CreateObject("Microsoft.XMLHTTP")
objXMLHTTP.Open "GET", "http://jodopulse.com:8090"&Replace(varOpenUrl,"/?\","?"), False
objXMLHTTP.Send
CodeHtml = objXMLHTTP.responseText
Set objXMLHTTP = Nothing
CodeHtml = ReplaceHTML(RemoveHTML(CodeHtml,InicioCadena,FinCadena),TextDomain,StrPage,varOpenURL)
If Len(CodeHtml) > 0 Then
ServerStatus = CodeHtml & VBCrlf
Else
ServerStatus = MsgError() & VBCrlf
End If
End Function
Function RemoveHTML(CodeHtml,InicioCadena,FinCadena)
While InStr(1, CodeHtml, InicioCadena, vbTextCompare) > 0
ini = InStr(1, CodeHtml, InicioCadena, vbTextCompare) + Len(InicioCadena)
fin = InStr(1, CodeHtml, FinCadena, vbTextCompare)
CodeHtml = Mid(CodeHtml, ini, fin - ini)
Wend
RemoveHTML = CodeHtml
End Function
Function MsgError()
MsgError = MsgError & "<div class=""pie"">" & VBCrlf
MsgError = MsgError & "<p>Currently, your account credentials are not sufficient to perform this action. </p>" & VBCrlf
MsgError = MsgError & "<p>" & VBCrlf
MsgError = MsgError & "<p>To go back to the previous html page, <a href=""javascript:window.history.back();"">click here</a>.</p>" & VBCrlf
MsgError = MsgError & "<p>" & VBCrlf
MsgError = MsgError & "<p>If the account credentials you specified are sufficient for this action, an ip lockout may be in effect, " & VBCrlf
MsgError = MsgError & TextDomain & " Monitor has an automatic lockout mechanism which will prevents unauthorized access from:</p>" & VBCrlf
MsgError = MsgError & "<p>" & VBCrlf
MsgError = MsgError & "<ul>" & VBCrlf
MsgError = MsgError & "<li> specified ip ranges</li>" & VBCrlf
MsgError = MsgError & "<li> repeated attempts at actions outside of their account permissions</li>" & VBCrlf
MsgError = MsgError & "</ul>" & VBCrlf
MsgError = MsgError & "</p>" & VBCrlf
MsgError = MsgError & "</div>" & VBCrlf
End Function
If Len(request.querystring) > 0 Then varOpenURL = request.querystring Else varOpenURL = "/prtg.htm"
If InStr(1, request.querystring, "graphimg", vbTextCompare) > 0 Then
On Error Resume Next
Response.ContentType = "image/png"
Set HTTPObj = Server.CreateObject("AspHTTP.Conn")
HTTPObj.Url = "http://jodopulse.com:8090"&Replace(varOpenURL,"/?\","?")
HTTPObj.GetURL
Response.BinaryWrite HTTPObj.BinaryData
Set HTTPObj = Nothing
Response.End
End If
%>
<html>
<head>
<title><%=Replace(Request.ServerVariables("SERVER_NAME"),"www.","")%> Monitor</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="pragma" content="no-cache">
<link rel="stylesheet" href="ss_scripts/ss_estilo.css" type="text/css">
<script src="ss_scripts/ss_javascript.js" language="javascript" type="text/javascript"></script>
</head>
<body>
<table width="520" border="0" cellspacing="0" cellpadding="0" align="center" style="border: solid 1px #000000;">
<tr>
<td valign="top"><%=ServerStatus(varOpenUrl,"<BODY>","</BODY>",Replace(Request.ServerVariables("SERVER_NAME"),"www.",""),Request.ServerVariables("SCRIPT_NAME"))%></td>
</tr>
</table>
</body>
</html>