ucd/net snmp Device (Disk) I/O templates - Updated - v3.1
Moderators: Developers, Moderators
-
- Cacti User
- Posts: 150
- Joined: Sat Jul 30, 2005 2:15 pm
can you upload everything in one file?
It would be easier to work with just one archive, I think. If you were to upload a new one (not overwriting the old ones) with known good files, that might help.
One install is from source (FreeBSD ports) and one from rpm. Though this is a php-based app, no compilation or linking that I am aware of.
One other thing: I don't get those values (the reads/writes) exposed in my net-snmp-based installs. Am I wasting my time?
One install is from source (FreeBSD ports) and one from rpm. Though this is a php-based app, no compilation or linking that I am aware of.
One other thing: I don't get those values (the reads/writes) exposed in my net-snmp-based installs. Am I wasting my time?
What happens if you run:
Replace host-ip with the ip address of the target host or localhost if you are running the command on the target host and replace community-name with the read community of the target host i.e:public
do you see UCD-DISKIO-MIB::diskIO related stuff?
~Rodre
Code: Select all
snmpwalk -v 2c host-ip -c community-name.1.3.6.1.4.1.2021.13.15
do you see UCD-DISKIO-MIB::diskIO related stuff?
~Rodre
-
- Cacti User
- Posts: 150
- Joined: Sat Jul 30, 2005 2:15 pm
answered my own question
It looks like the ucd/diskio stuff has to be specified at build time. Once I get that done, I'll take another whack at this.
-
- Cacti User
- Posts: 150
- Joined: Sat Jul 30, 2005 2:15 pm
test this before you start
See if this returns anything before you start. Now mine does.
Code: Select all
snmptable -v 2c -c community host diskIOTable
SNMP table: UCD-DISKIO-MIB::diskIOTable
diskIOIndex diskIODevice diskIONRead diskIONWritten diskIOReads diskIOWrites diskIOLA1 diskIOLA5 diskIOLA15
1 ad0 3136086528 1329497088 12031712 18256151 2 6 6
2 ad1 152385536 35630080 6365960 8081515 0 0 0
3 acd0 0 0 0 0 0 0 0
4 sa0 0 0 0 0 0 0 0
5 fd0 0 0 0 0 0 0 0
6 pass0 0 0 0 0 0 0 0
7 md0 0 0 0 0 0 0 0
-
- Cacti User
- Posts: 150
- Joined: Sat Jul 30, 2005 2:15 pm
OK, closer but not there yet
So I have some systems exposing the DISKIO values and it all looks good.
But I still can't get anywhere. I import the templates, add the query to the repository, generate a new graph, and get stuck on a screen that wants me
Create Graph from 'ucd/net - Device I/O'
with three blanks: Index Type, Index Value, Output Type ID.
Another question: would these counters need to limited to 32 bit (4294967296)? Right now, the template, after import, doesn't seem to include that.
I'm still hopeful I can use these templates rather than build this out from scratch. What information from me would help?
But I still can't get anywhere. I import the templates, add the query to the repository, generate a new graph, and get stuck on a screen that wants me
Create Graph from 'ucd/net - Device I/O'
with three blanks: Index Type, Index Value, Output Type ID.
Another question: would these counters need to limited to 32 bit (4294967296)? Right now, the template, after import, doesn't seem to include that.
I'm still hopeful I can use these templates rather than build this out from scratch. What information from me would help?
Try this out:
1. Delete the graph template(s) from: Console -> Graph Templates
2. Delete the Data Template from: Console -> Data Templates
3. Delete the Data Query from: Console -> Data Queries
4. Delete the <path_cacti>/resource/snmp_queries/net-snmp_devio.xml file from the file system of the Cacti host.
5. Download the files below (updated to same file as the one in the original post)
6. Copy the net-snmp_devio.xml to your <path_cacti>/resource/snmp_queries/ directory of the Cacti host.
7. Import all the *_graphTEMPL.xml files using: Console -> Import Templates
Does that order work?
--Download removed - please download from initial post for version control-- Above instructions have been updated to reflect version 2
~Rodre
1. Delete the graph template(s) from: Console -> Graph Templates
2. Delete the Data Template from: Console -> Data Templates
3. Delete the Data Query from: Console -> Data Queries
4. Delete the <path_cacti>/resource/snmp_queries/net-snmp_devio.xml file from the file system of the Cacti host.
5. Download the files below (updated to same file as the one in the original post)
6. Copy the net-snmp_devio.xml to your <path_cacti>/resource/snmp_queries/ directory of the Cacti host.
7. Import all the *_graphTEMPL.xml files using: Console -> Import Templates
Does that order work?
--Download removed - please download from initial post for version control-- Above instructions have been updated to reflect version 2
~Rodre
Last edited by Rodre on Thu Aug 18, 2005 5:18 pm, edited 4 times in total.
-
- Cacti User
- Posts: 150
- Joined: Sat Jul 30, 2005 2:15 pm
not so far
I have never seen the data query associated with this set of templates: still no sign of it today. It wasn't there to be deleted and it didn't show up installing these new files.
Is there an error when you import the Data-Query_Templ.xml file?
Prior to importing the above file do you have the net-snmp_devio.xml file in the <path_cacti>/resource/snmp_queries/net-snmp_devio.xml directory? For example it is in my /var/www/html/cacti/resource/snmp_queries/ directory. Are the access permissions for the file the same as the other "stock" files in that directory?
~Rodre
Prior to importing the above file do you have the net-snmp_devio.xml file in the <path_cacti>/resource/snmp_queries/net-snmp_devio.xml directory? For example it is in my /var/www/html/cacti/resource/snmp_queries/ directory. Are the access permissions for the file the same as the other "stock" files in that directory?
~Rodre
-
- Cacti User
- Posts: 150
- Joined: Sat Jul 30, 2005 2:15 pm
still no luck
I replaced the net-snmp xml file with the latest one, and then reimported the templates. All generated errors.
I also see errors importing
Has anyone had luck with this?[/code]
the xml file is in the correct place and the permisions are right. I added the Data Query, and it is able to parse it properly.[success] ucd/net - Device I/O [update]
+ Unmet Dependency: (Data Input Method) Get SNMP Data (Indexed)
+ Unmet Dependency: (Data Input Field) Output Type ID
+ Unmet Dependency: (Data Input Field) Index Value
+ Unmet Dependency: (Data Input Field) Index Type
+ Unmet Dependency: (Data Input Field) SNMP Version (1, 2, or 3)
+ Unmet Dependency: (Data Input Field) SNMP Password (v3)
+ Unmet Dependency: (Data Input Field) SNMP Username (v3)
+ Unmet Dependency: (Data Input Field) SNMP Community
+ Unmet Dependency: (Data Input Field) SNMP IP Address
Has anyone had luck with this?[/code]
- Aaron Jeskey
I am beginning to wonder that myself, as I want to get this graphs Export -> Import functionality working before I export and share a bunch of other graphs that I have created that may be usefull to others.
Can someone from the Cacti team elaborate on the correct method/order to export templates and the correct/order to import them? Thanks.
~Rodre
Can someone from the Cacti team elaborate on the correct method/order to export templates and the correct/order to import them? Thanks.
~Rodre
I am using version 0.8.6f with all the recent patches (as of yesterday) and RRDTool v1.0.49 (Fedora 4 RPM).
Every time I choose the "Save File Locally" radio button and click on the "create" button, Internet Explorer gives me a wack of errors, so I usually just choose the "Output to the Browser (within Cacti)" radio button and then cut and paste the output to notepad. Maybe this is the error in my ways?
I need to try to export using another browser, what are you guys using as a browser?
~Rodre
Every time I choose the "Save File Locally" radio button and click on the "create" button, Internet Explorer gives me a wack of errors, so I usually just choose the "Output to the Browser (within Cacti)" radio button and then cut and paste the output to notepad. Maybe this is the error in my ways?
I need to try to export using another browser, what are you guys using as a browser?
~Rodre
Who is online
Users browsing this forum: No registered users and 1 guest