Page 1 of 1

Solaris 10 ncpa error

Posted: Mon Jun 29, 2020 10:29 am
by progressive.nagiosXI
Hi

We are getting below error in ncpa logs in solaris 10 x86 and ncpa service not start.
Ncpa service show in maintenance and not in running state.

Currently python version 2.6 found in solaris server.

If python version need to update ,please suggest how to update python version or resolve below error.

Code: Select all


[ Jun 27 16:43:01 Rereading configuration. ]
[ Jun 27 16:43:01 Executing start method ("/usr/local/ncpa/ncpa_listener") ]
ld.so.1: ncpa_listener: fatal: libpython2.7.so.1.0: open failed: No such file or directory
[ Jun 27 16:43:01 Method "start" failed due to signal KILL ]
[ Jun 27 16:43:01 Executing start method ("/usr/local/ncpa/ncpa_listener") ]
ld.so.1: ncpa_listener: fatal: libpython2.7.so.1.0: open failed: No such file or directory
[ Jun 27 16:43:01 Method "start" failed due to signal KILL ]
[ Jun 27 16:43:01 Executing start method ("/usr/local/ncpa/ncpa_listener") ]
ld.so.1: ncpa_listener: fatal: libpython2.7.so.1.0: open failed: No such file or directory
[ Jun 27 16:43:01 Method "start" failed due to signal KILL ]
[ Jun 27 17:07:20 Rereading configuration. ]
Thanks

Re: Solaris 10 ncpa error

Posted: Mon Jun 29, 2020 5:12 pm
by ssax
Which NCPA version did you install?

If you do this, does it start properly?

Code: Select all

svccfg –s ncpa_listener
setenv LD_LIBRARY_PATH /usr/local/ncpa
exit
svcadm refresh ncpa_listener
svcadm clear ncpa_listener

Re: Solaris 10 ncpa error

Posted: Tue Jun 30, 2020 6:52 am
by progressive.nagiosXI
Hi

Please find below required details
Which NCPA version did you install? ncpa-2.2.1.sol10.i86pc.pkg

given command not found in OS

Code: Select all

bash-3.2# svcs -a | grep -i ncpa
maintenance    Jun_27   svc:/site/ncpa_listener:default
maintenance    Jun_27   svc:/site/ncpa_passive:default
bash-3.2# svccfg –s ncpa_listener
svccfg: Unknown command "▒".
bash-3.2#svccfg –s ncpa_listener
bash: vccfg: command not found
bash-3.2# setenv LD_LIBRARY_PATH /usr/local/ncpa
bash: setenv: command not found
bash-3.2# svcadm refresh ncpa_listener
bash-3.2# svcadm clear ncpa_listener
bash-3.2# svcs -a | grep -i ncpa
maintenance    Jun_27   svc:/site/ncpa_passive:default
maintenance    17:18:32 svc:/site/ncpa_listener:default
Thanks

Re: Solaris 10 ncpa error

Posted: Tue Jun 30, 2020 3:30 pm
by ssax
Please type them in manually if copy/paste isn't working, you should have that command:

Code: Select all

svccfg –s ncpa_listener
setenv LD_LIBRARY_PATH /usr/local/ncpa
exit
svcadm refresh ncpa_listener
svcadm clear ncpa_listener

Re: Solaris 10 ncpa error

Posted: Mon Jul 13, 2020 10:07 am
by progressive.nagiosXI
Hi ssax,

Thanks its working for the solaris server we started with .

Today we do the same steps as earlier in another solaris 10 x86 ,but ncpa_listener service showing in maintenance mode.

Please check the problem server ncpa logs , showing some python error

Thanks

Re: Solaris 10 ncpa error

Posted: Tue Jul 14, 2020 1:24 pm
by ssax
KeyError: 'getpwnam(): name not found: nagios'
Do you have a nagios user?

Code: Select all

listusers | grep nagios

Re: Solaris 10 ncpa error

Posted: Thu Aug 06, 2020 9:04 am
by progressive.nagiosXI
Hi ssax,

Thanks issue resolved , we will install agent in other solaris also in upcoming weeks.

if you want you can close this thread ,if we face any issue then we will open new thread.

Re: Solaris 10 ncpa error

Posted: Thu Aug 06, 2020 9:16 am
by scottwilkerson
progressive.nagiosXI wrote:Hi ssax,

Thanks issue resolved , we will install agent in other solaris also in upcoming weeks.

if you want you can close this thread ,if we face any issue then we will open new thread.
Great

Locking thread