Search results

  1. K

    OpManager Raid Monitroing script

    I am trying to make the following script echo 0 for all raid drives that come back with a 'U' and a 1 when it returns a '_' for raid drive down. However it still print [UU] or [__] #!/bin/bash mdstat=$(cat /proc/mdstat | awk '{print $6}' | grep -A1 'sd' | grep U) 0='U' 1='_' if [$mdstat = 1]...
  2. K

    Need to just grep a value and not the unit

    when i run: grep SwapCached /proc/meminfo | cut -f 2 -d ':' I receive the following output: 30720 kB How do I remove the kB so I may point the output to our monitoring system, OpManager. I tried to tail -n, I tried awking out. But theres something I am not doing correctly with my syntax.
Top