@@ -219,7 +219,7 @@ public function getMetrics() {
219
219
'services_total ' ,
220
220
'Total number of services '
221
221
);
222
- $ gauge ->set ($ stats ['HIGHCMDBUF ' ] ?? 0 );
222
+ $ gauge ->set ($ stats ['NUMSERVICES ' ] ?? 0 );
223
223
224
224
$ gauge = $ registry ->registerGauge (
225
225
'naemon ' ,
@@ -316,10 +316,10 @@ public function getMetrics() {
316
316
$ gauge = $ registry ->registerGauge (
317
317
'naemon ' ,
318
318
'active_host_check_last_ ' . strtolower ($ k ) . '_minutes_total ' ,
319
- 'Number of total active host checks occurring in last ' . $ k . ' minutes '
319
+ 'Number of total active host checks in last ' . $ k . ' minutes '
320
320
);
321
321
322
- $ v = $ stats ['NUMACTHSTCHECKS ' . $ k . 'M ' ] ?? 0 ;
322
+ $ v = $ stats ['NUMHSTACTCHK ' . $ k . 'M ' ] ?? 0 ;
323
323
$ gauge ->set ($ v );
324
324
325
325
$ gauge = $ registry ->registerGauge (
@@ -360,20 +360,29 @@ public function getMetrics() {
360
360
361
361
$ gauge = $ registry ->registerGauge (
362
362
'naemon ' ,
363
- 'passive_host_check_last_ ' . strtolower ($ k ) . '_minutes_total ' ,
363
+ 'passive_host_check_occuring_last_ ' . strtolower ($ k ) . '_minutes_total ' ,
364
364
'Number of passive host checks occurring in last ' . $ k . ' minutes '
365
365
);
366
366
367
367
$ v = $ stats ['NUMPSVHSTCHECKS ' . $ k . 'M ' ] ?? 0 ;
368
368
$ gauge ->set ($ v );
369
369
370
+ $ gauge = $ registry ->registerGauge (
371
+ 'naemon ' ,
372
+ 'passive_host_check_last_ ' . strtolower ($ k ) . '_minutes_total ' ,
373
+ 'Number of hosts passively checked in last ' . $ k . ' minutes '
374
+ );
375
+
376
+ $ v = $ stats ['NUMHSTPSVCHK ' . $ k . 'M ' ] ?? 0 ;
377
+ $ gauge ->set ($ v );
378
+
370
379
$ gauge = $ registry ->registerGauge (
371
380
'naemon ' ,
372
381
'active_service_check_last_ ' . strtolower ($ k ) . '_minutes_total ' ,
373
- 'Number of total active service checks occurring in last ' . $ k . ' minutes '
382
+ 'Number of total active service checks in last ' . $ k . ' minutes '
374
383
);
375
384
376
- $ v = $ stats ['NUMACTSVCCHECKS ' . $ k . 'M ' ] ?? 0 ;
385
+ $ v = $ stats ['NUMSVCACTCHK ' . $ k . 'M ' ] ?? 0 ;
377
386
$ gauge ->set ($ v );
378
387
379
388
$ gauge = $ registry ->registerGauge (
@@ -405,13 +414,22 @@ public function getMetrics() {
405
414
406
415
$ gauge = $ registry ->registerGauge (
407
416
'naemon ' ,
408
- 'passive_service_check_last_ ' . strtolower ($ k ) . '_minutes_total ' ,
417
+ 'passive_service_check_occurring_last_ ' . strtolower ($ k ) . '_minutes_total ' ,
409
418
'Number of passive service checks occurring in last ' . $ k . ' minutes '
410
419
);
411
420
412
421
$ v = $ stats ['NUMPSVSVCCHECKS ' . $ k . 'M ' ] ?? 0 ;
413
422
$ gauge ->set ($ v );
414
423
424
+ $ gauge = $ registry ->registerGauge (
425
+ 'naemon ' ,
426
+ 'passive_service_check_last_ ' . strtolower ($ k ) . '_minutes_total ' ,
427
+ 'Number of services passively checked in last ' . $ k . ' minutes '
428
+ );
429
+
430
+ $ v = $ stats ['NUMSVCPSVCHK ' . $ k . 'M ' ] ?? 0 ;
431
+ $ gauge ->set ($ v );
432
+
415
433
$ gauge = $ registry ->registerGauge (
416
434
'naemon ' ,
417
435
'external_commands_processed_last_ ' . strtolower ($ k ) . '_minutes_total ' ,
0 commit comments