"no managed servers found" via HMC rest api after xormon installation
in XORMON
Hi guys!
So I'm running all lpar2rrd/stor2rrd and now Xormon on one machine (Ubuntu).
HMC rest api fetches worked fine until I installed Xormon (xormon also working fine).
When I do the connection check, result is that API works, but no managed servers are found, and no data is collected. But they are definitely there. If I switch the same HMC to "HMC CLI (SSH)" option, all data is collected as normal, so data is also there.
Any advice where to look at?
BR
Sebastian
API host network connection: TCP connection to hmc-XXXXX:12443 is OK.
API authorization (lpar2rrd): OK
API data test
no managed servers found
Here is the last output in the logfiles (HMC name changed due to security reasons):
So I'm running all lpar2rrd/stor2rrd and now Xormon on one machine (Ubuntu).
HMC rest api fetches worked fine until I installed Xormon (xormon also working fine).
When I do the connection check, result is that API works, but no managed servers are found, and no data is collected. But they are definitely there. If I switch the same HMC to "HMC CLI (SSH)" option, all data is collected as normal, so data is also there.
Any advice where to look at?
BR
Sebastian
hmc-XXXXX host connection testClose
API host network connection: TCP connection to hmc-XXXXX:12443 is OK.
API authorization (lpar2rrd): OK
API data test
Here is the last output in the logfiles (HMC name changed due to security reasons):
==> error.log-hmc_rest_api <==
(... cut due repeating lines)
[Thu Apr 29 07:40:08 2021] hmc_rest_api.pl: Unsuccessful stat on filename containing newline at /usr/share/perl5/XML/Simple.pm line 962.
==> load_hmc_rest_api_conf.out <==
hmc_rest_api.pl pid:52088
Started hmc_rest_api.pl pid:52088 hmc-XXXXX
Host Config loaded pid:52088 hmc-XXXXX
Rest API 2021-04-29 07:20:05 : Logging out of sessions from hmc-XXXXX
Get Session Error : File does not exist: 500 Unexpected keys - LocalHost, PeerPort
at /data/lpar2rrd/bin/hmc_rest_api.pl line 2649.
Rest API 2021-04-29 07:20:09 : * start callAPI https://hmc-XXXXX:12443/rest/api/uom/ManagementConsole
API Error (general) at hmc-XXXXX at https://hmc-XXXXX:12443/rest/api/uom/ManagementConsole File: /data/lpar2rrd/bin/hmc_rest_api.pl:2729
Rest API error 1111 : File does not exist: 500 Unexpected keys - LocalHost, PeerPort
at /data/lpar2rrd/bin/hmc_rest_api.pl line 2769.
==> load_hmc_rest_api_conf.prev <==
hmc_rest_api.pl pid:9370
Started hmc_rest_api.pl pid:9370 hmc-XXXXX
Host Config loaded pid:9370 hmc-XXXXX
Rest API 2021-04-29 07:00:08 : Logging out of sessions from hmc-XXXXX
Get Session Error : File does not exist: 500 Unexpected keys - LocalHost, PeerPort
at /data/lpar2rrd/bin/hmc_rest_api.pl line 2649.
Rest API 2021-04-29 07:00:13 : * start callAPI https://hmc-XXXXX:12443/rest/api/uom/ManagementConsole
API Error (general) at hmc-XXXXX at https://hmc-XXXXX:12443/rest/api/uom/ManagementConsole File: /data/lpar2rrd/bin/hmc_rest_api.pl:2729
Rest API error 1111 : File does not exist: 500 Unexpected keys - LocalHost, PeerPort
at /data/lpar2rrd/bin/hmc_rest_api.pl line 2769.
==> load_hmc_rest_api.out <==
skipped this time : ( 1619682003 - 1619676007 ) < 86400
creating m_hmc : hmc-XXXXX:d-total
creating m_hmc : hmc-XXXXX:w-total
creating m_hmc : hmc-XXXXX:m-total
creating m_hmc : hmc-XXXXX:y-total
creating l_hmc : hmc-XXXXX:d - LPARs aggregated per a HMC
skipped this time : ( 1619682003 - 1619676007 ) < 18000
skipped this time : ( 1619682003 - 1619676007 ) < 39600
skipped this time : ( 1619682003 - 1619676007 ) < 86400
date end : hmc-XXXXX Thu Apr 29 07:40:03 2021
load_hmc_rest_api.sh end 69131
LPAR2RRD alert script v:7.10, started: Thu Apr 29 07:40:04 2021
Alert configuration :/data/lpar2rrd/etc/web_config/alerting.cfg
Finished : Thu Apr 29 07:40:04 2021, run time: 0 secs
An error occured in lpar2rrd, check /data/lpar2rrd/logs/error.log-alrt and output of load.sh
$ tail -2 /data/lpar2rrd/logs/error.log-alrt
[Thu Apr 29 07:40:04 2021] alrt.pl: Use of uninitialized value $name_rep in string at /data/lpar2rrd/bin/alrt.pl line 1195.
[Thu Apr 29 07:40:04 2021] alrt.pl: Use of uninitialized value $name_rep_prev in regexp compilation at /data/lpar2rrd/bin/alrt.pl line 1195.
==> load_hmc_rest_api.prev <==
Perl version : 5.026001
All chld finish: hmc-XXXXX
Skip get_cfg_server sub. use rest api
creating m_hmc : hmc-XXXXX:d
creating m_hmc : hmc-XXXXX:w
creating m_hmc : hmc-XXXXX:m
creating m_hmc : hmc-XXXXX:y
creating l_hmc : hmc-XXXXX:d - LPARs aggregated per a HMC
skipped this time : ( 1619682003 - 1619676007 ) < 18000
skipped this time : ( 1619682003 - 1619676007 ) < 39600
skipped this time : ( 1619682003 - 1619676007 ) < 86400
creating m_hmc : hmc-XXXXX:d-total
creating m_hmc : hmc-XXXXX:w-total
creating m_hmc : hmc-XXXXX:m-total
creating m_hmc : hmc-XXXXX:y-total
creating l_hmc : hmc-XXXXX:d - LPARs aggregated per a HMC
skipped this time : ( 1619682003 - 1619676007 ) < 18000
skipped this time : ( 1619682003 - 1619676007 ) < 39600
skipped this time : ( 1619682003 - 1619676007 ) < 86400
date end : hmc-XXXXX Thu Apr 29 07:40:03 2021
Comments
-
Hi,
it looks like it tries to comunicate via http (https is needed).
. etc/lpar2rrd.cfg ; $PERL bin/hmc-restapi-test.pl your_hmc_ip "DEBUG_BAD_HMC" | grep -vi pass > o.txt;
Send us the output of the command above via https://upload.lpar2rrd.com
Note a short description or link to this thread in the form. Thanks.
-
send, thx!
-
Update:
After quick analysis from Xorux it came to light that I missed out the update of the VMWare Perl SDK on my ubuntu machine. (See here: https://www.lpar2rrd.com/https.php#VMware)
After that step, it works. Thank you guys!
Have a nice day
BR
Sebastian
Howdy, Stranger!
Categories
- 1.6K All Categories
- 41 XORMON NG
- 25 XORMON
- 149 LPAR2RRD
- 13 VMware
- 16 IBM i
- 2 oVirt / RHV
- 4 MS Windows and Hyper-V
- Solaris / OracleVM
- XenServer / Citrix
- Nutanix
- 6 Database
- 2 Cloud
- 10 Kubernetes / OpenShift / Docker
- 122 STOR2RRD
- 19 SAN
- 7 LAN
- 17 IBM
- 3 EMC
- 12 Hitachi
- 5 NetApp
- 15 HPE
- Lenovo
- 1 Huawei
- 1 Dell
- Fujitsu
- 2 DataCore
- INFINIDAT
- 3 Pure Storage
- Oracle