ncpa for s390x cpu structure

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
sacom01
Posts: 194
Joined: Wed Dec 23, 2020 10:15 pm

ncpa for s390x cpu structure

Post by sacom01 »

hi,
we are going to golive IBM s390x cpu structure system Z.
Do we have ncpa package for this structure?
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: ncpa for s390x cpu structure

Post 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
You do not have the required permissions to view the files attached to this post.
sacom01
Posts: 194
Joined: Wed Dec 23, 2020 10:15 pm

Re: ncpa for s390x cpu structure

Post 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
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: ncpa for s390x cpu structure

Post 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
sacom01
Posts: 194
Joined: Wed Dec 23, 2020 10:15 pm

Re: ncpa for s390x cpu structure

Post 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
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: ncpa for s390x cpu structure

Post by gsmith »

Hi

Please send me the output of:

Code: Select all

cat /etc/os-release
Thanks!
sacom01
Posts: 194
Joined: Wed Dec 23, 2020 10:15 pm

Re: ncpa for s390x cpu structure

Post by sacom01 »

[root@05 ~]# cat /etc/redhat-release
Red Hat Enterprise Linux release 8.4 (Ootpa)
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: ncpa for s390x cpu structure

Post 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
sacom01
Posts: 194
Joined: Wed Dec 23, 2020 10:15 pm

Re: ncpa for s390x cpu structure

Post 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]#
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: ncpa for s390x cpu structure

Post 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
Locked