Number of alerts on dashboard
I have a request to report the number of alerts (within a group, (customer)) on a management dashboard per day.
I'm thinking of putting a line graph which gives the number of events per day (1 line per severity) on a cumulated number of the specific group.
Big question: How can i calculate this number? Any ideas?
Jeroen_Gouma
Posted 10 years ago·Last reply 10 years ago
5 comments
Michael_Horwath
·10 years agoYou're very welcome!
Bummer the XML didn't load
Jeroen_Gouma
OP10 years agoHi Michael,
thanks for the reply. I was not able to import the XML file, but managed to recreate what you did :-).
Works like a charm, thanks!
Jeroen
Michael_Horwath
·10 years agoI might have an easier way..
Call this script directly then parse the output.
I included my datasource I created as well as XML for input into a datasource in your portal.
To have this for multiple 'groupIds' you may need to change things up (a little perl changes) by perhaps using a groovy script to pass in a variable (groupId?) for the different customers you wish to build this for. Shouldn't be hard.
Jeroen_Gouma
OP10 years agoThanks Sarah,
I'll give this a try!
Sarah_Terry
·10 years agoYou can use our RPC API to to get the number of alerts per severity: http://www.logicmonitor.com/support/rpc-api-developers-guide/manage-alerts/get-alerts/
You could write a simple script datasource that makes the getAlerts API calls and reports the number of alerts per severity, and then displays the data in a dashboard widget.