Nagiosstats into InfluxDB


#1

Has anyone successfully ingested the output of nagiosstats into Influx with telegraf?

This is the output. It also supports outputting MRTG

CURRENT STATUS DATA
------------------------------------------------------
Status File:                            /var/nagios/status.log
Status File Age:                        0d 0h 0m 51s
Status File Version:                    1.0.9.source

Program Running Time:                   4d 16h 10m 51s
Naemon PID:                             31598

Total Services:                         94
Services Checked:                       94
Services Scheduled:                     94
Services Actively Checked:              94
Services Passively Checked:             0
Total Service State Change:             0.000 / 0.000 / 0.000 %
Active Service Latency:                 0.013 / 0.980 / 0.469 sec
Active Service Execution Time:          0.004 / 10.003 / 1.734 sec
Active Service State Change:            0.000 / 0.000 / 0.000 %
Active Services Last 1/5/15/60 min:     1 / 84 / 90 / 90
Passive Service Latency:                0.000 / 0.000 / 0.000 sec
Passive Service State Change:           0.000 / 0.000 / 0.000 %
Passive Services Last 1/5/15/60 min:    0 / 0 / 0 / 0
Services Ok/Warn/Unk/Crit:              71 / 1 / 0 / 22
Services Flapping:                      0
Services In Downtime:                   0

Total Hosts:                            10
Hosts Checked:                          10
Hosts Scheduled:                        10
Hosts Actively Checked:                 10
Host Passively Checked:                 0
Total Host State Change:                0.000 / 0.000 / 0.000 %
Active Host Latency:                    0.104 / 0.960 / 0.388 sec
Active Host Execution Time:             0.002 / 3.055 / 1.547 sec
Active Host State Change:               0.000 / 0.000 / 0.000 %
Active Hosts Last 1/5/15/60 min:        0 / 4 / 6 / 6
Passive Host Latency:                   0.000 / 0.000 / 0.000 sec
Passive Host State Change:              0.000 / 0.000 / 0.000 %
Passive Hosts Last 1/5/15/60 min:       0 / 0 / 0 / 0
Hosts Up/Down/Unreach:                  5 / 1 / 4
Hosts Flapping:                         0
Hosts In Downtime:                      0

Active Host Checks Last 1/5/15 min:     1 / 8 / 22
   Scheduled:                           1 / 6 / 18
   On-demand:                           0 / 2 / 4
   Parallel:                            1 / 6 / 18
   Serial:                              0 / 0 / 0
   Cached:                              0 / 2 / 4
Passive Host Checks Last 1/5/15 min:    0 / 0 / 0
Active Service Checks Last 1/5/15 min:  9 / 89 / 268
   Scheduled:                           9 / 89 / 268
   On-demand:                           0 / 0 / 0
   Cached:                              0 / 0 / 0
Passive Service Checks Last 1/5/15 min: 0 / 0 / 0

External Commands Last 1/5/15 min:      0 / 0 / 0

edit formatting