Disable network_usage alarm
-
In some way i setup a network_usage alarm. Whats the best way to remove this alarm from my host?
-
@chucknorrison to clear this up
First
xe host-list
to get the hosts uuidxe host-param-list uuid=9b239e09-8b49-4925-96bc-55135b1cfe94
to list all params and search for other-configThis gets listed:
other-config (MRW): agent_start_time: 1605519894.; boot_time: 1605519835.; rpm_patch_installation_time: 1605296112.587; iscsi_iqn: iqn.2020-09.com.example:bae4d07c; MAINTENANCE_MODE_EVACUATED_VMS_MIGRATED: 4e0713f1-485c-1e29-1383-f14155dca82f,9ef5fa5a-7e5c-e09d-96b8-271dde05d5a6,f4fca81a-61bc-4bce-3a13-d36f193fc832,beeac956-c10c-7dfd-848a-3d3d0e8e2e38,5ad8cbd2-605b-833b-929c-839ba7de2c39; perfmon: <config><variable><name value="cpu_usage" /><alarm_trigger_level value="0.5" /><alarm_trigger_period value="3600" /><alarm_auto_inhibit_period value="3600" /></variable><variable><name value="network_usage" /><alarm_trigger_level value="1048576" /><alarm_trigger_period value="3600" /><alarm_auto_inhibit_period value="3600" /></variable><variable><name value="memory_free_kib" /><alarm_trigger_level value="2097152" /><alarm_trigger_period value="3600" /><alarm_auto_inhibit_period value="3600" /></variable></config>
i need a reset for the perfmon part. Found some commands
xe host-param-set
andxe host-param-remove
which seems to archive this task. Lets get an equivalent get command:xe host-param-get uuid=9b239e09-8b49-4925-96bc-55135b1cfe94 param-name=other-config param-key=perfmon
And now we can remove the perfmon with
host-param-remove
or set it.this will delete the annoying perfmon settings:
xe host-param-remove uuid=9b239e09-8b49-4925-96bc-55135b1cfe94 param-name=other-config param-key=perfmon
-
pinging @nhanlon