Skip to content

Instantly share code, notes, and snippets.

View RichiH's full-sized avatar

Richard Hartmann RichiH

View GitHub Profile
@RichiH
RichiH / ashrae.yml
Last active July 1, 2021 14:28
Prometheus kraken ASHRAE alerts
groups:
- name: ASHRAE_general
rules:
- alert: dew_point_warning
expr: kraken_temperature_celsius - kraken_dew_point_celsius < 1
for: 5m
labels:
severity: warning
annotations:
@RichiH
RichiH / gist:16d6b95bee94a97c3d6e646bb9b9af5e
Created December 29, 2017 15:23
c3noc -> c3voc Port Usage Dashboard
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
@RichiH
RichiH / lol.json
Created August 24, 2017 11:27
Basic network dashboard for Grafana
{
"annotations": {
"list": []
},
"editable": true,
"gnetId": null,
"graphTooltip": 0,
"hideControls": false,
"id": 10,
"links": [],
@RichiH
RichiH / prometheus.service
Created August 24, 2017 09:44
Prometheus systemd unit file
[Unit]
Description=Prometheus
After=syslog.target network.target
[Service]
User=prometheus
TimeoutStopSec=1800
LimitNOFILE=120000
ExecStart=/home/prometheus/bin/prometheus/prometheus \
-config.file /home/prometheus/configs/prometheus.yml \
@RichiH
RichiH / walk
Last active July 31, 2017 08:10
Fortigate returning invalid PDUs / OIDs not increasing
# http://kb.fortinet.com/kb/documentLink.do?externalID=FD39616
~ snmpwalk -On -v 2c -c <FOO> fqdn .1.3.6.1.2.1.2.2.1.1
.1.3.6.1.2.1.2.2.1.1.1 = INTEGER: 1
.1.3.6.1.2.1.2.2.1.1.2 = INTEGER: 2
.1.3.6.1.2.1.2.2.1.1.3 = INTEGER: 3
.1.3.6.1.2.1.2.2.1.1.4 = INTEGER: 4
.1.3.6.1.2.1.2.2.1.1.5 = INTEGER: 5
.1.3.6.1.2.1.2.2.1.1.6 = INTEGER: 6
.1.3.6.1.2.1.2.2.1.1.7 = INTEGER: 7
@RichiH
RichiH / juniper_junos_switch.yml
Created July 14, 2017 07:12
Juniper Junos Switch config for snmp_exporter
juniper_junos_switch:
auth:
community: foo
walk:
- 1.3.6.1.2.1.2
- 1.3.6.1.2.1.31.1.1
- 1.3.6.1.2.1.1 #uptime
- 1.3.6.1.4.1.2636.3.1.13.1 # load juniper chassis stats
- 1.3.6.1.4.1.2636.3.3.1.1.26
@RichiH
RichiH / proemtheus.yml
Last active June 9, 2017 08:10
Prometheus / Nageru basic config for Sesse
global:
scrape_interval: 15s
evaluation_interval: 15s
scrape_configs:
- job_name: 'prometheus'
scrape_interval: 5s
scrape_timeout: 5s
static_configs:
- targets: ['localhost:9090']
- job_name: 'nageru'
@RichiH
RichiH / citrix_netscaler.yml
Created May 16, 2017 14:03
Working Citrix Netscaler config for snmp_exporter after 0.3.0 (version=0.3.0, branch=master, revision=fcf8ba59e7bb28efcc7bbb21a369e4558907e713)
citrix_netscaler:
auth:
community: yolo
walk:
- 1.3.6.1.2.1.1
- 1.3.6.1.2.1.2
- 1.3.6.1.2.1.31.1.1
- 1.3.6.1.4.1.5951.4.1.1.41
- 1.3.6.1.4.1.5951.4.1.1.43
- 1.3.6.1.4.1.5951.4.1.1.45
An error has occurred during metrics gathering:
2 error(s) occurred:
* collected metric ifName label:<name:"ifIndex" value:"2" > label:<name:"ifName" value:"LO/1" > gauge:<value:1 > has label dimensions inconsistent with previously collected metrics in the same metric family
* collected metric ifName label:<name:"ifIndex" value:"1" > label:<name:"ifName" value:"0/1" > gauge:<value:1 > has label dimensions inconsistent with previously collected metrics in the same metric family