SNMP Get Timeout for Host...

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

joachim5
Cacti User
Posts: 53
Joined: Sun Feb 10, 2013 7:29 am

SNMP Get Timeout for Host...

Post by joachim5 »

Hy!

My SNMP in cacti is turning up blank (nan), with the log saying things like this:

Code:
- SYSTEM STATS: Time:1.3412 Method:cmd.php Processes:1 Threads:N/A Hosts:4 HostsPerProcess:4 DataSources:17 RRDsProcessed:10
- EXPORT STATS: EWxportDate: 2013-03-26_19:55:06 ExportDuration_2.3203 Total GraphsExported:79
- 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'
- CMDPHP: Poller[0] Host[4] DS[11] WARNING: Result from SNMP not valid. Partial Result: U

...and so on...

when i ran:

snmpget -c -v1 public 192.168.1.10

i got this:

Error in packet
Reason: (noSuchName) There is no such variable in this MIB.
Failed Objekt:.....

But when i try a snmpwalk instead it works.

What should i do?

Thanks for ur help and time!!!
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: SNMP Get Timeout for Host...

Post by phalek »

As far as I know the syntax of that command is:

Code: Select all

snmpget -c <communit> -v<version> <host> <mib>
So try:

Code: Select all

snmpget -c public -v1 192.168.1.10 .1.3.6.1.2.1.1.1.0
or use the snmpwalk command:

Code: Select all

snmpwalk -c public -v1 192.168.1.10
Make sure to include the spaces ...
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
joachim5
Cacti User
Posts: 53
Joined: Sun Feb 10, 2013 7:29 am

Re: SNMP Get Timeout for Host...

Post by joachim5 »

oh sorry i wrote incorrectly

my code was the same like yours but it's still not working

PS: My English is not the best (i am from austria) ;-)
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: SNMP Get Timeout for Host...

Post by phalek »

Then just run an snmpwalk on .1.3.6.4.1.17095 and check if it returns anything at all below that tree.
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
joachim5
Cacti User
Posts: 53
Joined: Sun Feb 10, 2013 7:29 am

Re: SNMP Get Timeout for Host...

Post by joachim5 »

with snmpwalk it works but with get not.

with walk i can query the value!
joachim5
Cacti User
Posts: 53
Joined: Sun Feb 10, 2013 7:29 am

Re: SNMP Get Timeout for Host...

Post by joachim5 »

could it be a snmp.conf problem?

Here my snmp.conf:

#AGENT BEHAVIOR

agentAdress udp:192.168.1.10:161

#ACCESS CONTROL

view systemonly included .1.3.6.1.2.1.1.
view systemonly included .1.3.6.1.2.1.25.1

rocommunity public default -V systemonly

rouser authOnlyUser

#SYSTEM INFORMATION

sysLocation Sitting on the Dock of the Bay
sysContact Me <me@example.org>

sysService 72

#PROCESS MONITORING

proc mountd

proc ntalkd 4

proc sendmail 10 1

#DISK MONITORING

disk / 10000
disk /var 5%
includeAllDisks 10%

#SYSTEM LOAD

load 12 10 5

#ACTIVE MONITORING

trapsink localhost public
iquerySecName internalUser
rouser Internaluser
defaultMonitors yes
linkUpDownNotifications yes

#EXTENDING THE AGENT

extend test1 /bin/echo Hello, world!
extend-sh test2 echo Hello, world! ; echo Hi there ; exit 35
master agenty
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: SNMP Get Timeout for Host...

Post by phalek »

Maybe,

change these

Code: Select all

view systemonly included .1.3.6.1.2.1.1.
view systemonly included .1.3.6.1.2.1.25.1
to this

Code: Select all

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
and retry ( restarting the agent first )
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
joachim5
Cacti User
Posts: 53
Joined: Sun Feb 10, 2013 7:29 am

Re: SNMP Get Timeout for Host...

Post by joachim5 »

ok thanks i will try this at home...i will come back!

Are u sure that this is my mistake?
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: SNMP Get Timeout for Host...

Post by phalek »

no. Access restrictions should also apply to snmpwalk ...

... I once had a Nokia IPSO Firewall which behaved identically. I wasn't able to retrieve a specific value UNLESS i polled a different one first. Was kindof a bug in their SNMP implementation ...
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
joachim5
Cacti User
Posts: 53
Joined: Sun Feb 10, 2013 7:29 am

Re: SNMP Get Timeout for Host...

Post by joachim5 »

But i have disable my firewall with:

sudo ufw disable
joachim5
Cacti User
Posts: 53
Joined: Sun Feb 10, 2013 7:29 am

Re: SNMP Get Timeout for Host...

Post by joachim5 »

or is my snmp query incorrect?:

<query>
<name>Messstation1</name>
<description>Messwerte der Messstation1</description>
<oid_index>.1.3.6.4.1.17095.1.2.1.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>
</ifTemepratur1>
.
.
.
.
.
</fields>
</query>
joachim5
Cacti User
Posts: 53
Joined: Sun Feb 10, 2013 7:29 am

Re: SNMP Get Timeout for Host...

Post by joachim5 »

do i have to change the oid:

<oid>.1.3.6.4.1.17095.1.2.1.1</oid>

to

<oid>.1.3.6.4.1.17095.1.2.1.1.0</oid>

???
joachim5
Cacti User
Posts: 53
Joined: Sun Feb 10, 2013 7:29 am

Re: SNMP Get Timeout for Host...

Post by joachim5 »

Ok snmpget is now workin but the cacti log still says the same!
Is my snmp query incorrect? Can someone help me please?
joachim5
Cacti User
Posts: 53
Joined: Sun Feb 10, 2013 7:29 am

Re: SNMP Get Timeout for Host...

Post by joachim5 »

ok update:

snmpget and snmpwalk is working but i still got the errors!
Is it maybe a permission issue? I have to enter always sudo snmpget... to reach the value.
joachim5
Cacti User
Posts: 53
Joined: Sun Feb 10, 2013 7:29 am

Re: SNMP Get Timeout for Host...

Post by joachim5 »

outout s walk and get:

sudo snmpwalk -c public -v1 192.168.1.10 .1.3.6.4.1.17095.1.2.1
iso.3.6.1.4.1.17095.1.2.1.1.0 = INTEGER: 52
.
.
.

ist this correct ?

but my snmp query dont works!
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests