Won't create a graph for a specific interface

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

Moderators: Developers, Moderators

cwiggler
Posts: 5
Joined: Tue Sep 14, 2004 7:55 am

Won't create a graph for a specific interface

Post by cwiggler »

Hi all,

I installed the latest version of cacti and rrdtool on my debian woody, cacti is working fine until i came about this problem. I could graph some of my servers interface except for this one.

I enable the Data Query Debug Information and here is the results:

+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/usr/local/apache2/htdocs/cacti/resource/snmp_queries/interface.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1'
+ Located input field 'ifIndex' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.1'
+ Found item [ifIndex='1'] index: 1 [from value]
+ Found item [ifIndex='2'] index: 2 [from value]
+ Found item [ifIndex='3'] index: 3 [from value]
+ Found item [ifIndex='4'] index: 4 [from value]
+ Found item [ifIndex='5'] index: 5 [from value]
+ Located input field 'ifOperStatus' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.8'
+ Found item [ifOperStatus='Up'] index: 1 [from value]
+ Found item [ifOperStatus='Up'] index: 2 [from value]
+ Found item [ifOperStatus='Up'] index: 3 [from value]
+ Found item [ifOperStatus='Up'] index: 4 [from value]
+ Found item [ifOperStatus='Up'] index: 5 [from value]
+ Located input field 'ifDescr' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.2'
+ Found item [ifDescr='MS TCP Loopback interface'] index: 1 [from value]
+ Found item [ifDescr='DVB Modem Network Adapter\'] index: 2 [from value]
+ Found item [ifDescr='RG384B Modem Adapter'] index: 3 [from value]
+ Found item [ifDescr='Realtek RTL8139/810X Family NIC'] index: 4 [from value]
+ Found item [ifDescr='NdisWan Adapter'] index: 5 [from value]
+ Located input field 'ifName' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.1'
+ Found item [ifName=''] index: [from value]
+ Located input field 'ifAlias' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.18'
+ Found item [ifAlias=''] index: [from value]
+ Located input field 'ifType' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.3'
+ Found item [ifType='softwareLoopback(24)'] index: 1 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 2 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 3 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 4 [from value]
+ Found item [ifType='ppp(23)'] index: 5 [from value]
+ Located input field 'ifSpeed' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.5'
+ Found item [ifSpeed='10000000'] index: 1 [from value]
+ Found item [ifSpeed='50000000'] index: 2 [from value]
+ Found item [ifSpeed='10000000'] index: 3 [from value]
+ Found item [ifSpeed='100000000'] index: 4 [from value]
+ Found item [ifSpeed='100000'] index: 5 [from value]
+ Located input field 'ifHwAddr' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.6'
+ Found item [ifHwAddr=''] index: 1 [from value]
+ Found item [ifHwAddr='00:90:9C:20:18:42'] index: 2 [from value]
+ Found item [ifHwAddr='00:00:00:00:07:E7'] index: 3 [from value]
+ Found item [ifHwAddr='00:50:BF:0F:0B:D8'] index: 4 [from value]
+ Found item [ifHwAddr='00:00:00:00:00:00'] index: 5 [from value]
+ Located input field 'ifIP' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.4.20.1.2'
+ Found item [ifIP='0.0.0.0'] index: 5 [from regexp oid parse]
+ Found item [ifIP='10.10.2.3'] index: 3 [from regexp oid parse]
+ Found item [ifIP='127.0.0.1'] index: 1 [from regexp oid parse]
+ Found item [ifIP='172.28.1.1'] index: 2 [from regexp oid parse]
+ Found item [ifIP='202.126.34.61'] index: 4 [from regexp oid parse]
+ Found data query XML file at '/usr/local/apache2/htdocs/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/local/apache2/htdocs/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/local/apache2/htdocs/cacti/resource/snmp_queries/interface.xml'
----------------------------------------------------------

So when I create a graph for this host, the index 2 with an IP address of 127.28.1.1 doesnt have a Description, so select the graph type to IN/OUT Bits and create the graph, but when i check on the rra directory theres no entry for that or rrd file for that host but the cacti doesn't have an error.

Here is the image of the said host.

Image

The other interfaces is working and i can create a graph except for the one. What should be the problem?

I wish anyone can help me. thanks and regards to everyone.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

What error message are your receiving?

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Guest

Post by Guest »

I got no error, except when i enable the debugging on mode, i got:
ERROR: opening '/usr/local/apache2/htdocs/cacti/rra/power_cord_traffic_in_37.rrd': No such file or directory

but other interface is okay.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

It appears that you have a Data Source (DS) created that is invalid for one reason or another. If you delete that DS and it's associated graph and recreate, it may correct your problem.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Guest

Post by Guest »

I did remove the old Data Sources and doubled check to see that I have have any datas for that host, then I add device using ucd/net snmp, the box is running on windows nt. then i select that specific interface and create and in/out bits graph but still the same. when i check it, theres no rrd file created, i also tried the other interface to graph and it works fine. MRTG can graph that interface i dunno why on rrdtool+cacti it wont. the thing that im wondering why theres no Description on that interface, is that a possible cause why it wont work?

regards
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

raX and I have found the source of the problem. He will attempt to test and correct. This is a problem with your MIB. The backslash in Interface 2's ifDescr is the source of the error.

raX suggests that you more than likely have an *.INF file with bad information.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

I think I have a solution to the problem. It is untested since I don't have access to your environment, but it should work. Apply the following patch in your Cacti directory:

Code: Select all

wget http://www.cacti.net/downloads/patches/0.8.6/snmp_backslash_char.patch
patch -p1 < snmp_backslash_char.patch
Or replace your lib/snmp.php file with the pre-patched version.

Refresh your data query to see if the patch did its magic.

-Ian
Guest

Post by Guest »

Hi TheWitness,

Even in MRTG it has MRTG_INT_IP="172.28.1.1" MRTG_INT_DESCR="DVB-Modem-Network-Adapter\" on it.

so that is the cause of the problem. is there a way to fix this on my side? it seems that the remote site is far away from location.

and if ever, how can i fix the mib, what file should i need to modify?

thanks and regards.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

See raX's post.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
cwiggler
Posts: 5
Joined: Tue Sep 14, 2004 7:55 am

Post by cwiggler »

Hi Rax and TheWitness,

The patched worked now I could see that theres a Description on that interface.

I tried to remove all my graphs and data sources to make fresh. Then i add device and create a graph on every interface, the interface selection got gray color and it say that it successfully created the graph but when i looked at the rrd directory, theres no files in there, so i was thinking that maybe theres still a problem. So I add another device and get the stats of my own machine, which it was working and i had a graph on it before. then i create a graph on my interface and it successfully created based on the web, but when i looked at the rrd directory still no files created.

what should be the possible problem. it was working before and the cacti can create files on rrd directory but now it wont.

Can you help me with this. maybe this should be the last problem at after this it will work like a charm.

thanks and regards.
cwiggler
Posts: 5
Joined: Tue Sep 14, 2004 7:55 am

Post by cwiggler »

Another test, I create a graph on the local machine/localhost without using snmp and i get all the graphs :) but only the snmp host is not working. I checked the logs from poller.php and I get this command:

