Ad Widget

Collapse

SNMP Values from Windows client

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • joeson
    Junior Member
    • Dec 2004
    • 1

    #1

    SNMP Values from Windows client

    Hello,

    Very new to Zabbix (2 weeks!) It is a very cool product. I am trying to get SNMP to work on a windows 2003 client. Here is what I have done so far:

    1. Ran the following:

    snmpget -On -c zabbix -v 1 <server name> sysDescr.0 which results in this:

    .1.3.6.1.2.1.1.1.0 = STRING: Hardware: x86 Family 15 Model 2 Stepping 8 AT/AT COMPATIBLE - Software: Windows Version 5.2 (Build 3790 Uniprocessor Free)

    2. Created HOST in Zabbix using port 161
    3. Created ITEM in Zabbix as follows:

    Description: SystemDescription
    Host: Server name
    Type: tried both SNMPv1 and v2
    SNMP Community: zabbix
    SNMP OID: .1.3.6.1.2.1.1.1.0 (results from above)
    SNMP Port: 161
    Key: sysDescr.0
    Units: <blank>
    Mulitplier: <blank>
    Status: Monitored
    Type: Character
    Store Value: As Is

    4. When i start zabbix_suckerd and change the status of the server to 'Monitored' the console screen fills up with 'snmpget: Too long' over and over. I cannot break out of it at all and need to restart the Linux box. I have attached a portion of the zabbix_suckerd.log file below:

    001437:20041207:094050 zabbix_suckerd #4 started [Sucker. SNMP:ON]
    001437:20041207:094050 Executing query:select i.itemid,i.key_,h.host,h.port,i.delay,i.descriptio n,i.nextcheck,i.type,i.snmp_community,i.snmp_oid,h .useip,h.ip,i.history,i.lastvalue,i.prevvalue,i.ho stid,h.status,i.value_type,h.network_errors,i.snmp _port,i.delta,i.prevorgvalue,i.lastclock from items i,hosts h where i.nextcheck<=1102441250 and i.status=0 and i.type not in (2) and (h.status=0 or (h.status=2 and h.disable_until<=1102441250)) and h.hostid=i.hostid and i.itemid%1=0 and i.key_<>'status' and i.key_<>'icmpping' and i.key_<>'icmppingsec' order by i.nextcheck
    001437:20041207:094050 In DBnum_rows
    001437:20041207:094050 Result of DBnum_rows [24]
    001437:20041207:094050 In get_value_SNMP()
    001437:20041207:094050 SNMP [zabbix@<ip of server>:161:161]
    001437:20041207:094050 OID [.1.3.6.1.2.1.1.1.0]
    001437:20041207:094050 In get_value_SNMP() 0.2
    001437:20041207:094050 In get_value_SNMP() 0.3
    001434:20041207:094050 zabbix_suckerd #1 started [Alerter]
    001434:20041207:094050 Executing query:select a.alertid,a.mediatypeid,a.sendto,a.subject,a.messa ge,a.status,a.retries,mt.mediatypeid,mt.type,mt.de scription,mt.smtp_server,mt.smtp_helo,mt.smtp_emai l,mt.exec_path from alerts a,media_type mt where a.status=0 and a.retries<3 and a.mediatypeid=mt.mediatypeid order by a.clock
    001435:20041207:094050 zabbix_suckerd #2 started [nodata() calculator]
    001435:20041207:094050 Executing query:select distinct f.itemid,f.functionid,f.parameter from functions f, items i,hosts h where h.hostid=i.hostid and (h.status=0 or (h.status=2 and h.disable_until<1102441250)) and i.itemid=f.itemid and f.function='nodata' and i.lastclock+f.parameter<=1102441250 and i.status=0 and i.type=2 and f.lastvalue<>1
    001437:20041207:094050 Status send [1]
    001437:20041207:094050 In get_value_SNMP() 0.4
    001437:20041207:094050 In get_value_SNMP() 1
    001437:20041207:094050 Error [1]
    001437:20041207:094050 GOT VALUE []
    001437:20041207:094050 Getting value of [sysDescr.0] from host [HOSTNAME] failed
    001437:20041207:094050 The value is not stored in database.

    Any help would be appreciated!
  • Wolfgang
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified Specialist
    • Apr 2005
    • 116

    #2
    Hello,

    just wonder wether you have resolved this.
    http://www.intellitrend.de
    Specialised in monitoring large environments and Zabbix API programming.

    Comment

    Working...