[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[LDM #DCL-924284]: Wrong metrics.txt file location for plotMetrics



Tom,

The plotMetrics(1) utility isn't intended to be directly executed by the user; 
instead, the command "ldmadmin plotmetrics" should be used. Let me know if that 
doesn't work for you.

> Summary: plotMetrics command is reading the wrong metrics file.
> 
> I am running LDM version 6.12.14.
> 
> When I run ~ldm/bin/plotMetrics, it reports the following errors:
> -bash-4.1$ ./plotMetrics ~/var/logs/metrics.txt
> ./plotMetrics: line 62: /tmp/metrics.txt: Permission denied
> 2015-05-06 08:03:26 (304 KB/s) - `/dev/null' saved [4/4]
> /tmp/metrics.txt:1:         line 0: illegal month
> 
> 2015-05-06 08:03:26 (304 KB/s) - `/dev/null' saved [4/4]
> /tmp/metrics.txt:1:         line 0: illegal month
> 
> 2015-05-06 08:03:26 (304 KB/s) - `/dev/null' saved [4/4]
> /tmp/metrics.txt:1:         line 0: illegal month
> 
> 2015-05-06 08:03:26 (304 KB/s) - `/dev/null' saved [4/4]
> /tmp/metrics.txt:1:         line 0: illegal month
> 
> 2015-05-06 08:03:26 (304 KB/s) - `/dev/null' saved [4/4]
> /tmp/metrics.txt:1:         line 0: illegal month
> 
> 2015-05-06 08:03:26 (304 KB/s) - `/dev/null' saved [4/4]
> /tmp/metrics.txt:1:         line 0: illegal month
> 
> 2015-05-06 08:03:26 (304 KB/s) - `/dev/null' saved [4/4]
> /tmp/metrics.txt:1:         line 0: illegal month
> 
> 2015-05-06 08:03:26 (304 KB/s) - `/dev/null' saved [4/4]
> /tmp/metrics.txt:1:         line 0: illegal month
> 
> Verify the format of temporary data-file /tmp/metrics.txt
> 
> /tmp/metrics.txt is owned by root and has this content:
> 2015-05-06 08:03:26 (304 KB/s) - `/dev/null' saved [4/4]
> 2015-05-06 08:06:37 (318 MB/s) - `/root/cobbler.ks' saved [10390/10390]
> 2015-05-06 08:06:38 (262 KB/s) - `/dev/null' saved [4/4]
> 2015-05-06 08:06:38 (292 KB/s) - `/dev/null' saved [4/4]
> 
> However, the metrics file is set to /usr/local/ldm/var/logs/metrics.txt as 
> you see below:
> -bash-4.1$ regutil | grep metrics
> /metrics/count : 4
> /metrics/file : /usr/local/ldm/var/logs/metrics.txt
> /metrics/files : /usr/local/ldm/var/logs/metrics.txt*
> 
> Why is plotMetrics reading the metric.txt file in /tmp?
> How can I get plotMetrics to read the metrics.txt file specified in 
> registry.xml?
> 
> 
> Tom Jordan, MSCS


Regards,
Steve Emmerson

Ticket Details
===================
Ticket ID: DCL-924284
Department: Support LDM
Priority: Normal
Status: Closed