05b1fccdb3
* Removed the exit-if-no-DB check in ocf:alteeve:server so that (hopefully, needs testing), running servers won't be impacted if the nodes lost contact with both/all strikers. * Updated scan-server to make an explicit check for missing XML definition files on startup and write them if needed. * Very beginning work on anvil-delete-server has been started. * Updated anvil-provision-server to wait when it's running in peer mode until the new XML definition is in the DB and then write it out to disk before exiting. Also updated it to add the new server to pacemaker before exiting. Signed-off-by: Digimer <digimer@alteeve.ca>
106 lines
5.4 KiB
XML
106 lines
5.4 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!--
|
|
Company: Alteeve's Niche, Inc.
|
|
License: GPL v2+
|
|
Author: Madison Kelly <mkelly@alteeve.ca>
|
|
|
|
NOTE: All string keys MUST be prefixed with the agent name! ie: 'scan_server_log_0001'.
|
|
-->
|
|
|
|
<words>
|
|
<meta version="3.0.0" languages="en_CA,jp"/>
|
|
<!-- Canadian English -->
|
|
<language name="en_CA" long_name="Canadian English" description="ScanCore scan agent that monitors hardware, like RAM modules, CSS LED status, CPU information, etc.">
|
|
|
|
<!-- Alert entries -->
|
|
<key name="scan_server_alert_0001">
|
|
The definition for the server: [#!variable!server!#] was changed via Striker.
|
|
- Pushing the new version to the on-disk definition file [#!variable!definition_file!#]
|
|
- Also updating definition used by the hypervisor.
|
|
|
|
- Note: You may need to reboot or power cycle for the changes to take effect.
|
|
|
|
- The changes are:
|
|
==[ Disk ]============
|
|
#!variable!disk_difference!#
|
|
==[ Hypervisor ]======
|
|
#!variable!virsh_difference!#
|
|
==[ New Definition ]==
|
|
#!variable!new_difference!#
|
|
======================
|
|
</key>
|
|
<key name="scan_server_alert_0002">
|
|
The on-disk definition for the server: [#!variable!server!#] was directly edited.
|
|
- Pushing the new version to the database definition.
|
|
- Also updating definition used by the hypervisor.
|
|
|
|
- Note: You may need to reboot or power cycle for the changes to take effect.
|
|
|
|
- The changes are:
|
|
==[ Database ]========
|
|
#!variable!db_difference!#
|
|
==[ Hypervisor ]======
|
|
#!variable!virsh_difference!#
|
|
==[ New Definition ]==
|
|
#!variable!new_difference!#
|
|
======================
|
|
</key>
|
|
<key name="scan_server_alert_0003">
|
|
The definition for the server: [#!variable!server!#] was edited outside of the Anvil! system. This usually means it was updated using Virtual Machine Manager (or another libvirt tool like the virsh shell).
|
|
- Pushing the new version to the on-disk definition file [#!variable!definition_file!#]
|
|
- Pushing the new version to the database definition as well.
|
|
|
|
- Note: You may need to reboot or power cycle for the changes to take effect.
|
|
|
|
- The changes are:
|
|
==[ Disk ]============
|
|
#!variable!disk_difference!#
|
|
==[ Database ]========
|
|
#!variable!db_difference!#
|
|
==[ New Definition ]==
|
|
#!variable!new_definition!#
|
|
======================
|
|
</key>
|
|
<key name="scan_server_alert_0004">The name of the server: [#!variable!old_name!#] has changed to: [#!variable!new_name!#]</key>
|
|
<key name="scan_server_alert_0005">The server: [#!variable!name!#] state has changed from: [#!variable!old_state!#] to: [#!variable!new_state!#].</key>
|
|
<key name="scan_server_alert_0006">
|
|
A new server named: [#!variable!server!#] has been found. The definition XML is:
|
|
====
|
|
#!variable!definition!#
|
|
====
|
|
</key>
|
|
<key name="scan_server_alert_0007">The server: [#!variable!server!#] has been shut off.</key>
|
|
<key name="scan_server_alert_0008">The server: [#!variable!server!#] boot time has changed from: [#!variable!old_boot_time_date!#] to: [#!variable!new_boot_time_date!#] (epoch from: [#!variable!old_boot_time_epoch!#] to: [#!variable!new_boot_time_epoch!#]).</key>
|
|
<key name="scan_server_alert_0009">The server: [#!variable!server!#] has moved from the Anvil!: [#!variable!old_anvil_name!#] to: [#!variable!new_anvil_name!#] (from: [#!variable!old_anvil_uuid!#] to: [#!variable!new_anvil_uuid!#]).</key>
|
|
<key name="scan_server_alert_0010">The server: [#!variable!server!#] has is now marked as user-stopped.</key>
|
|
<key name="scan_server_alert_0011">The server: [#!variable!server!#] has is no longer marked as user-stopped.</key>
|
|
<key name="scan_server_alert_0012">The server: [#!variable!server!#] has moved from the node: [#!variable!old_host_name!#] to: [#!variable!new_host_name!#] (from: [#!variable!old_host_uuid!#] to: [#!variable!new_host_uuid!#]).</key>
|
|
<key name="scan_server_alert_0013">The amount of RAM the server: [#!variable!server!#] is currently using has changed from: [#!variable!old_ram_in_use_short!#] to: [#!variable!new_ram_in_use_short!#] (from: [#!variable!old_ram_in_use_bytes!# bytes] to: [#!variable!new_ram_in_use_bytes!# bytes]).</key>
|
|
<key name="scan_server_alert_0014">The amount of RAM configured for the server: [#!variable!server!#] has changed from: [#!variable!old_ram_in_use_short!#] to: [#!variable!new_ram_in_use_short!#] (from: [#!variable!old_ram_in_use_bytes!# bytes] to: [#!variable!new_ram_in_use_bytes!# bytes]).</key>
|
|
<key name="scan_server_alert_0015">
|
|
The amount of RAM configured for the server: [#!variable!server!#] has changed from: [#!variable!old_ram_in_use_short!#] to: [#!variable!new_ram_in_use_short!#] (from: [#!variable!old_ram_in_use_bytes!# bytes] to: [#!variable!new_ram_in_use_bytes!# bytes]).
|
|
|
|
- NOTE: This RAM will not be used until the server is power cycled!
|
|
</key>
|
|
<key name="scan_server_alert_0016">
|
|
A server named: [#!variable!server!#] was found in the database, but there was no definition file on disk. Saving the definition file now. The definition XML is:
|
|
====
|
|
#!variable!definition!#
|
|
====
|
|
</key>
|
|
|
|
<!-- Log entries -->
|
|
<key name="scan_server_log_0001">Starting: [#!variable!program!#].</key>
|
|
<key name="scan_server_log_0002">This host is a: [#!variable!host_type!#], this agent is only useful on nodes and DR hosts. Exiting.</key>
|
|
<key name="scan_server_log_0003">The libvirtd daemon is not running. Exiting.</key>
|
|
|
|
<!-- Message entries (usually meant to be alerts) -->
|
|
<key name="scan_server_message_0001">The server: [#!variable!server!#] is migrating, skipping scanning it.</key>
|
|
|
|
<!-- Units -->
|
|
<key name="scan_server_unit_0001"></key>
|
|
|
|
</language>
|
|
</words>
|