PDA

View Full Version : SNMP Query values


RohrbaGe
01-03-2006, 19:31
Hi,

I have running zabbix 1.1b6 on a Suse Linux 9.2 server.

I´m trying since a while to read the fan states and temperature
of some cisco switches without success.
I have compiled with the --net-snmp and I already read
a temperature of a UPS by SNMP. So in generell it works well.

The OID for the fan state is: 1.3.6.1.4.1.9.9.13.1.4.1.3.1
But I´m not able to read that with snmpget.

The following command works on the cisco.
snmpget -v1 -c public <ip> system.sysDescr.0

With snmpwalk I got a long list like that.
IF-MIB::ifConnectorPresent.1 = INTEGER: true(1)
SNMPv2-SMI::mib-2.17.5.1.1.4.1.128.194.0.0.4.33 = INTEGER: 3

I guess I have a generall understanding problem.
Is it necessary to have the mib files for the cisco installed on the Zabbix Server?
What I have to do?

Or should the following command already work? ( what it does not)
snmpget -v1 -c public <ip> 1.3.6.1.4.1.9.9.13.1.4.1.3.1



Regards

Gerald

bbrendon
01-03-2006, 22:20
if
snmpget -v1 -c public <ip> 1.3.6.1.4.1.9.9.13.1.4.1.3.1

doesn't work from the zabbix server. you have a bigger problem. most likely cisco configuration error. And no, you don't have to install mibs.

krusty
02-03-2006, 08:37
if you go to your switches and make show running. Which community string you read? I think you have a general problem with snmp? May your switch doesn't support the mib? Can you do the following?

snmpwalk -v 1 -c <community string> <IP>

If this works, then read the dump and look at your MIB. If you found your MIB then try this:

snmpwalk -v 1 -c <community string> <IP> <your MIB>

If you dosen't found your MIB then your switch will not support this MIB.

RohrbaGe
03-03-2006, 11:16
Hi,

I think now also that the reason why it does not work is based on the cisco.

Reading now hours in Google, and testing parallel I have some emore details.

On the Cisco 3524XL is IOS 12.0 running.

In config mode I should add snmp-server enable traps envmon.
This the cisco does not like.
And this envmon is no option

CFSWT015(config)#snmp-server enable traps ?
c2900 Enable SNMP c2900 traps
cluster Enable Cluster traps
config Enable SNMP config traps
entity Enable SNMP entity traps
hsrp Enable SNMP HSRP traps
snmp Enable SNMP traps
vlan-membership Enable VLAN Membership traps
vtp Enable SNMP VTP traps
<cr>

Has anybody an idea, what I have to do on the cisco?
Do I have to install something on the cisco?

Regards
Gerald

zabby
03-03-2006, 14:36
Please try 1.3.6.1.4.1.9.9.13.1.4.1.3.1.0

OID must end with .0

You do not need to have the mibs in zabbix if you use OID.

RohrbaGe
03-03-2006, 15:45
Hi,

I have done taht already during my tests.

I have now analysed the Cisco,
this OID is not in.

But it should be.

Gerald