Page 1 of 3

ncpa for s390x cpu structure

Posted: Mon Nov 08, 2021 4:06 am
by sacom01
hi,
we are going to golive IBM s390x cpu structure system Z.
Do we have ncpa package for this structure?

Re: ncpa for s390x cpu structure

Posted: Mon Nov 08, 2021 12:56 pm
by gsmith
Hi,

Unfortunately we do not have binaries for that platform, however the source code
is available if you would like to build your own.

Go to: https://github.com/NagiosEnterprises/ncpa, if you scroll down to
the bottom of the page you'll see:
Image012.jpg
Please let me know if you have anymore questions.

Thanks

Re: ncpa for s390x cpu structure

Posted: Wed Nov 10, 2021 11:15 pm
by sacom01
hi,
i tried but faced to issue :
[root@HO- build]# ./build.sh
: invalid option


[root@HO- ncpa]# ./build/linux/setup.sh
/backup/softs/ncpa/build//linux/init.sh: line 2: $'\r': command not found
/backup/softs/ncpa/build//linux/init.sh: line 7: $'\r': command not found
/backup/softs/ncpa/build//linux/init.sh: line 9: $'\r': command not found
/backup/softs/ncpa/build//linux/init.sh: line 24: syntax error near unexpected token `elif'
'backup/softs/ncpa/build//linux/init.sh: line 24: ` elif rpm -q sl-release; then
[root@HO- ncpa]# pwd

Re: ncpa for s390x cpu structure

Posted: Thu Nov 11, 2021 3:43 pm
by gsmith
Hi

There should be a log file:

Code: Select all

/root/ncpa/build/build.log
Could you please send it to me?

Thanks

Re: ncpa for s390x cpu structure

Posted: Fri Nov 12, 2021 2:04 am
by sacom01
[root@HO-build]# less /root/ncpa/build/build.log
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
/root/ncpa/build/build.log: No such file or directory


yum install epel-release
** WARNING: This should not be done on a production system. **
Automatically install system pre-reqs? [Y/n] Y
Updating Subscription Management repositories.
Unable to read consumer identityThis system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.Last metadata expiration check: 0:25:18 ago on Fri 12 Nov 2021 09:02:46 AM +07.
No match for argument: epel-release
Error: Unable to find a match: epel-release
[root@HO- build]# ^C

Re: ncpa for s390x cpu structure

Posted: Fri Nov 12, 2021 11:59 am
by gsmith
Hi

Please send me the output of:

Code: Select all

cat /etc/os-release
Thanks!

Re: ncpa for s390x cpu structure

Posted: Sun Nov 14, 2021 8:40 pm
by sacom01
[root@05 ~]# cat /etc/redhat-release
Red Hat Enterprise Linux release 8.4 (Ootpa)

Re: ncpa for s390x cpu structure

Posted: Mon Nov 15, 2021 1:13 pm
by gsmith
Hi

One of your earlier messages shows:

Code: Select all

Updating Subscription Management repositories.
Unable to read consumer identityThis system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.Last metadata expiration check: 0:25:18 ago on Fri 12 Nov 2021 09:02:46 AM +07.
You'll need to register your system with RedHat. From the CLI:

Code: Select all

subscription-manager register
It will ask you for your RH developer account credentials

Then run the following to install the epel repo.

Code: Select all

subscription-manager attach
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
yum update
subscription-manager repos --enable "codeready-builder-for-rhel-8-*-rpms"
Now you can try building ncpa from the source files.

Please let me know how things go.

Thanks

Re: ncpa for s390x cpu structure

Posted: Mon Nov 15, 2021 9:18 pm
by sacom01
yum install https://dl.fedoraproject.org/pub/epel/e ... noarch.rpm --> installed to server.

after that run build.sh it was getting error.
Notice : my system is offline system, unable to connect to internet.

[root@HO-09 build]# ./build.sh
/backup/softs/ncpa/build
Linux
Running build for: Linux
Linux



** WARNING: This should not be done on a production system. **
Automatically install system pre-reqs? [Y/n] Y
Updating Subscription Management repositories.
Unable to read consumer identity



This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.



Extra Packages for Enterprise Linux Modular 8 - s390x 0.0 B/s | 0 B 00:00
Errors during downloading metadata for repository 'epel-modular':
- Curl error (6): Couldn't resolve host name for https://mirrors.fedoraproject.org/metal ... contentdir [Could not resolve host: mirrors.fedoraproject.org]
- Curl error (6): Couldn't resolve host name for https://mirrors.fedoraproject.org/metal ... &countme=1 [Could not resolve host: mirrors.fedoraproject.org]
Error: Failed to download metadata for repo 'epel-modular': Cannot prepare internal mirrorlist: Curl error (6): Couldn't resolve host name for https://mirrors.fedoraproject.org/metal ... contentdir [Could not resolve host: mirrors.fedoraproject.org]
[root@HO-09 build]#

Re: ncpa for s390x cpu structure

Posted: Tue Nov 16, 2021 1:27 pm
by gsmith
Hi,

In order to build ncpa from source, you are going to have to make the RHEL8 repos available
to the system you are building them on. Since that system (s390x) is unable to connect to the internet
you are going to have to replicate the RHEL8 repos to the LAN that the s390x is on.

Here is a link to some RH documentation about making repos local:
https://access.redhat.com/solutions/23016

Please let me know if you have any more questions.

Thanks