Ad Widget

Collapse

Error user definied parameter throws lib-error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • IteaAgain
    Junior Member
    • Mar 2018
    • 13

    #1

    Error user definied parameter throws lib-error

    On debian VM defined user parameters

    Code:
    UserParameter= raid.array.md0.status, pwsh -file /home/iteanova/Get-RAIDStatus-md0.ps1 
     UserParameter= raid.array.md1.status, pwsh -file /home/iteanova/Get-RAIDStatus-md1.ps1
    that starts a Powershell Script that get the result "active"

    Code:
    iteanova@iteanova003:~$ cat Get-RAIDStatus-md0.ps1
    
    ((get-content /proc/mdstat) -like "md0*").split(" ").trim()[2] 
      iteanova@iteanova003:~$ pwsh Get-RAIDStatus-md1.ps1  active
    but unhappy, in the "Latest Data" of the debian VM, i got that messag
    Code:
    [TABLE="class: list-table"]
    [TR]
    [TD="class: nowrap"]2018-03-26 19:37:23[/TD]
     			[TD] 			
     libust[28645/28645]: Warning: HOME environment variable not set. Disabling LTTng-UST per-user tracing. (in setup_local_apps() at lttng-ust-comm.c:375) active 			[/TD]
     		[/TR]
    [/TABLE]
    somehow those warning message from libust is coming into the script-output. Any idea i get rid of it?

    Thank you

    Chris
Working...