Problem mit ubuntu12.04 und snmp/cacti
geschrieben am 02.04.2013 um 08:38 von joachim5
Hi ich bitte euch mich bei meinem Problem zu unterstützen:
Ich habe ein Problem mit einem SNMP-Query und Cacti!
Folgende schritte habe ich bisher gemacht:
1) Cacti und snmp installiert
2) Weil ich von einem Microcontroller(192.168.1.12 Werte abfragen möchte habe ich in ifconfig mei eth0 geändert: inet Adress:192.168.1.12, bcast:192.168.0.255 und die maske zu 255.255.255.0
3)Wenn ich manuel über das Terminal ein walk oder get mache funktioniert alles super.
sudo snmpget -c public -v1 192.168.1.10 .1.3.6.1.4.1.17095.1.1.2.1.1)
4)Die MIB des Microcontrollers schaut so aus:
http://forums.cacti.net/viewtopic.php?f=2&t=49830
Unter Punkt 3 ist die MIB als pdf. Habe auch im cacti_forum gefragt nur gibt mir leider keiner eine Antwort1
-----------------------------------------------------------------------
So sieht mein Data Query in usr/share/cacti/resources/snmp_queries aus:
<query>
<name>Messstation1</name>
<description>Messwerte der Messstation 1</description>
<oid_index>.1.3.6.4.1.17095.1</oid_index>
<index_order_type>numeric</index_order_type>
<fields>
<ifTemperatur1>
<name>Temperatur 1</name>
<method>get</method>
<source>VALUE/REGEXP</source>
<direction>input</direction>
<oid>.1.3.6.4.1.17095.1.2.1.1</oid>
</ifTemperatur1>
</fields>
</query>
------------------------------------------------------------------
4) Ergebnis sind leere Graphen und ein Errors im Cacti.log das so ausieht:
(Nur ein kurzer Auszug sonst wäre es zu lang)
03/30/2013 02:45:04 PM - EXPORT STATS: ExportDate:2013-03-30_14:45:04 ExportDuration:1.9046 TotalGraphsExported:79
03/30/2013 02:50:01 PM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '300', Max Runtime '298', Poller Runs: '1'
03/30/2013 02:50:02 PM - CMDPHP: Poller[0] WARNING: SNMP Get Timeout for Host:'192.168.1.10', and OID:'1.3.6.4.1.17095.1.2.1.1.0'
03/30/2013 02:50:02 PM - CMDPHP: Poller[0] Host[4] DS[11] WARNING: Result from SNMP not valid. Partial Result: U
03/30/2013 02:50:02 PM - CMDPHP: Poller[0] Host[4] DS[11] SNMP: v1: 192.168.1.10, dsname: Messstation1, oid: 1.3.6.4.1.17095.1.2.1.1.0, output: U
03/30/2013 02:50:03 PM - CMDPHP: Poller[0] Time: 1.2021 s, Theads: N/A, Hosts: 3
03/30/2013 02:50:03 PM - SYSTEM STATS: Time:1.3106 Method:cmd.php Processes:1 Threads:N/A Hosts:4 HostsPerProcess:4 DataSources:17 RRDsProcessed:10
-------------------------------------------------------------
Und so sieht mein snmpd.conf aus (Kommentare habe ich weggelassen):
agentAddress udp:192.168.1.10:161
view systemonly included .1.3.6.1.2.1.1
view systemonly included .1.3.6.1.2.1.25.1
view systemonly included .1.3.6.4.1.17095.1
rocommunity public default -V systemonly
rouser authOnlyUser
objects being 'read-only'
sysLocation Sitting on the Dock of the Bay
sysContact Me <me@example.org>
sysServices 72
proc mountd
proc ntalkd 4
proc sendmail 10 1
disk / 10000
disk /var 5%
includeAllDisks 10%
load 12 10 5
trapsink localhost public
iquerySecName internalUser
rouser internalUser
defaultMonitors yes
linkUpDownNotifications yes
extend test1 /bin/echo Hello, world!
extend-sh test2 echo Hello, world! ; echo Hi there ; exit 35
master agentx
MY DATA Query DEBUG Information shows:
XML file parsed ok
Executing SNMP walk for list of indexes @'.1.3.6.4.1.17095.1' Index Count: 0
No SNMP Data returned
-------------------------------------------------------------------
Muss ich nich irgendetwas konfigurieren?
Ich hoffe es kann mir jemand helfen. Sitze schon seit 4 Tagen rum und raff nicht was es sein könnte!
Danke im Vorraus
[ Dieses Thema im Live-Forum aufrufen ]
|