580980717d
* Switched all calls to virsh to use Sys::Virt to deal with contention of simultaneous virsh calls. * Removed collecting screenshots from scan-server. * Fixed a bad variable substitution in an alert. * Fixed a bug where a server's boot time wasn't being recorded properly. * Reworked how we determine which server definition was most recently updated and propogated. Signed-off-by: digimer <mkelly@alteeve.ca>
149 lines
7.1 KiB
XML
149 lines
7.1 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!server!#] 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_configured_ram_short!#] to: [#!variable!new_configured_ram_short!#] (from: [#!variable!old_configured_ram_bytes!# bytes] to: [#!variable!new_configured_ram_bytes!# bytes]).</key>
|
|
<key name="scan_server_alert_0015">
|
|
The amount of RAM configured for the server: [#!variable!server!#] has changed from: [#!variable!old_configured_ram_short!#] to: [#!variable!new_configured_ram_short!#] (from: [#!variable!old_configured_ram_bytes!# bytes] to: [#!variable!new_configured_ram_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.
|
|
</key>
|
|
<key name="scan_server_alert_0017">
|
|
The on-disk definition for the server: [#!variable!server!#] was directly edited.
|
|
- Pushing the new version to the database definition.
|
|
|
|
- Note: You may need to reboot or power cycle for the changes to take effect.
|
|
|
|
- The changes are:
|
|
==[ Database ]========
|
|
#!variable!db_difference!#
|
|
==[ New Definition ]==
|
|
#!variable!new_difference!#
|
|
======================
|
|
</key>
|
|
<key name="scan_server_alert_0018">
|
|
The definition for the server: [#!variable!server!#] was changed in the database.
|
|
- Pushing the new version to the on-disk definition file [#!variable!definition_file!#]
|
|
|
|
- The changes are:
|
|
==[ Disk ]============
|
|
#!variable!disk_difference!#
|
|
==[ New Definition ]==
|
|
#!variable!new_difference!#
|
|
======================
|
|
</key>
|
|
<key name="scan_server_alert_0019">
|
|
There was no DRBD fence rule for the: [#!variable!server!#] in the pacemaker configuration. Adding it now.
|
|
</key>
|
|
<key name="scan_server_alert_0020">I was asked to write an empty definition for the server: [#!variable!server!#], this must be a program error. Exiting.</key>
|
|
<key name="scan_server_alert_0021">Failed to connect to the local hypervisor, unable to proceed. The error, if any, was:
|
|
====
|
|
#!variable!error!#
|
|
====
|
|
Exiting.</key>
|
|
<key name="scan_server_alert_0022">Regained access to the local hypervisor.</key>
|
|
<key name="scan_server_alert_0023">Failed to connect to the peer: [#!variable!target!#] hypervisor. The error, if any, was:
|
|
====
|
|
#!variable!error!#
|
|
====
|
|
</key>
|
|
<key name="scan_server_alert_0024">Regained access to the peer: [#!variable!target!#] hypervisor.</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 following definition file failed to parse and is likely corrupt.
|
|
====
|
|
#!variable!definition!#
|
|
====
|
|
</key>
|
|
|
|
<!-- Message entries (usually meant to be alerts) -->
|
|
<key name="scan_server_message_0001">The server: [#!variable!server!#] is migrating, skipping scanning it.</key>
|
|
<key name="scan_server_message_0002">Undefining the server: [#!variable!server!#].</key>
|
|
|
|
<!-- Units -->
|
|
<key name="scan_server_unit_0001"></key>
|
|
|
|
</language>
|
|
</words>
|