Christian_Schuster Absent Member.
Absent Member.
2538 views

Create Monitor

Jump to solution

Hi,

I create a Monitor to use for live data in SilkPerformanceExplorer. Nearly everything is fine, the only thing that is missing (or I don't find) is

the possibility to create a value for the column UNIT. Is there any experience with this?

0 Likes
1 Solution

Accepted Solutions
Micro Focus Expert
Micro Focus Expert

RE: Create Monitor

Jump to solution

This has been confirmed as a defect and will be investigated further by R&D.

Thanks for bringing this to our attention.

0 Likes
6 Replies
LeeanneQ Absent Member.
Absent Member.

RE: Create Monitor

Jump to solution

Hi,

Can you provide an example usage scenario?  What metric are you trying to plot?

Thanks

Leeanne

0 Likes
Christian_Schuster Absent Member.
Absent Member.

RE: Create Monitor

Jump to solution

Hi,

these are the project attributes:

#BDLMonitor1.Name string JVMMobileBanking\FreeHeap kB JVMMobileBanking\FreeHeap kB

#BDLMonitor1.Type string AvgCounter AvgCounter

#BDLMonitor1.Enabled boolean True True

#BDLMonitor1.Script string MonitorAppStatusMobileBankingLive.bdf MonitorAppStatusMobileBankingLive.bdf

#BDLMonitor1.Usergroup string MonMobileUawww1 MonMobileUawww1

#BDLMonitor1.Transaction string TMonitorMobileUawww1 TMonitorMobileUawww1

#BDLMonitor2.Name string JVMMobileBanking\CurrentHeap kB JVMMobileBanking\CurrentHeap kB

#BDLMonitor2.Type string AvgCounter AvgCounter

#BDLMonitor2.Enabled boolean True True

#BDLMonitor2.Script string MonitorAppStatusMobileBankingLive.bdf MonitorAppStatusMobileBankingLive.bdf

#BDLMonitor2.Usergroup string MonMobileUawww1 MonMobileUawww1

#BDLMonitor2.Transaction string TMonitorMobileUawww1 TMonitorMobileUawww1

and this is the function call. The function is from bdlMonitor.bdh:

WebParseHtmlBoundEx(sFreeMemory,      sizeof(sFreeMemory),      "Free Heap Size: ",      1, "KB",

     WEB_FLAG_IGNORE_WHITE_SPACE | WEB_FLAG_CASE_SENSITIVE);

   WebParseHtmlBoundEx(sCurrentMemory,   sizeof(sCurrentMemory),   "Current Heap Size: ",   1, "KB",

     WEB_FLAG_IGNORE_WHITE_SPACE | WEB_FLAG_CASE_SENSITIVE);

MonitorIncFloat(1,Float(sFreeMemory));

MonitorIncFloat(2,Float(sCurrentMemory));

0 Likes
RodL Absent Member.
Absent Member.

RE: Create Monitor

Jump to solution

Looks like you have you have followed the BDL Monitoring section in the Advanced Concepts (Documents folder).  For a working example look at the PS_Apache.sep here:

C:\Program Files (x86)\silk\Silk Performer 9.5\Monitors

.SEP files are predefined BDL monitoring projects.  Double-click the SEP and it will open a new SilkPerformer project based on the Apache monitoring template.

The Apache one contains additional project attributes that should help you.

Best of luck!

Rod

0 Likes
Christian_Schuster Absent Member.
Absent Member.

RE: Create Monitor

Jump to solution

Hm...I added the #measure attributes to my project attributes:

#BDLMonitor1.Name    string    JVMMobileBanking\FreeHeap    BdlMonitor\Sample Measure 1
#BDLMonitor1.Type    string    AvgCounter    AvgCounter
#BDLMonitor1.Enabled    boolean    True    True
#BDLMonitor1.Script    string    MonitorAppStatusMobileBankingLive.bdf    boolean
#BDLMonitor1.Usergroup    string    MonMobileUawww1    
#BDLMonitor1.Transaction    string    TMonitorMobileUawww1    TMonitorMobileUawww1
#Measure1.Name    string    JVMMobileBanking\FreeHeap    kB
#Measure1.Class    string    CustomCounter    CustomCounter
#Measure1.Unit    string    kB    kB

the result is:

Still no Unit. What is my mistake?

0 Likes
Highlighted
RodL Absent Member.
Absent Member.

RE: Create Monitor

Jump to solution

Looking at some of the other templates they use PdceGetMeasureValue and a 5th (undocumented) unit parameter in pdce.bdh. Other option is that MonitorIncFloat calls MeasureIncFloat which has a "unit" parameter which is set to NULL by default in bdlmonitor.bdh.

You may need to call consulting - this is starting to look complex!

0 Likes
Micro Focus Expert
Micro Focus Expert

RE: Create Monitor

Jump to solution

This has been confirmed as a defect and will be investigated further by R&D.

Thanks for bringing this to our attention.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.