Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gyselroth/logstash-filter-nagios-perfdata
Logstash Nagios/Icinga2 Perfdata Filter
https://github.com/gyselroth/logstash-filter-nagios-perfdata
icinga2 kibana logstash nagios nagios-perfdata ruby
Last synced: 11 days ago
JSON representation
Logstash Nagios/Icinga2 Perfdata Filter
- Host: GitHub
- URL: https://github.com/gyselroth/logstash-filter-nagios-perfdata
- Owner: gyselroth
- License: mit
- Created: 2017-01-16T10:44:20.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-16T11:09:13.000Z (about 8 years ago)
- Last Synced: 2024-11-10T08:38:51.334Z (2 months ago)
- Topics: icinga2, kibana, logstash, nagios, nagios-perfdata, ruby
- Size: 7.81 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Logstash (Nagios) performance data filter
### Description
This filter plugin will index your monitoring performance data into ES, given that you can create for example kibana graphs based on your infrastructure performance data.The plugin will index data from messagess in the following example:
[SERVICEPERFDATA] 1484564212 host.domain.lan /dev/mapper/vg1-root:usage 0.015458 0.000245 DISK OK - free space: / 6182 MB (70% inode=70%); /=2582MB;7406;8332;0;9258
You have to enable performance data logging in your monitoring engine, @see example for Icinga2.
### Compatibility
This filter has been successfully tested with logstash 5.1.1 / ES 5.1.1 / Kibana 5.1.1 and Icinga2 2.6.0 as performance data source.### Installation logstash
* Move pattern.conf to your logstash pattern directory as nagios-perfdata.conf, usually located at /etc/logstash/patterns/
* Move filter.conf to your logstash filter directory as filter-nagios-perfdata.conf, usually located at /etc/logstash/conf.d
* Reload logstash service### Enable Perfdata Icinga2
/etc/icinga2/features-enabled/perfdata.conf:object PerfdataWriter "syslog" {
service_format_template = "[SERVICEPERFDATA]\t$icinga.timet$\t$host.name$\t$service.name$\t$service.execution_time$\t$service.latency$\t$service.output$\t$service.perfdata$"
host_format_template = "[HOSTPERFDATA]\t$icinga.timet$\t$host.name$\t$host.execution_time$\t$host.output$\t$host.perfdata$"
rotation_interval = 86400
}Restart Icinga2 service