I'm trying to monitor a set of systems where installing the agent is not an option (long story, don't ask.) I have successfully setup other monitors to report back on filesystem usage, memory utilization, etc., but for some odd reason, I absolutely cannot get good CPU utilization data back from the target systems. I'm trying to pump this command to the target via the SSH Agent:
Running this manually via command-line ssh, it works great and gives me exactly what I want. However, when I put this into the item configuration, it gives me nothing. Just for kicks and grins and to confirm I'm not mad, I changed the command to be:
I'm at a loss. Any help is greatly appreciated.
Code:
iostat -c | sed -n '4p' | awk {'print $6'}
Code:
iostat -c | sed -n '4p' | awk {'print $6'} > /tmp/idlecpu;cat /tmp/idlecpu
Comment