Won't create a graph for a specific interface
Moderators: Developers, Moderators
Won't create a graph for a specific interface
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.
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.
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.
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.
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
What error message are your receiving?
TheWitness
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?
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?
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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
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?
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?
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
regards
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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
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?
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?
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:
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
Code: Select all
wget http://www.cacti.net/downloads/patches/0.8.6/snmp_backslash_char.patch
patch -p1 < snmp_backslash_char.patch
Refresh your data query to see if the patch did its magic.
-Ian
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.
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.
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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?
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?
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.
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.
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
/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
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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
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?
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?
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Hope it works. Going to bed now... Later
TheWitness
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?
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?
Who is online
Users browsing this forum: No registered users and 1 guest