Dashlet to display top ten of a particular metric

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
sanjayhiranisq
Posts: 32
Joined: Tue Sep 13, 2016 3:04 am

Dashlet to display top ten of a particular metric

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Dashlet to display top ten of a particular metric

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
sanjayhiranisq
Posts: 32
Joined: Tue Sep 13, 2016 3:04 am

Re: Dashlet to display top ten of a particular metric

Post 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
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Dashlet to display top ten of a particular metric

Post 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
Locked