SNMP Get Timeout for Host...
Moderators: Developers, Moderators
SNMP Get Timeout for Host...
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!!!
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!!!
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: SNMP Get Timeout for Host...
As far as I know the syntax of that command is:
So try:
or use the snmpwalk command:
Make sure to include the spaces ...
Code: Select all
snmpget -c <communit> -v<version> <host> <mib>
Code: Select all
snmpget -c public -v1 192.168.1.10 .1.3.6.1.2.1.1.1.0
Code: Select all
snmpwalk -c public -v1 192.168.1.10
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
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
Re: SNMP Get Timeout for Host...
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)
my code was the same like yours but it's still not working
PS: My English is not the best (i am from austria)
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: SNMP Get Timeout for Host...
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
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
Re: SNMP Get Timeout for Host...
with snmpwalk it works but with get not.
with walk i can query the value!
with walk i can query the value!
Re: SNMP Get Timeout for Host...
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
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
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: SNMP Get Timeout for Host...
Maybe,
change these
to this
and retry ( restarting the agent first )
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
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
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
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
Re: SNMP Get Timeout for Host...
ok thanks i will try this at home...i will come back!
Are u sure that this is my mistake?
Are u sure that this is my mistake?
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: SNMP Get Timeout for Host...
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 ...
... 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
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
Re: SNMP Get Timeout for Host...
But i have disable my firewall with:
sudo ufw disable
sudo ufw disable
Re: SNMP Get Timeout for Host...
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>
<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>
Re: SNMP Get Timeout for Host...
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>
???
<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>
???
Re: SNMP Get Timeout for Host...
Ok snmpget is now workin but the cacti log still says the same!
Is my snmp query incorrect? Can someone help me please?
Is my snmp query incorrect? Can someone help me please?
Re: SNMP Get Timeout for Host...
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.
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.
Re: SNMP Get Timeout for Host...
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!
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!
Who is online
Users browsing this forum: No registered users and 2 guests