|
|
| Author |
Message |
tapufd Cacti User
Joined: 19 Aug 2004 Posts: 55 Location: Belgium
|
Posted: Thu Sep 02, 2004 1:53 pm Post subject: Problems with Host MIB - Available Disk Space (0.8.6) |
|
|
I'm trying the new 0.8.6 and have the following problem :
- add a new windows host (under devices) --> is OK
- searching for the following items on the windows host :
* SNMP - Get Mounted Partitions --> all found --> OK
* SNMP - Get Processor Information --> all found --> OK
* SNMP - Interface Statistics --> all found --> OK
- Following Graph Templates are selected :
* Host MIB - Available Disk Space
* Host MIB - CPU Utilization
* Interface - Traffic (bits/sec)
- click on 'Create Graphs for this Host'
- on this page I see all avialable items from the host
- creating graphs for cpus --> OK
creating graphs for interfaces --> OK
creating graphs for Mounted Partitions --> NOT OK
- the data sources and graph for the volumes are created, but are created as follow : SERVERNAME - Used Space - |query_hrStorageDescr|.
|query_hrStorageDescr| is not replaced with the volume name, and when opening the data sources I see that :
* the Data Source Path is NOT always filled in
* Index Type = Data query data sources must be created through New Graphs.
* Index Value is OK
* Output Type ID = Data query data sources must be created through New Graphs.
* the rrd's are also NOT created
Have tried several servers, and it's the same for all. Have also seen that always a general data source and graph is created, pointing to nothing. I mean like this :
SERVERNAME - Used Space - C -> OK
SERVERNAME - Used Space - D -> OK
SERVERNAME - Used Space - E -> OK
SERVERNAME - Available Disk Space -> why is this added?
This is for all data sources, so also for cpu, interfaces, netware cpu/volume, ... . (saw that this was also the case for 0.8.5a)
If you don't understand what I mean, I can always put some screenshots if you want?!
Thanks. |
|
| Back to top |
|
 |
raX Lead Developer
Joined: 13 Oct 2001 Posts: 2234 Location: Carlisle, PA
|
Posted: Thu Sep 02, 2004 8:05 pm Post subject: |
|
|
Can you reproduce this same behavior on a fresh database (from cacti.sql) in the latest pre-release build? Creating the get mounted partitions graphs seemed to work fine for me.
Is it possible that your 'data_local' table is corrupt? Try running the following SQL just to be sure:
| Code: | | check table data_local; |
-Ian |
|
| Back to top |
|
 |
tapufd Cacti User
Joined: 19 Aug 2004 Posts: 55 Location: Belgium
|
Posted: Fri Sep 03, 2004 4:46 am Post subject: |
|
|
Hi, as you asked :
D:\MySQL\bin>mysql --user=root --password cacti086
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3 to server version: 4.0.20a-nt
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> check table data_local;
+---------------------+-------+----------+----------+
| Table | Op | Msg_type | Msg_text |
+---------------------+-------+----------+----------+
| cacti086.data_local | check | status | OK |
+---------------------+-------+----------+----------+
1 row in set (0.11 sec)
mysql>
- All seems to be OK. If I open the table, I see data.
- This 0.8.6 was a fresh install from the release
cacti-0.8.6-pre20040901.zip. So it was not an update, but a new database from cacti.sql.
- If I open the table data_template_data, I see that name_cache & data_source_path are all filled in (name_cache for partitions has of course |query_hrStorageDescr| in it, but the rrd-filenames are all filled in).
Are there other things I can check for you? Many thanks for this excellent product and the quick reply. |
|
| Back to top |
|
 |
raX Lead Developer
Joined: 13 Oct 2001 Posts: 2234 Location: Carlisle, PA
|
Posted: Fri Sep 03, 2004 10:43 am Post subject: |
|
|
Lets do a little digging...
Go to "Data Sources" and hover over one of the bad data sources with the broken title. Take note of the "id" variable in the URL string.
Now open up a MySQL prompt and run the following SQL query:
| Code: | | select * from data_local where id=ID; | (where ID = what you saw in the URL string)
A few other questions:
What is the "Data Input Method" reported for the broken data source? For new 0.8.6 installations it should be "Get Script Server Data (Indexed)".
If you go to "Data Input Methods" on the menu and select the "Get Script Server Data (Indexed)" item, what do you see listed inside of the "Input Fields" box? If you click on each of these input fields, do you see something listed in the "Special Type Code" field?
-Ian |
|
| Back to top |
|
 |
