KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

SLA type report

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Library
View previous topic :: View next topic  
Author Message
ChristianD



Joined: 06 Aug 2003
Posts: 18

PostPosted: Tue May 25, 2004 5:28 am    Post subject: SLA type report Reply with quote

Hi,

i created some scripts for my own to do some sla reporting with variables:
I use 98% as a key to make the item red when its below.
This percentage could also be a CommentLine? variable to make it more scriptable.

I hope someone could also make use of it.

Sincere,
Christian

Custom Report:
Test Items:
<script type="text/vbscript">
if (%AliveRatio%>98 ) then
document.write("<input type=button class=Good value=""%TestName% (%AliveRatio%%)"" onclick=""showinfo('\n%TestName% \n%CommentLine2% \n%CommentLine3% \n%CommentLine4% \n%CommentLine5% \n%CommentLine6% \nAverage Reply: %AverageReply%')"">")
Else
document.write("<input type=button class=Bad value=""%TestName% (%AliveRatio%%)"" onclick=""showinfo('\n%TestName% \n%CommentLine2% \n%CommentLine3% \n%CommentLine4% \n%CommentLine5% \n%CommentLine6% \nAverage Reply: %AverageReply%')"">")
end if
</script>

Folder Summary:
<HR>
<script type="text/vbscript">
If (%FolderCurrent_TotalTests%>0) then
If (cint(%FolderAverage_AliveRatio%+1-1) >=98 ) then
Document.write("<font color=""green""><b>Aantal tests: %FolderCurrent_TotalTests% - Uptime: %FolderAverage_AliveRatio%% - Unknown time: %FolderAverage_UnknownRatio%% - Downtime: %FolderAverage_DeadRatio%%</b></font>")
Else
Document.write("<font color=""red""><b>Aantal tests: %FolderCurrent_TotalTests% - Uptime: %FolderAverage_AliveRatio%% - Unknown time: %FolderAverage_UnknownRatio%% - Downtime: %FolderAverage_DeadRatio%%</4></font>")
End if
End if
</script>
Back to top
View user's profile Send private message Visit poster's website
ericm



Joined: 10 Feb 2004
Posts: 40

PostPosted: Mon Jun 07, 2004 9:32 am    Post subject: Loading Scripts Reply with quote

Dumb ?
how do I load this?
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Mon Jun 07, 2004 1:42 pm    Post subject: Reply with quote

- use menu "Profiles"->"Report profiles" to open Report Profiles dialog.
- click "New" button to create new report profile
- choose "Custom HTML" as report type
- click on small button beside "report type" combo to setup profile
- copy & paste code into appropriate sections ("Folder Summary" into "Folder Summary" section; "Test items" into "Test items" sections)

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Library All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

KS-Soft Forum Index