ServerSentinel allows you to load and save different check profiles. This is a useful feature to store existing configurations of sensors, conditions and their actions.
Exporting the existing sensors results in a plain text ".xml" file, that contains all settings that were made, including the encrypted passwords. In case your sensors contain confident information, handle it with care.
|
Here is an example of how exported settings may look like. Both sensors have been configured to issue the same action if a condition is met.
<?xml version="1.0" encoding="Windows-1252"?> <ArrayOfAnyType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <anyType xsi:type="HttpSensor"> <Name>HTTP Sensor</Name> <Active>true</Active> <Id>294913</Id> <Version>1</Version> <Description>Sensor for the classic web, supports Http Authentication</Description> <CheckIntervalMillis>300000</CheckIntervalMillis> <SerializableRules> <Condition xsi:type="ConditionRelation"> <Name>HTTP status isn't OK</Name> <Description>default condition for HTTP Sensor (HttpSensor)</Description> <Id>360449</Id> <SerializableAssociatedActions> <long>131073</long> </SerializableAssociatedActions> <PropertyName>HttpStatusCode</PropertyName> <Value>OK</Value> <Operator>NOT_EQUAL</Operator> </Condition> </SerializableRules> <SerializableDependsOnSensor>-1</SerializableDependsOnSensor> <Executing>false</Executing> <URL>http://</URL> <HashFunction>MD5</HashFunction> <DownloadKiloBytes>0</DownloadKiloBytes> </anyType> <anyType xsi:type="WmiCpuSensor"> <Name>System Load Sensor</Name> <Active>true</Active> <Id>196609</Id> <Version>1</Version> <Description>Monitor CPU Load, Disk Load and Available Memory (local & remote)</Description> <CheckIntervalMillis>300000</CheckIntervalMillis> <SerializableRules> <Condition xsi:type="ConditionRelation"> <Id>229377</Id> <SerializableAssociatedActions> <long>131073</long> </SerializableAssociatedActions> <PropertyName>CpuUsagePercent</PropertyName> <Value>90</Value> <Operator>GREATER</Operator> </Condition> </SerializableRules> <SerializableDependsOnSensor>-1</SerializableDependsOnSensor> <Executing>false</Executing> <UncHost>\\localhost</UncHost> <ManagementPath>\root\CIMV2</ManagementPath> </anyType> <anyType xsi:type="ActionNotificationEmail"> <Name>Notify Siteadmin</Name> <Description>email</Description> <Id>131073</Id> <ValidateSettings>true</ValidateSettings> <MessageTemplate>%SensorData%</MessageTemplate> <MailFrom>ServerSentinel <serversentinel@example.com></MailFrom> <SMTPServer>mail</SMTPServer> <SubjectTemplate>[ServerSentinel] %Sensor.Name% status %SensorData.StatusFlag%</SubjectTemplate> </anyType> </ArrayOfAnyType> Example of a Sensor Export |

