달력

5

« 2024/5 »

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
SCOM System Center SCX Cross Platform UNIX Linux Shell Script

# Alert Description
# $Data/Context///*[local-name()="StdOut"]$

Threshold=80

processorutil=`/opt/microsoft/scx/bin/tools/scxcimcli xq "select * from SCX_ProcessorStatisticalInformation Where Name=\"_Total\"" -n root/scx | grep PercentProcessorTime | sed 's/\;$//' | awk {'print $3'}`

if [ $processorutil -gt $Threshold ]
then
     echo The threshold for the Processor\% Processor Time\_Total performance counter has been exceeded. The values that exceeded the threshold are: $processorutil. State is BAD.
else
     echo The processor utilization status is normal. State is GOOD.
fi


 
:
Posted by 커널64