lpar2rrd-agent.pl 7.90 starts wlmstat on an lpar
A collegae noticed that wlmstat is started on an lpar. This results in an exitcode <> 0.
We see a test for this in the code but we think the test is wrong.
on lines 2625 and 3918 it says:
if ( $os =~ /AIX/ && ( $wpar_id eq '' || !$wpar_id > 0 || !isdigit($wpar_id) ) ) {
We think it should be converted to:
if ( $os =~ /AIX/ && ( $wpar_id eq '' || $wpar_id > 0 || !isdigit($wpar_id) ) ) {
Notice the exclamation mark on the second $wpar_id I am not a perl programmer so I cannot realy say if this is the rigth solution.
I hope this is the right place to post this. I couldn't find a bug tracker
Comments
-
is there any problem with WLM data?
Do you see WLM graphs under lpar2rrd UI?
-
This is an lpar without a running wlm. We don's see output wlm output in the gui.
This is what I see when I start wlmstat:
[root]:/root # wlmstat
1495-104 WLM must be started.
[root]:/root # echo $?
1
We run lpar2rrd-agent from cron and we see these errors in /var/adm/cron/log
root : CMD ( /usr/bin/perl /opt/lpar2rrd-agent/lpar2rrd-agent.pl <removed>:8162 >> /var/log/lpar2rrd-agent.out 2>&1 ) : PID ( 13042166 ) : Wed Jul 24 09:59:00 2024
<lines removed>
Cron Job with pid: 13042166 Failed
-
and this causes the agent to exit with uncorrrectly? No ...
what happens when you make the change you suggested, any difference in cronlog?
Howdy, Stranger!
Categories
- 1.6K All Categories
- 44 XORMON NG
- 25 XORMON
- 152 LPAR2RRD
- 13 VMware
- 16 IBM i
- 2 oVirt / RHV
- 4 MS Windows and Hyper-V
- Solaris / OracleVM
- XenServer / Citrix
- Nutanix
- 7 Database
- 2 Cloud
- 10 Kubernetes / OpenShift / Docker
- 123 STOR2RRD
- 19 SAN
- 7 LAN
- 17 IBM
- 3 EMC
- 12 Hitachi
- 5 NetApp
- 15 HPE
- Lenovo
- 1 Huawei
- 2 Dell
- Fujitsu
- 2 DataCore
- INFINIDAT
- 3 Pure Storage
- Oracle