Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
After the upgrade problems I had, i've just reinstalled cacti from scratch.
I'm running on an upgrade 7.3 redhat box with net-snmp-5.0.6. All stats i'm collecting are via snmp.
Since then i have been unable to poll my windows servers for cpu info. I'm also unable to poll for partition/disk space usage via snmp.
One of my linux hosts is having problems also. Polling a Linux server (same server cacti runs on) via snmp results in only some partition info.
I get / and /var, but i'm missing two partitions under /export.
From snmpwalk for the linux box(trimmed for brevity) -
I have been troubled by the same problem were the CPU and disk information in the polling host are empty when querying my W2K and W2K3 boxes. At first I thought I had done something wrong when upgrading from version 8.2a. I will try changing the code before I go back to version 8.2a.
golemb wrote:I have been troubled by the same problem were the CPU and disk information in the polling host are empty when querying my W2K and W2K3 boxes. At first I thought I had done something wrong when upgrading from version 8.2a. I will try changing the code before I go back to version 8.2a.
This problem was solved for me by changing the two lines of code as described above.
Coeus wrote:There is still no disk space information being returned for either windows or linux.
This is still working for me on my 0.8.3a installation. Are you saying that when you execute the data query against these hosts, you get no partitions in return? What data queries are you using for your Linux and for your Windows servers?
Thanks Rax for the code change you posted. After changing the code the CPU and disk volume information is displayed in the polling host screen. Also the disk space graphs still do not display anything but a X red. The CPU graphs work for my systems that have dual CPUs but not for a single CPU system? When I try to create the graph for a single processor unit the only thing that I can see is the IndexType drop down list is empty.
Create 1 Graph from SNMP Query
SNMP Query [SNMP - Get Processor Information]
Host MIB - CPU Utilization -> Index Type
The data for each new graph will be indexed off of the following field. Certain fields may have been removed from the list if they do not contain unique data. It is best to choose a field whose value never changes.
golemb wrote:Also the disk space graphs still do not display anything but a X red.
What happens if you delete the disk space data sources/graphs and re-create them? Do these items appear in your poller cache?
golemb wrote:The CPU graphs work for my systems that have dual CPUs but not for a single CPU system? When I try to create the graph for a single processor unit the only thing that I can see is the IndexType drop down list is empty.
That was an interesting enough bug. To fix, open up 'include/database.php' and change line 129 from:
raX wrote:
This problem was solved for me by changing the two lines of code as described above.
Coeus wrote:There is still no disk space information being returned for either windows or linux.
This is still working for me on my 0.8.3a installation. Are you saying that when you execute the data query against these hosts, you get no partitions in return? What data queries are you using for your Linux and for your Windows servers?
-Ian
The code fix allowed me to query for the partitions and create the graphs - Just that no data is being returned.
Since that post i've got the linux partitions working using the "ucd/net Hard Drive Space" query, but I cant get data back from the Generic SNMP query (Problem wih local MIB...?) for either linux or win2k server.
Coeus wrote:The code fix allowed me to query for the partitions and create the graphs - Just that no data is being returned.
This part does appear to work for me. If you look at your poller cache, what is Cacti trying to execute to gather CPU data?
-Ian
CPU data is ok. Its the disk space thats causing problems.
The poller cache shows the following for the disk space queries.
Data Source: Exchange - Used Space - C: Label: Seri
RRD: /export/software1/www/cacti/rra/exchange_hdd_used_63.rrd
Action: 1, Script: /usr/bin/php -q /export/software1/www/cacti/scripts/query_host_partitions.php ip.address cString get total 2
Running that manually gives: 18161414144 Which looks correct to me, but doesn't update the graph.
if ((empty($array{count($array)-1})) && (sizeof($array) > 1)) {
-Ian
Thanks Ian that fixed the CPU graph problem. It now puts an index value and the graph displays. Very happy Still having problems getting the disk space graph to work. The drive volumes are displayed in the polling host but in graph management debug screen I get the error
ERROR: opening '/var/www/html/cacti/rra/w2k3_pdc_hdd_used_43.rrd': No such file or directory Something is causing it not to create the rrd file?
I have tried clearing the polling cache and in the view poller cache I have the following value of 3 for the system I am graphing disk space. I am assuming this means it is getting a meaningfull return value.
Data Source: W2k3 PDC - Used Space - D: Label: Seri
RRD: /var/www/html/cacti/rra/w2k3_pdc_hdd_used_43.rrd
Action: 1, Script: /usr/bin/php -q /var/www/html/cacti/scripts/query_host_partitions.php 192.168.x.x tpublic get total 3
I hope that I have provided enough information for you. If not please ask. Thanks again for such a great product.
golemb wrote:I have tried clearing the polling cache and in the view poller cache I have the following value of 3 for the system I am graphing disk space. I am assuming this means it is getting a meaningfull return value.
Data Source: W2k3 PDC - Used Space - D: Label: Seri
RRD: /var/www/html/cacti/rra/w2k3_pdc_hdd_used_43.rrd
Action: 1, Script: /usr/bin/php -q /var/www/html/cacti/scripts/query_host_partitions.php 192.168.x.x tpublic get total 3
Sounds like we might be running into a max problem (like suggested above). My recommendation is that you go to "Data Templates" and select "Host MIB - Hard Drive Space". Change the maximum value here from '10000000000' to '0' for bothhdd_total and hdd_used. Then re-run cmd.php and see if you get any .rrd files this time.