NCPA PRM Packages for SuSe 11 and 12 appear to be for REHL

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
minnow
Posts: 17
Joined: Thu Jan 30, 2014 3:38 pm

NCPA PRM Packages for SuSe 11 and 12 appear to be for REHL

Post by minnow »

I tried to install the SuSe 11 NCPS RPM Package and it's looking for a -a option that's not available on SuSe, but it is on REHL servers, which leads me to beleave these pacages are not the right ones for SeSu 11 and 12, didn't look at V13 yet:
root@dfwlxora01 # rpm -ivh --nomd5 ncpa-1.8.1-1.os11.x86_64.rpm
Preparing... ########################################### [100%]
nagios:x:291:115:User for Nagios:/var/lib/nagios:/bin/false
usermod: invalid option -- 'a'
Try `usermod --help' or `usermod --usage' for more information.
error: %pre(ncpa-1.8.1-1.x86_64) scriptlet failed, exit status 2
error: install: %pre scriptlet failed (2), skipping ncpa-1.8.1-1
root@dfwlxora01 # more /etc/issue

Welcome to SUSE Linux Enterprise Server 11 SP3 for VMware (x86_64) - Kernel \r (\l).

Here is the path where I down loaded these RPM packages from:

https://assets.nagios.com/downloads/ncpa/download.php
The following prm packages appear to be for Red Hat and not SuSe
SLES/OpenSUSE 11.x ncpa-1.8.1-1.os11.i586.rpm ncpa-1.8.1-1.os11.x86_64.rpm
SLES/OpenSUSE 12.x ncpa-1.8.1-1.os12.i586.rpm ncpa-1.8.1-1.os12.x86_64.rpm
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: NCPA PRM Packages for SuSe 11 and 12 appear to be for RE

Post by hsmith »

minnow wrote:I tried to install the SuSe 11 NCPS RPM Package and it's looking for a -a option that's not available on SuSe, but it is on REHL servers, which leads me to beleave these pacages are not the right ones for SeSu 11 and 12, didn't look at V13 yet:
root@dfwlxora01 # rpm -ivh --nomd5 ncpa-1.8.1-1.os11.x86_64.rpm
Preparing... ########################################### [100%]
nagios:x:291:115:User for Nagios:/var/lib/nagios:/bin/false
usermod: invalid option -- 'a'
Try `usermod --help' or `usermod --usage' for more information.
error: %pre(ncpa-1.8.1-1.x86_64) scriptlet failed, exit status 2
error: install: %pre scriptlet failed (2), skipping ncpa-1.8.1-1
root@dfwlxora01 # more /etc/issue

Welcome to SUSE Linux Enterprise Server 11 SP3 for VMware (x86_64) - Kernel \r (\l).

Here is the path where I down loaded these RPM packages from:

https://assets.nagios.com/downloads/ncpa/download.php
The following prm packages appear to be for Red Hat and not SuSe
SLES/OpenSUSE 11.x ncpa-1.8.1-1.os11.i586.rpm ncpa-1.8.1-1.os11.x86_64.rpm
SLES/OpenSUSE 12.x ncpa-1.8.1-1.os12.i586.rpm ncpa-1.8.1-1.os12.x86_64.rpm
I'll fire an SLES machine up here(this may take awhile) to test this one out, but for now can I ask if NRPE is a valid option? It's a lot more supported at this time.
Former Nagios Employee.
me.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: NCPA PRM Packages for SuSe 11 and 12 appear to be for RE

Post by hsmith »

SLES 12:

Code: Select all

linux-v5q3:~ # rpm -ivh --nomd5 ncpa-1.8.1-1.os12.x86_64.rpm
Preparing...                          ################################# [100%]
Updating / installing...
   1:ncpa-1.8.1-1                     ################################# [100%]

Note: This output shows SysV services only and does not include native
systemd services. SysV configuration data might be overridden by native
systemd configuration.

If you want to list systemd services use 'systemctl list-unit-files'.
To see services enabled on particular target use
'systemctl list-dependencies [target]'.

ncpa_listener             0:off  1:off  2:on   3:on   4:on   5:on   6:off

Note: This output shows SysV services only and does not include native
systemd services. SysV configuration data might be overridden by native
systemd configuration.

If you want to list systemd services use 'systemctl list-unit-files'.
To see services enabled on particular target use
'systemctl list-dependencies [target]'.

ncpa_passive              0:off  1:off  2:on   3:on   4:on   5:on   6:off
Started listener...
Started passive agent...
Former Nagios Employee.
me.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: NCPA PRM Packages for SuSe 11 and 12 appear to be for RE

Post by hsmith »

Installed on SLES 11 as well. No -a option, can you please verify that you tried the right file?
Former Nagios Employee.
me.
minnow
Posts: 17
Joined: Thu Jan 30, 2014 3:38 pm

Re: NCPA PRM Packages for SuSe 11 and 12 appear to be for RE

Post by minnow »

This is the RPM package that I tried to install "ncpa-1.8.1-1.os11.x86_64.rpm", you can see the command I issued in my 1st post.

Also, NRPE is a option and that's what I have deployed to most of my servers at this time. I was hoping to convert things over to NCPA, so the local file system would be automatically discoveried on all the servers and prevent me from having to manually manage and maintain the nrep.cfg files on the local agents.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: NCPA PRM Packages for SuSe 11 and 12 appear to be for RE

Post by hsmith »

minnow wrote:This is the RPM package that I tried to install "ncpa-1.8.1-1.os11.x86_64.rpm", you can see the command I issued in my 1st post.

Also, NRPE is a option and that's what I have deployed to most of my servers at this time. I was hoping to convert things over to NCPA, so the local file system would be automatically discoveried on all the servers and prevent me from having to manually manage and maintain the nrep.cfg files on the local agents.
Okay so I had a weird experience with this.

From my history file...

24 2015-08-28 10:33:31 rpm -qa | grep ncpa - find the package I had installed already
25 2015-08-28 10:33:51 rpm -e ncpa-1.8.1-1 - remove said package
26 2015-08-28 10:34:01 rpm -ivh --nomd5 ncpa-1.8.1-1.os11.x86_64.rpm - install the package again... got the same error you are!
27 2015-08-28 10:34:49 history - verify that I used the same command as last time, you know, self doubt :P
28 2015-08-28 10:35:04 ls -l - not sure why i did this, I guess I wanted to make sure it was the same package.
29 2015-08-28 10:35:09 vim /etc/passwd - had an idea to try to delete the nagios user
30 2015-08-28 10:35:26 vim /etc/shadow - see above comment
31 2015-08-28 10:35:37 vim /etc/group - see above comment except with nagcmd group instead of nagios user.

It installed after I did all that this time...

So, try those steps, something funky is going on.

1 2015-08-27 16:06:00 wget https://assets.nagios.com/downloads/ncp ... x86_64.rpm first thing in my history file..
Former Nagios Employee.
me.
Locked