Re: [Nagios-devel] 'top 10'

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] 'top 10'

Post by Guest »

Sorry for going off the subject almost entirely, but how did you get that
snazzy interface?

-Michael Harris ^_^
--------------------
http://www.shiftycow.net


> Hello List,
>
> For a customer I have written a 'top10' cgi for Nagios 3.0.3. What it
> basically does is sort services based on the status output, filtered
> through a regexp.
>
> It adds the following new configuration parameters for services:
>
> show_top10 Show this service in the top10 screen?
> regmatch_sort The regexp to sort the plugin output to
> sort_reverse Sort them in reverse
>
> An example config would look like this:
>
> define service{
> use generic-cisco-service-always
> servicegroups PING
> hostgroup_name alle-cisco-devices
> service_description PING
> check_command check_ping!100.0,20%!500.0,60%
> show_top10 1
> regmatch_sort \([0-9]\+.\?[0-9]\+\)\ ms
> }
>
> The current implementation is fairly naive, and most certainly full of
> holes, consider this to be a 'proof of concept'. I have a screenshot up
> here:
>
> http://www.tmm.cx/~hp/top10.png
>
> Is there any interest in such a feature for nagios proper? if so, I'll
> gladly clean up the code and submit a proper patch.
>
> Attached you'll also find the patch to the current version. Not very
> pretty, like I said :)
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the
> world
> http://moblin-contest.org/redirect.php? ... =100&url=/
> _______________________________________________
> Nagios-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/lis ... gios-devel
>








This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked