This article covers how to fix Clear Solaris Service Maintenance Status Nagios issue. Basically, When the Nagios Core service finds an invalid configuration, the core service will not start.
To fix the problem you must fix the problem Nagios Core is complaining about.
This is normal behavior of Nagios Core, it is not specific to Solaris.
However on Solaris, after a service has failed to start several times, Solaris will put the service into what is called a Maintenance State. This state prevents a small problem from becoming a bigger problem.
Even after fixing the problem Nagios Core is complaining about, you must also clear the maintenance state on the service before Solaris allows a service to be started again.
This means that the service is in a maintenance state, however there is not a lot of detail as to the cause of the issue except that the Start method failed repeatedly.
It does however provide the name of a log file /var/svc/log/application-nagios:default.log.
Execute the following command to perform further troubleshooting:
tail -20 /var/svc/log/application-nagios:default.log
To Clear Maintenance State on Nagios:
1. Run the following command to clear the maintenance state:
$ svcadm clear nagios
2. Execute the following command to start Nagios:
$ svcadm enable nagios
3. Now check the state of the service:
$ svcs -xv nagios