Create your own SMF goal service
Yesterday I demonstrated goal services to you with the build-in goal services. But can you do if two important applications are running under control of a single SMF and you want to monitor them independently. Well, the answer is simple: Create your own goal service.
At first you have to create a plain standard SMF service. Easiest way is to use
A goal service should never start things. Thus in order to create such a service just use
:true as a start method. Right after the command has executed (you may see an error message), you will see a running SMF service.
But this service isn’t an goal service already. You have to set the
true as well.
Okay, now we can use this new goal service. Like with the default goal service you can use the
goals subcommand, however you have to specify the goal service you want to configure. Without the
-g it would modify the default service.
I’m a little bit lazy, I will just use
apache24 in my goal service. Thus the goal service will monitor both. Obviously this makes not much sense, as the other goal service monitors it as well, however
Now we check the the goal service functionality by disabling one of the monitored services.
Let’s see if this information is propagated as well into the Fault Management Architecture
Your first goal service up and running.