Result from SNMP not valid. Partial Result: U. snmpwalk ok.

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
lluisak
Posts: 3
Joined: Fri Jul 27, 2012 8:59 am

Result from SNMP not valid. Partial Result: U. snmpwalk ok.

Post by lluisak »

Hi.
We're running cacti, and have no problems with the normal templates Windows, linux and Cisco.
I've tried to configure Fortigate and FortiMail.
I've Imported templates
http://forums.cacti.net/about10085.html
Configured Datasources .
Installed MIBS and snmpwalked

mibs]# snmptranslate -m FORTINET-FORTIGATE-MIB -IR -On fgSysCpuUsage
.1.3.6.1.4.1.12356.101.4.1.3
mibs]# snmpwalk -v2c -c public 192.209.100.1 .1.3.6.1.4.1.12356.101.4.1.3
SNMPv2-SMI::enterprises.12356.101.4.1.3.0 = Gauge32: 1

In Data template , Custom Data OID match
• Fortigates
CPU = 1.3.6.1.4.1.12356.101.4.1.3
RAM = 1.3.6.1.4.1.12356.101.4.1.4
Active Sessions = 1.3.6.1.4.1.12356.101.4.1.4
• Fortimail
CPU = 1.3.6.1.4.1.12356.105.1.6
RAM = 1.3.6.1.4.1.12356.105.1.7
Active Sessions = 1.3.6.1.4.1.12356.105.1.10

08/21/2012 12:50:06 PM - CMDPHP: Poller[0] Time: 3.6668 s, Theads: N/A, Hosts: 6 08/21/2012 12:50:06 PM - CMDPHP: Poller[0] Host[25] Description[FG-NFS] DS[168] Graphs['FG-NFS - Fortigate - Sessions'] SNMP: v2: 192.209.100.1, dsname: SessionCount, oid: .1.3.6.1.4.1.12356.101.4.1.8, output: U

Graphs are blank and I'm getting this error.
"Result from SNMP not valid. Partial Result: U"
Any ideas?
I'm able to check snmp interfaces but not CPU or Memory.

Cacti server is CenOs X64 running Version 0.8.8a
qfsnetadmn
Posts: 12
Joined: Wed Jul 11, 2012 10:13 am

Re: Result from SNMP not valid. Partial Result: U. snmpwalk

Post by qfsnetadmn »

When you did an SNMP walk, look at the output you have:
snmpwalk -v2c -c public 192.209.100.1 .1.3.6.1.4.1.12356.101.4.1.3
SNMPv2-SMI::enterprises.12356.101.4.1.3.0 = Gauge32: 1
Notice the .0 that you see at the end of your original OID input. That is the Instance Identifier (IID). When pulling data from a device using Cacti's Data Template you have to provide it with the OID+IID.

You used snmpwalk on your OID, which is implemented as a series of snmpgetnext requests until it reaches the end of its current sub-tree.

Use snmpget instead to learn if the value that you are putting into Cacti actually returns anything (In your case it won't). Because Cacti uses snmpget on the OID provided to it to retrieve data.

So, in short, you should not use 1.3.6.1.4.1.12356.101.4.1.3 as the custom OID for CPU, but instead 1.3.6.1.4.1.12356.101.4.1.3.0

Same for all others, use snmpwalk or snmpgetnext to find out the exact OID that includes the OID+IID that you need to give Cacti.
lluisak
Posts: 3
Joined: Fri Jul 27, 2012 8:59 am

Re: Result from SNMP not valid. Partial Result: U. snmpwalk

Post by lluisak »

Thanks!
Sometimes It ain't enough with 2 eyes.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest