ifoperational status graphs not working

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

Moderators: Developers, Moderators

Post Reply
oratek
Posts: 1
Joined: Mon Jul 18, 2016 12:23 am

ifoperational status graphs not working

Post by oratek »

Hi Guys,
I am running Cacti version 0.8.8a-1 on Fedora release 16 which has been running for some years now.
Recently I wanted to start monitoring the operational status of a couple of ethernet ports on my Dell N4000 switch and to date the graphs just show nan.

It seems that cacti can see the operational status as you can see the status as up or down on the create graph page where the values show as up or down.

The OID for the switch port in cacti is .1.3.6.1.2.1.2.2.1.8.1 (which is port one on the switch) and is seen correctly in the poller cache with this OID.
An snmpget of this OID from the switch returns IF-MIB::ifOperStatus.1 = INTEGER: up(1).

The SNMP cache items for this SNMP Query shows the following
Host: DRN_Core , SNMP Query: SNMP - Interface Statistics
Index: 1 , Field Name: ifOperStatus , Field Value: Up
OID: .1.3.6.1.2.1.2.2.1.8.1

But the graph still shows NAN and the cacti log shows CMDPHP: Poller[0] Host[161] DS[1925] WARNING: Result from SNMP not valid. Partial Result: U

If the create graphs page can see the port status, why do I get a Partial Result from the snmp query ?

Any help apprieciated.

Thanks
kamilner
Posts: 1
Joined: Tue Aug 09, 2016 8:35 am

Re: ifoperational status graphs not working

Post by kamilner »

I had exactly the same problem.

From the following thread: http://forums.cacti.net/viewtopic.php?f ... us#p244210

I edited the lib/snmp.php file and replaced the following line:

Code: Select all

define("REGEXP_SNMP_TRIM", "/(hex|counter(32|64)|gauge|gauge(32|64)|float|ipaddress|string|integer):/i");
with this:

Code: Select all

define("REGEXP_SNMP_TRIM", "/(hex|counter(32|64)|gauge|gauge(32|64)|float|ipaddress|string|integer):|(up|down)\(|\)$/i");
That worked a treat for me.

Note I am using Version 0.8.8h so you may need a different modification (see the above thread).

Cheers,

Keith
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests