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

Re: ncpa for s390x cpu structure

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

Re: ncpa for s390x cpu structure

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

Re: ncpa for s390x cpu structure

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

Re: ncpa for s390x cpu structure

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

Re: ncpa for s390x cpu structure

Post 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.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: ncpa for s390x cpu structure

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
sacom01
Posts: 194
Joined: Wed Dec 23, 2020 10:15 pm

Re: ncpa for s390x cpu structure

Post 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.
You do not have the required permissions to view the files attached to this post.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: ncpa for s390x cpu structure

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
sacom01
Posts: 194
Joined: Wed Dec 23, 2020 10:15 pm

Re: ncpa for s390x cpu structure

Post 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.
You do not have the required permissions to view the files attached to this post.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: ncpa for s390x cpu structure

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked