Vmware guest alerts

Is there a way to pass the vminfo.vmwVmDisplayName in the alert template?

I setup an alert for vminfo.vmwVmState != “powered on”

VM: $alert->vmwVmDisplayName
Severity: %severity
{if %state == 0}Time elapsed: %elapsed
{/if}Timestamp: %timestamp
Unique-ID: %uid
Rule: {if %name}%name{else}%rule{/if}
{if %faults}Faults:
{foreach %faults} #%key: %value.string
{/foreach}{/if}Alert sent to: {foreach %contacts}%value <%key> {/foreach}

I also tried %vminfo.vmwVmDisplayName

they just return null for that line

You do it as part of the faults array: https://docs.librenms.org/#Alerting/Templates/

Using the new format (you need to be running a recent version for this to work and convert that template in the UI).


Got it! thanks…its working