Hi,
I have a script that outputs the ssCpuRawUser which is as follows:
#! /bin/bash
IP="$1"
export user=`snmpwalk -v2c "$IP" -OQvs -c "paparulo" 1.3.6.1.4.1.2021.11.50.0`
export system=`snmpwalk -v2c "$IP" -OQvs -c "paparulo" 1.3.6.1.4.1.2021.11.52.0`
export idle=`snmpwalk -v2c "$IP" -OQvs -c "paparulo" 1.3.6.1.4.1.2021.11.53.0`
export waiting=`snmpwalk -v2c "$IP" -OQvs -c "paparulo" 1.3.6.1.4.1.2021.11.54.0`
export TOTAL=`echo "$user" + "$system" + "$idle" + "$waiting" | bc`
export peruser=`echo "$user" / "$TOTAL" \* 100| bc -l`
EOF
Well as documentation state hostname is passed as first parameter, but log says:
13014:20071205:121109 Parameter [cpu-user.sh] is not supported by agent on host [Spectrum] Old status [0]
I've tried to use something as simple as:
#! /bin/bash
echo "$1"
And problem remains.
Could you help me to fix that?
Thanks in advance!
I have a script that outputs the ssCpuRawUser which is as follows:
#! /bin/bash
IP="$1"
export user=`snmpwalk -v2c "$IP" -OQvs -c "paparulo" 1.3.6.1.4.1.2021.11.50.0`
export system=`snmpwalk -v2c "$IP" -OQvs -c "paparulo" 1.3.6.1.4.1.2021.11.52.0`
export idle=`snmpwalk -v2c "$IP" -OQvs -c "paparulo" 1.3.6.1.4.1.2021.11.53.0`
export waiting=`snmpwalk -v2c "$IP" -OQvs -c "paparulo" 1.3.6.1.4.1.2021.11.54.0`
export TOTAL=`echo "$user" + "$system" + "$idle" + "$waiting" | bc`
export peruser=`echo "$user" / "$TOTAL" \* 100| bc -l`
EOF
Well as documentation state hostname is passed as first parameter, but log says:
13014:20071205:121109 Parameter [cpu-user.sh] is not supported by agent on host [Spectrum] Old status [0]
I've tried to use something as simple as:
#! /bin/bash
echo "$1"
And problem remains.
Could you help me to fix that?
Thanks in advance!

Comment