Infrastructure (Server, Network, Database)

cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Metric is not showing in Metric Browser

New Poster

Custom Metric is not showing in Metric Browser

Hi Community

I created a new script custom metric. If the path is under Custo Metric, I can see my metric created and updated succesfully. However, When I set the full path Server|Component:xxxx|..., it is not showing.

Your support is appreciated.

 

My Conytroller v is 4.4

My Machine agent v is 4.4

 

Thx

Bassem

Tags (1)
Custom Metric is not showing in Metric Browser
2 REPLIES 2
Architect

Re: Custom Metric is not showing in Metric Browser

Hi Bassem,

You cannot publish your metric under an existing metric tree, you will have to publish it under custom metrics category.

It will help, if you can share your script that you wrote to write the custom metric? 

 

Thanks

Gurmit.

New Poster

Re: Custom Metric is not showing in Metric Browser

Hi Gurmit 

 

here you go:

 

((get-date) - (gcim Win32_OperatingSystem).LastBootUpTime | Out-string).trim() >> "C:\out.txt"
$upTimeDays=@(Get-Content "C:\out.txt") -replace '\D+','' | select -first 1
remove-item "C:\out.txt"
Write-Output "name=Server|Hardware Resources|System|Uptime in days,value=$upTimeDays"

 

Best//Bassem