Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request; addition to -s option #11

Open
Linuxmonger opened this issue Jul 13, 2019 · 0 comments
Open

Feature request; addition to -s option #11

Linuxmonger opened this issue Jul 13, 2019 · 0 comments

Comments

@Linuxmonger
Copy link

Is there any chance the -s option could be modified to sort by status as well? If enough services or hosts are displayed that it it exceeds the display, I'd prefer that the most critical be sorted to the top of the list.

-s <n|a|s> sort objects by-name or by-age or by-status

Is there some other way to do this?

  Localhost Cnagios v0.33        197 Service Objects       Sat Jul 13 11:20:44
  Age: ok < 25hr                 10 match the filter              Sort: by age
  Filter: none                                                     page 1 of 1

 Status    Description                Plugin Output    Last Change     Duration
 --------  ----------------------------------------  ----------------  --------
 OKAY      fortis.rslegal.com Memory Usage   used:   Sat Jul 13 04:37    6h 42m
 OKAY      uni1.rslegal.com C:\ Drive Space  2 Gb (  Sat Jul 13 03:47    7h 33m
 OKAY      uni1.rslegal.com NSClient++ Version  -14  Sat Jul 13 03:47    7h 33m
 OKAY      uni1.rslegal.com Uptime  7 hour(s) 27 mi  Sat Jul 13 03:36    7h 44m
 OKAY      uni1.rslegal.com CPU Load   min average)  Sat Jul 13 03:36    7h 44m
 OKAY      uni1.rslegal.com Memory Usage  - used: 2  Sat Jul 13 03:36    7h 44m
 OKAY      jupiter5.rslegal.com CPU Load   average)  Sat Jul 13 02:03    9h 17m
 CRITICAL  Sophos_UTM_9 Ashland KY Office  P 71.28.  Fri Jul 12 20:39   14h 41m
 WARNING   rq-core.rslegal.com H:\ Drive Space   Gb  Wed Jun 26 12:58   16d 22h
 WARNING   helios1.rslegal.com C:\ Drive Space   Gb  Wed Jun  5 04:38    38d 6h

The CRIT and WARN problems would be more visible and obvious at the top of the list.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant