Hello,
I am having a problem trying to get the fan speed in my bladecenter.
I first tried to use SNMP but the problem is that the value returned is a string (which contains characters). So, I can't use it to graph or trigger on this item.
I then decided to use external check, with a script containing the SNMP querry. That script is parsing the result of the query in order to get only the numeric value I need, and not the rest.
And it works! ... but just once.
After the value is displayed once on the frontend, the second time the external check is executed, the item disables itself (it is marked as "not supported") and says that my script "returned nothing".
Here is my script :
In that script,
returns the following as a string:
Once the script is executed, I get the value I need (in my exemple, it is 46).
I already tried to change the Timeout value in the zabbix-server config file setting it to 30, but it didn't work.
Help on this issue would be much appreciated
I am having a problem trying to get the fan speed in my bladecenter.
I first tried to use SNMP but the problem is that the value returned is a string (which contains characters). So, I can't use it to graph or trigger on this item.
I then decided to use external check, with a script containing the SNMP querry. That script is parsing the result of the query in order to get only the numeric value I need, and not the rest.
And it works! ... but just once.
After the value is displayed once on the frontend, the second time the external check is executed, the item disables itself (it is marked as "not supported") and says that my script "returned nothing".
Here is my script :
Code:
#!/bin/sh
TEST=$(/usr/bin/snmpget -v1 -c public 10.202.200.1 .1.3.6.1.4.1.2.3.51.2.2.3.1.0 | /bin/sed "s/[^0-9]//g");
function test(){
declare -i TEST2=${TEST:10};
return $((TEST2));
}
test;
Code:
snmpget -v1 -c public 10.202.200.1 .1.3.6.1.4.1.2.3.51.2.2.3.1.0
SNMPv2-SMI::enterprises.2.3.51.2.2.3.1.0 = STRING: "46% of maximum"
I already tried to change the Timeout value in the zabbix-server config file setting it to 30, but it didn't work.
Help on this issue would be much appreciated

Comment