tapufd Cacti User
Joined: 19 Aug 2004 Posts: 55 Location: Belgium
|
Posted: Fri Sep 03, 2004 11:08 am Post subject: |
|
|
These are the results of ... :
the ids are 79 until 83, and all give the following :
| Code: | mysql> select * from data_local where id=79;
+----+------------------+---------+---------------+------------+
| id | data_template_id | host_id | snmp_query_id | snmp_index |
+----+------------------+---------+---------------+------------+
| 79 | 43 | 8 | 0 | |
+----+------------------+---------+---------------+------------+
1 row in set (0.00 sec)
mysql> |
The "Data Input Method" is for all : Get Script Server Data (Indexed)
The "Input Fields" box gives the following :
Name | Field Order | Friendly Name
index_type | 0 (Not In Use) | Index Type
index_value | 0 (Not In Use) | Index Value
output_type | 0 (Not In Use) | Output Type ID
Special Type Code for :
1st item : index_type
2nd item : index_value
3th item : output_type
Hope this helps you (and me )
Greets,
Tap |
|
| Back to top |
|
 |
raX Lead Developer
Joined: 13 Oct 2001 Posts: 2234 Location: Carlisle, PA
|
Posted: Fri Sep 03, 2004 8:30 pm Post subject: |
|
|
Little did I know, this problem is only reproducible on Windows! After a bit of digging through the code I did find the cause of the problem. I re-pushed the 20040903 pre-release if you want to give that a try.
-Ian |
|
| Back to top |
|
 |
tapufd Cacti User
Joined: 19 Aug 2004 Posts: 55 Location: Belgium
|
Posted: Sat Sep 04, 2004 5:51 am Post subject: |
|
|
Hi raX,
You solved the problem! THANKS!
Sorry for not mentioning my specs. Normally this is the first thing I do in a new post.
So : Windows XP (& 2003 Server); MySql 4.0.20D; php 5.01; cacti 0.8.6; net-snmp-5.1.2-1; rrdtool-1.0.4
Anyway, investigating in 0.8.6 a little deeper, I have found some other 'bugs', I think :
* On every graph-page I see the following text at the bottom :
PHP Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in D:\Cacti\Website086\include\html\inc_timespan_settings.php on line 42 PHP Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in D:\Cacti\Website086\include\html\inc_timespan_settings.php on line 54 PHP Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in D:\Cacti\Website086\include\html\inc_timespan_settings.php on line 114 PHP Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in D:\Cacti\Website086\include\html\inc_timespan_settings.php on line 121 PHP Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of set_preset_timespan(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in D:\Cacti\Website086\include\html\inc_timespan_settings.php on line 239
When I open inc_timespan_settings.php and go to each line mentioned, I find "&$timespan". If you remove the "&" char, the messages disappear.
* Have also seen that always a general data source and graph is created, pointing to nothing. I mean like this :
SERVERNAME - Used Space - C -> OK
SERVERNAME - Used Space - D -> OK
SERVERNAME - Used Space - E -> OK
SERVERNAME - Available Disk Space -> why is this added?
This is for all data sources, so also for cpu, interfaces, netware cpu/volume, ... . (saw that this was also the case for 0.8.5a)
I have to delete then these data sources (+ graphs) everytime after creating/adding data sources, so that cacti is in a clean state.
Many thanks already, again, and again.
Greets,
/tap |
|
| Back to top |
|
 |
raX Lead Developer
Joined: 13 Oct 2001 Posts: 2234 Location: Carlisle, PA
|
Posted: Thu Sep 09, 2004 8:10 pm Post subject: |
|
|
| tapufd wrote: | | When I open inc_timespan_settings.php and go to each line mentioned, I find "&$timespan". If you remove the "&" char, the messages disappear. |
I went ahead and did this. The changes are in CVS.
| tapufd wrote: | * Have also seen that always a general data source and graph is created, pointing to nothing. I mean like this :
SERVERNAME - Used Space - C -> OK
SERVERNAME - Used Space - D -> OK
SERVERNAME - Used Space - E -> OK
SERVERNAME - Available Disk Space -> why is this added?
This is for all data sources, so also for cpu, interfaces, netware cpu/volume, ... . (saw that this was also the case for 0.8.5a) |
Can't say that I've seen this before. It almost looks like you're trying to create a template meant to be created through a data query manually. Hopefully the next version will prevent users from doing this as to prevent this kind of confusion.
-Ian |
|
| Back to top |
|
 |
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|