Page 2 of 3

Re: ncpa for s390x cpu structure

Posted: Tue Nov 16, 2021 9:12 pm
by sacom01
[root@HO-09 ~]# cd /etc/yum.repos.d/
[root@HO-09 yum.repos.d]# more ftp.repo
[BaseOS]
name=BaseOS
#baseurl=ftp:///192.168.xxx.xxx/BaseOS/
baseurl=ftp://ibm:[email protected]/BaseOS
enable=1
gpgcheck=1
#gpgkey=ftp://RPM-GPG-KEY-redhat-release
gpgkey=ftp://ibm:[email protected]/RPM-GP ... at-release

[AppStream]
name=AppStream
enable=1
baseurl=ftp://ibm:[email protected]/AppStream
gpgcheck=1
gpgkey=ftp://ibm:[email protected]/RPM-GP ... at-release

[ftpupdate]
name=ftpupdate
enable=1
baseurl=ftp://ibm:[email protected]/RHEL_Patching
gpgcheck=0
#gpgkey=ftp://ibm:[email protected]/RPM-GP ... at-release

repo_gpgcheck=0
metadata_expire=3600

--> local repo for Linux on S390x already exist but still facing problem.

Re: ncpa for s390x cpu structure

Posted: Wed Nov 17, 2021 10:31 am
by gsmith
Hi

What is the error message? Is it still complaining about the epel repo?

It doesn't look like you have that repo pulled down onto your LAN.

Thanks

Re: ncpa for s390x cpu structure

Posted: Wed Nov 17, 2021 8:48 pm
by sacom01
irepo of epel need connect to internet as well, so we couldn't.
Can we build package in a s390x server then copy to another? or we have to build one by one?

Re: ncpa for s390x cpu structure

Posted: Thu Nov 18, 2021 2:47 pm
by gsmith
Hi,

Yes - if you have a s390x attached to the internet you can compile
the source code there and then copy it to the machine that is not
connected to the internet.

Thanks

Re: ncpa for s390x cpu structure

Posted: Fri Dec 03, 2021 2:17 am
by sacom01
Hi,
We already followed the installation guide on Github https://github.com/NagiosEnterprises/nc ... g-on-linux,
The first step is: cd ncpa/build ; run build.sh --> Already Done.
The second step: cd to another build folder --> We did not found any build folder in ncpa/build/ folder.

Please help us clarify this and instruct for the next step.

Re: ncpa for s390x cpu structure

Posted: Fri Dec 03, 2021 4:36 pm
by benjaminsmith
Hi sacom01,

Can you post the build.log file so we can review that and also the output of the following command?

Code: Select all

ls -l /<path here>/ncpa/build
Thanks,
Benjamin

Re: ncpa for s390x cpu structure

Posted: Mon Dec 06, 2021 1:54 am
by sacom01
I have found a problem when starting service, modules are missed. We currently also have two version of Python2.7 installed on Server, the default is /usr/bin/python2.7 but when running your script is /usr/local/bin/python2.7.

Re: ncpa for s390x cpu structure

Posted: Mon Dec 06, 2021 2:08 pm
by benjaminsmith
Hi,

There's a step missing in the documentation and I'm working to get that updated. My apologies for the inconvenience.

After running the build script, then install the rpm created in that directory, so

Code: Select all

sudo rpm -i ncpa*.rpm
Then check the status of the ncpa listner service.

Code: Select all

systemctl restart ncpa_listener
systemctl status ncpa_listener
Let me know if that works. If you cannot start the service can you post the exact error message? Thanks, Benjamin

Re: ncpa for s390x cpu structure

Posted: Mon Dec 06, 2021 8:29 pm
by sacom01
Hi Benjamin,
I have edited the installation script to use our default python2.7 (/usr/bin/python2.7) and install python packages manually.
The ncpa_passive is working fine, which is not in the case when using your python2.7 (maybe because missing modules, we cannot use yum to update some packages for your python2.7 when setting it as the default).
However, the ncpa_listener is not working (FAILED), because our python2.7 is compiled with UnicodeUCS4 and some of your required packages (gevent) has some variables related to UnicodeUCS2.
Any suggestion, maybe let try again with your compiled python because I cannot compile or change the default one.

Re: ncpa for s390x cpu structure

Posted: Tue Dec 07, 2021 11:31 am
by benjaminsmith
Hi sacom01,

Getting much closer. Unfortunately, we do not have any in-house systems like this test on or maintain official NCPA builds for this operating system.

If you are not able to get it to compile, another option would be to try installing the NRPE agent from the source. It has fewer dependencies than NCPA.

NRPE - How To Install NRPE v4 From Source

Do you have access to any Linux on Z test systems?

-- Benjamin