Getting an error installing NCPA on Solaris 10
Posted: Fri Oct 01, 2021 8:52 am
We are trying to install ncpa on Solaris 10 operating system.
We started with an error that was very common and seen on a lot of other forum posts stating that the nagios user and group could not be created. After some troubleshooting, I am now stuck with this error message when trying to install NCPA:
Installing A monitoring agent (Nagios Cross-Platform Agent) for Nagios. as <ncpa>
## Executing preinstall script.
/var/sadm/pkg/ncpa/install/preinstall: !: not found
/var/sadm/pkg/ncpa/install/preinstall: !: not found
## Installing part 1 of 1.
/usr/local/ncpa/ncpa_listener.xml
/usr/local/ncpa/ncpa_passive.xml
[ verifying class <none> ]
## Executing postinstall script.
I/O warning : failed to load external entity "/usr/share/lib/xml/dtd/service_bundle.dtd.1"
validity error : Could not load the external subset "/usr/share/lib/xml/dtd/service_bundle.dtd.1"
svccfg: Document is not valid.
I/O warning : failed to load external entity "/usr/share/lib/xml/dtd/service_bundle.dtd.1"
validity error : Could not load the external subset "/usr/share/lib/xml/dtd/service_bundle.dtd.1"
svccfg: Document is not valid.
svcadm: Pattern 'site/ncpa_listener' doesn't match any instances
svcadm: Pattern 'site/ncpa_passive' doesn't match any instances
pkgadd: ERROR: postinstall script did not complete successfully
We started with an error that was very common and seen on a lot of other forum posts stating that the nagios user and group could not be created. After some troubleshooting, I am now stuck with this error message when trying to install NCPA:
Installing A monitoring agent (Nagios Cross-Platform Agent) for Nagios. as <ncpa>
## Executing preinstall script.
/var/sadm/pkg/ncpa/install/preinstall: !: not found
/var/sadm/pkg/ncpa/install/preinstall: !: not found
## Installing part 1 of 1.
/usr/local/ncpa/ncpa_listener.xml
/usr/local/ncpa/ncpa_passive.xml
[ verifying class <none> ]
## Executing postinstall script.
I/O warning : failed to load external entity "/usr/share/lib/xml/dtd/service_bundle.dtd.1"
validity error : Could not load the external subset "/usr/share/lib/xml/dtd/service_bundle.dtd.1"
svccfg: Document is not valid.
I/O warning : failed to load external entity "/usr/share/lib/xml/dtd/service_bundle.dtd.1"
validity error : Could not load the external subset "/usr/share/lib/xml/dtd/service_bundle.dtd.1"
svccfg: Document is not valid.
svcadm: Pattern 'site/ncpa_listener' doesn't match any instances
svcadm: Pattern 'site/ncpa_passive' doesn't match any instances
pkgadd: ERROR: postinstall script did not complete successfully