Gnocchi-nagios
Gnocchi-nagios allows to push Nagios perfdata to Gnocchi
Free software: Apache license
Documentation: http://gnocchi-nagios.readthedocs.org/
Contribution via Github pull requests: https://github.com/sileht/gnocchi-nagios/pulls
Installation
At the command line:
$ pip install gnocchi-nagios
Or, if you have virtualenvwrapper installed:
$ mkvirtualenv gnocchi-nagios $ pip install gnocchi-nagios
Nagios/Icinga configuration
This is example of perfdata configuration for Gnocchi-nagios
Preparing working directories:
$ mkdir -p /var/spool/gnocchi-nagios/{nagios, ready}
In /etc/nagios3/nagios.conf:
host_perfdata_file_mode=a
host_perfdata_file_processing_interval=5
host_perfdata_file_template=DATATYPE::HOSTPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tHOSTPERFDATA::$HOSTPERFDATA$\t$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$
service_perfdata_file_mode=a
service_perfdata_file_processing_interval=5
service_perfdata_file_template=DATATYPE::SERVICEPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tSERVICEDESC::$SERVICEDESC$\tSERVICEPERFDATA::$SERVICEPERFDATA\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$\tSERVICESTATE::$SERVICESTATE$\tSERVICESTATETYPE::$SERVICESTATETYPE$
host_perfdata_file=/var/spool/gnocchi-nagios/nagios/host-perfdata
host_perfdata_file_processing_command=gnocchi-nagios-host
service_perfdata_file=/var/spool/gnocchi-nagios/nagios/service-perfdata
service_perfdata_file_processing_command=gnocchi-nagios-service
In /etc/nagios3/conf.d/gnocchi-nagios.cfg:
define command {
command_name gnocchi-nagios-service
command_line /bin/mv /var/spool/gnocchi-nagios/nagios/service-perfdata /var/spool/gnocchi-nagios/ready/service-perfdata.$TIMET$
}
define command {
command_name gnocchi-nagios-host
command_line /bin/mv /var/spool/gnocchi-nagios/nagios/host-perfdata /var/spool/gnocchi-nagios/ready/host-perfdata.$TIMET$
}
Gnocchi Setup
Installation and configuration of Gnocchi can be found here
Don’t forget to create archive policies and archive policies rules that match your needs.
Gnocchi-nagios
Once it’s setup, you can configure gnocchi-nagios by creating a gnocchi-nagios.conf:
[DEFAULT]
spool_directory = /var/spool/gnocchi-nagios/ready
[gnocchi]
auth_type = gnocchi-noauth
roles = admin
user_id = nagios
project_id = nagios
endpoint = http://localhost:8041
Note: Gnocchi-data assumes nagios TIMET epoch are in UTC
And then run it with:
$ gnocchi-nagios --config-file=gnocchi-nagios.conf
To get all configuration option you can run
$ tox -egenconfig
$ less etc/gnocchi-nagios/gnocchi-nagios.conf
Metadata
Release files for gnocchi-nagios 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gnocchi-nagios-1.1.1.tar.gz | 19.3 kB | Without provenance | Details for gnocchi-nagios-1.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gnocchi_nagios-1.1.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for gnocchi_nagios-1.1.1-py2.py3-none-any.whl |
Total release size: 36.9 kB
Release files / gnocchi-nagios-1.1.1.tar.gz
| Download URL | gnocchi-nagios-1.1.1.tar.gz |
|---|---|
| Size | 19.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
35db4e8347a3b37b75a14225a74405d75d57cf1051f3a60e0e2e14ef9434d065
|
|
BLAKE2b-256 checksum How to use checksums |
f0b1f94fa42b71cc961f527cafa5ad1b89bd53de6fcac666c6f56e5db0cba35d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / gnocchi_nagios-1.1.1-py2.py3-none-any.whl
| Download URL | gnocchi_nagios-1.1.1-py2.py3-none-any.whl |
|---|---|
| Size | 17.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
753ef04de8ecf26f6179ccf9f858399676fd4d5fbfb13409426a1d581cbd19dd
|
|
BLAKE2b-256 checksum How to use checksums |
fa89e9911e29882a3084236d361f5bccfb779b75562c23731981c4a74d827a15
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for gnocchi-nagios 1.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.