Page 2 of 2

Re: NCPA on Solaris Service Issue

Posted: Fri Jan 31, 2020 3:59 pm
by vtlyndon
Thanks for the link, that helps a bunch to see it in front of me

It looks like it is in-fact splitting by white-space, and reading that section it appears the time variable isn't being used.

Code: Select all

ls[2]
is being used to obtain the name of the service, and

Code: Select all

ls[0]
is being used to obtain the status. Time is being ignored already, so hopefully there isn't much issue just removing the time filter from the command.

I've submitted a PR: https://github.com/NagiosEnterprises/nc ... re:patch-1

If 'svcs -a -o STATE,FMRI' works on OpenSolaris, I think it should be fine. I also don't know a whole ton of Python, but, the changes seemed simple enough to make.

Re: NCPA on Solaris Service Issue

Posted: Fri Jan 31, 2020 4:32 pm
by mbellerue
Awesome! Thanks for helping out with the project! It's always extremely helpful when someone brings their knowledge and experience to the table.

Regarding OpenSolaris, it looks like the changes you made will work there, too.
https://www.unix.com/man-page/OpenSolaris/1/svcs/
COLUMNS

Column names are case insensitive. The default output format is equivalent to "-o state,stime,fmri". The default sorting columns are STATE,
STIME, FMRI.