NCPA on Solaris Service Issue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
vtlyndon
Posts: 7
Joined: Mon Nov 05, 2018 3:07 pm

Re: NCPA on Solaris Service Issue

Post 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.
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: NCPA on Solaris Service Issue

Post 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.
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