Skip to content

Instantly share code, notes, and snippets.

@theherodied
theherodied / NIMBLE-MIB
Last active March 16, 2018 16:14
Librenms Nimble Storage MIB
NIMBLE-MIB DEFINITIONS ::= BEGIN
IMPORTS
MODULE-IDENTITY, OBJECT-TYPE,
Unsigned32, Counter64
FROM SNMPv2-SMI
DisplayString, TruthValue
FROM SNMPv2-TC
enterprises
FROM SNMPv2-SMI;
@theherodied
theherodied / PR 8405
Last active March 16, 2018 17:25
Librenms Nimble Files
Librenms Pull Request
https://github.com/librenms/librenms/pull/8405
@theherodied
theherodied / a librenms nimble run 2
Last active March 16, 2018 17:31
Librenms Nimble run 2. Adding IO and other stuff.
.
@theherodied
theherodied / highlow disco
Last active March 17, 2018 02:20
librenms nimble storage highlow try
<?php
/**
* nimbleos.inc.php
*
* LibreNMS storage discovery module for Nimble Storage
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
@theherodied
theherodied / definitions tegile
Last active March 21, 2018 14:01
LibreNMS Tegile
os: tegile
text: 'Tegile IntelliFlash'
type: storage
icon: tegile
over:
- { graph: device_bits, text: 'Device Traffic' }
- { graph: device_storage, text: 'Storage Usage' }
mib_dir:
- tegile
@theherodied
theherodied / .disco intelliflash
Last active March 28, 2018 22:06
intelliflash3
<?php
/**
* tegile.inc.php
*
* LibreNMS storage discovery module for Tegile Storage
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
@theherodied
theherodied / gist:f48c1757be90d57ffc42498a2b561e69
Last active April 17, 2018 17:37
Example /etc/nginx/conf.d/oxidized.conf file
server {
listen 80;
listen [::]:80;
server_name oxidized.company.com;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
@theherodied
theherodied / gist:9cda7b34786ef8e0bbaa45efa07843fa
Last active April 25, 2018 03:07
Example Nginx Librenms Config /etc/nginx/conf.d/librenms.conf
server {
listen 80;
listen [::]:80;
server_name librenms.company.com;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
@theherodied
theherodied / cumulus.inc.php
Last active April 27, 2018 04:25
LibreNMS: Cumulus
<?php
/**
* cumulus.inc.php
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
@theherodied
theherodied / Cumulus Correct Way
Last active May 1, 2018 13:25
cumulus vlan to port mismatch
The dogt1qPvid indexing does not index by ifIndex. To get the ifindex you have to look at the ifindex to dot1xBasePortIfIndex. RFC 4188 (BRIDGE-MIB) defines the
dot1dBasePortIfIndex OBJECT-TYPE
SYNTAX InterfaceIndex
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The value of the instance of the ifIndex object,
defined in IF-MIB, for the interface corresponding
to this port."