I am trying to create an alert to trigger if any object is set to Mute. I have the report that looks good but now I want an alert. Any ideas would be helpful.
You can do this via the normal web alerts too. See image below, you may want to delete the unmanaged conditions. This works pretty well for me. The trigger action sends an email with the audit message. THe message includes who and what. Here is the variable string that I use:
${N=SwisEntity;M=AuditEventMessage} on ${N=Generic;M=DateTime;F=DateTime}
Trigger condition:
This is a non-trivial request because the only place that the mute 'action' is stored is in the Auditing tables as far as I know. The Auditing tables aren't directly accessible by the alerting engine - because they aren't 'things' that you are monitoring. You can look in the AlertSuppression tables which have some of the info you might want, and that's where I went with this build out.
I took a stab at seeing if I could link the things and you can, by using a Custom SWQL query. I have not tested this, but it should work. The alert message (email you send) would need significant work to get it to something that's useful to the recipient.
-- Copied From 'upper' condition-- SELECT Nodes.Uri, Nodes.DisplayName FROM Orion.Nodes AS Nodes---- Lower PortionINNER JOIN Orion.AlertSuppression AS MutedON Nodes.Uri = Muted.EntityUri
Like I said, it should work as a trigger condition. The rest (Reset condition, Trigger/Reset actions, etc.) would vary based on your needs and it gets very complex to try an go through the Audit tables via the alerting engine.
I'm also attaching an export of this alert that I built. Again note that this is NOT tested.
[View:/cfs-file/__key/communityserver-discussions-components-files/47/Alert_2B00_me_2B00_on_2B00_a_2B00_muted_2B00_thing.xml:640:480]
This worked perfectly! I tried the first suggestion but was having trouble with it firing the Alert consistently, this works everytime! thank you
Definitely go with @marcrobinson's response. I wasn't aware that the Audit logs were part of the default options for web based reporting. That was an oversight on my part.
Hi,
I did exactly what you mentioned.
Having trouble firing the alert.
Orion Platform HF3, IPAM, SCM HF2, NCM HF1, NPM HF3, PM HF1, NTA HF2, VMAN HF3, SAM HF3: 2020.2.6