Page 1 of 1

Dashlet to display top ten of a particular metric

Posted: Thu Sep 15, 2016 2:40 am
by sanjayhiranisq
Hi,

I want to be able to display the top ten of a particular metric. For example: head -10 (sort (for all hosts in hostgroup(nfsclients) get the metric service(nfs_stats)metric(nfs_apps_read))))
I want that displayed in simple text form as a list, no fancy fonts/graphics etc.

Is there already a dashlet to do this or can you provide a dashlet writing guide that I can use?

so basically I want to be able to give the dashlet the title, the hostgroup/servicegroup and the metric to search for (regex)

Thank you
Sanjay

Re: Dashlet to display top ten of a particular metric

Posted: Thu Sep 15, 2016 9:39 am
by lmiltchev
Have you considered using the Metrics component? With the Metrics component, you could show "top 10" of various metrics (Disk/CPU/Memory Usage, Load, & Swap).

Home->Details->Metrics

Re: Dashlet to display top ten of a particular metric

Posted: Mon Oct 17, 2016 8:39 am
by sanjayhiranisq
Hi,
the metric tool only shows be about 5 metrics for a server. Is there any way to be able to choose any metric?

Thank you
Sanjay

Re: Dashlet to display top ten of a particular metric

Posted: Mon Oct 17, 2016 3:35 pm
by ssax
That functionality doesn't currently exist, I've created a feature request for you:

Code: Select all

NEW TASK ID 9814 created - Nagios XI Feature Request: Metrics/Dashlet - Add the ability to use regex to specify what metrics should be shown
I am unaware of any documentation that tells you how to write your own dashlets.

Let me know if you have any questions.


Thank you