NOTICE: We do not provide any support for the KM. You can ask questions in the community and they might or might not be answered.
We had an issue when creating monitoring policies for Solaris. In Solaris there are different system types:
- Global Zones
In our environment the Standalone and Global Zones use the same configuration but the configuration for zones is different. So we had the problem to detect if it is a Standalone/Global Zone or a zone. To resolve this, we decided to write small KM which does a check on the system by executing an OS command and evaluate its output. Based on the evaluation the KM sets a TAG in the PATROL Agents configuration. But then we thought a little bit farther and also built in the functionality to read TAGs from a file and the functionality to set a TAG if a specific KM-file is present.
The KM we wrote is called AutoTAG KM. It is configurable through CMA.
In CMA the configuration looks like this:
Here are the options:
If this checkbox is marked, the KM is loaded and all defined checks are done. You can disable single AutoTAGs with the AutoTAG Active checkbox in the AutoTAG Details section.
Read AutoTAGs from file:
Select this checkbox if you want to the KM to read an configure TAGs from a file.
The TAGs defined in the AutoTAG File must be in the following structure:
One TAG per line. If the description contains whitespaces you have to set double quotes around it.
Auto TAG Active:
Sets the current AutoTAG definition active.
Select on which OS the AutoTAG is set.
Defines a name for the AutoTAG definition. Note: this is not the name of the TAG to be set, this is defined with the field TAG Name.
AutoTAG Command (OS):
OS command to be executed.
AutoTAG Search String:
String to be searched in the output of the executed OS command.
AutoTAG Search Options:
Search options. The PSL grep() function is used so the options are those of this function.
Name of the TAG to be set if the string is found. If AutoTAGCmdOut is entered, the output of the OS command is used as TAG Name. Note: Be careful with the AutoTAGCmdOut function, check if the output of the command is usable as TAG Name.
The description of the TAG.
If the conditions of the AutoTAG definitions are no longer met, the TAG deleted. If you select this checkbox, the TAG remains configured even if the conditions for the AutoTAG are no longer met.
Check for KM:
If this checkbox is selected, the KM checks for the specified KM File Name.
KM File Name:
Name of the KM-file e.g. MSSQL_SERVER.kml.
You can compine the checks. If you enter a OS command to be executed and evaluated and you also define a KM-file to be checked, then both conditions must meet for the TAG to be set.