/usr/local/rrdtool/bin/rrdtool create /usr/local/apache2/htdocs/cacti/rra/glynn_traffic_in_48.rrd --step 300 DS:traffic_in:COUNTER:600:0:100000000 DS:traffic_out:COUNTER:600:0:100000000 DS:traffic_in:COUNTER:600:0:100000000 DS:traffic_out:COUNTER:600:0:100000000 RRA:AVERAGE:0.5:1:600 RRA:AVERAGE:0.5:6:700 RRA:AVERAGE:0.5:24:775 RRA:AVERAGE:0.5:288:797 RRA:MAX:0.5:1:600 RRA:MAX:0.5:6:700 RRA:MAX:0.5:24:775 RRA:MAX:0.5:288:797

I tried to run it manually on the console and I got an error:
ERROR: Duplicate DS name: traffic_in

Maybe this is the problem why it wont create the rrd file.

thanks and regards
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

The create syntax is muffed up. Have you attempted raX's update. Also, make sure you have deleted all DS's associated with this interface before retrying.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
cwiggler
Posts: 5
Joined: Tue Sep 14, 2004 7:55 am

Post by cwiggler »

Hi TheWitness,

Yeah I have patched the snmp.php, I also deleted all the Data Sources before creating a new one. Ill try to download the file snmp.php not the patched and see if it works.

regards
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Hope it works. Going to bed now... Later

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
cwiggler
Posts: 5
Joined: Tue Sep 14, 2004 7:55 am

Post by cwiggler »

Hi TheWitness,

I downloaded the snmp.php and tried it again but till the same error.
how can we fix this?


regards
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest