Skip to content
This repository has been archived by the owner on Oct 5, 2022. It is now read-only.

Feature request: Tactical overview metrics #12

Open
mjtrangoni opened this issue Jul 3, 2017 · 2 comments
Open

Feature request: Tactical overview metrics #12

mjtrangoni opened this issue Jul 3, 2017 · 2 comments

Comments

@mjtrangoni
Copy link

Hi @stephen-soltesz,

I would like to have some metrics from the Nagios Tactical Overview, something like this, chapter 5.2 Combining with and/or.
It would be nice/better to implement it with labels, like nagios_services{state=hard,status=warning,acknowledged=true}=45.

  • Hosts/Services:
  1. The number of hosts/services with the hard state OK
  2. The number of unacknowledged hosts/services in hard state WARNING
  3. The number of acknowledged hosts/services in hard state WARNING
  4. The number of unacknowledged hosts/services in hard state CRITICAL
  5. The number of acknowledged hosts/services in hard state CRITICAL
  6. The number of unacknowledged hosts/services in hard state UNKNOWN
  7. The number of acknowledged hosts/services in hard state UNKNOWN

query_services:

GET services
Filter: scheduled_downtime_depth = 0
Filter: host_scheduled_downtime_depth = 0
Filter: in_notification_period = 1
Stats: last_hard_state = 0
Stats: last_hard_state = 1
Stats: acknowledged = 0
StatsAnd: 2
Stats: last_hard_state = 1
Stats: acknowledged = 1
StatsAnd: 2
Stats: last_hard_state = 2
Stats: acknowledged = 0
StatsAnd: 2
Stats: last_hard_state = 2
Stats: acknowledged = 1
StatsAnd: 2
Stats: last_hard_state = 3
Stats: acknowledged = 0
StatsAnd: 2
Stats: last_hard_state = 3
Stats: acknowledged = 1
StatsAnd: 2

query_hosts:

GET hosts
Filter: scheduled_downtime_depth = 0
Filter: host_scheduled_downtime_depth = 0
Filter: in_notification_period = 1
Stats: last_hard_state = 0
Stats: last_hard_state = 1
Stats: acknowledged = 0
StatsAnd: 2
Stats: last_hard_state = 1
Stats: acknowledged = 1
StatsAnd: 2
Stats: last_hard_state = 2
Stats: acknowledged = 0
StatsAnd: 2
Stats: last_hard_state = 2
Stats: acknowledged = 1
StatsAnd: 2
Stats: last_hard_state = 3
Stats: acknowledged = 0
StatsAnd: 2
Stats: last_hard_state = 3
Stats: acknowledged = 1
StatsAnd: 2

Thanks!

@epleterte
Copy link

I really want this too.
One approach is of course to add some plugin on the monitoring box that gives a service/a check for these values that would be exported like any other check/metric...however, these stats are very Nagios/Check MK specific and I think it would make sense to simply export these core metrics as a special case (a "core feature" ;) ).

@stephen-soltesz
Copy link
Contributor

@mjtrangoni do I understand correctly that these summary metrics are accessible via the livestatus plugin?

If so, then I would welcome patches that query and export this data also. Is that something you're interested in helping with?

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

No branches or pull requests

3 participants