Skip to content

Instantly share code, notes, and snippets.

@angryp
angryp / discovery_switch_debug.out
Created June 4, 2019 12:30
discovery_switch_debug.out
LibreNMS Discovery
SQL[select `migration` from `migrations` order by `id` desc limit 1 [] 178.84ms]
SQL[select count(*) as aggregate from `migrations` limit 1 [] 207.35ms]
SQL[SELECT version() [] 195.67ms]
===================================
Version info:
Commit SHA: 5c6a9ab623aa913f892038d547ff32f725ed1fa8
@angryp
angryp / discovery_server_debug.out
Last active June 4, 2019 12:29
discovery_server_debug.out
LibreNMS Discovery
SQL[select `migration` from `migrations` order by `id` desc limit 1 [] 3.19ms]
SQL[select count(*) as aggregate from `migrations` limit 1 [] 5.78ms]
SQL[SELECT version() [] 2.38ms]
===================================
Version info:
Commit SHA: 5c6a9ab623aa913f892038d547ff32f725ed1fa8
librenms.lock:polling.device.196
librenms.lock:polling.device.1509
librenms.lock:polling.device.1275
librenms.lock:polling.device.701
librenms.lock:polling.device.81
librenms.lock:polling.device.1519
librenms.lock:polling.device.760
librenms.lock:polling.device.103
librenms.lock:polling.device.509
librenms.lock:polling.device.241
This file has been truncated, but you can view the full file.
execve("./poller.php", ["./poller.php", "-h", "1459", "-d"], [/* 19 vars */]) = 0
brk(NULL) = 0x557513dbf000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f564259a000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=24230, ...}) = 0
mmap(NULL, 24230, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f5642594000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
LibreNMS Poller
SQL[select `version` from `dbSchema` order by `version` desc limit 1 [] 176.06ms]
SQL[SELECT version() [] 181.06ms]
===================================
Version info:
Commit SHA: 8c83838f9991c90f32125c322bd92a162dc93200
Commit Date: 1536271888
DB Schema: 264
PHP: 7.0.27-0+deb9u1
MySQL: 5.7.20
LibreNMS Poller
SQL[select `version` from `dbSchema` order by `version` desc limit 1 [] 0.32ms]
SQL[SELECT version() [] 0.17ms]
===================================
Version info:
Commit SHA: 5c4a298cfce309db01c2dccd399afa40f570850f
Commit Date: 1536095643
DB Schema: 262
PHP: 7.0.31-1+0~20180725100316.2+stretch~1.gbp8e8a8b
MySQL: 10.2.14-MariaDB-10.2.14+maria~stretch
@angryp
angryp / ack.php
Created August 29, 2018 08:10
Alert acknowledgement for LibreNMS
<?php
/*
* LibreNMS
*
* Copyright (c) 2018 Olegs Vasiljevs <https://github.com/angryp>
*
* 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
@angryp
angryp / gist:38d8585831d4eb27c797e3ec6d84ae19
Created May 28, 2018 13:19
LibreNMS VLAN discovery debug
This file has been truncated, but you can view the full file.
Modules status: Global+ OS+ Device
#### Load disco module vlans ####
SQL[SELECT * FROM `vlans` WHERE `device_id` = '553']
SNMP[/usr/bin/snmpbulkwalk -v2c -c COMMUNITY -OQUs -m BRIDGE-MIB -M /opt/librenms/mibs udp:HOSTNAME:161 dot1dBasePortIfIndex]
dot1dBasePortIfIndex.1 = 1
dot1dBasePortIfIndex.2 = 2
dot1dBasePortIfIndex.3 = 3
dot1dBasePortIfIndex.4 = 4
dot1dBasePortIfIndex.5 = 5
dot1dBasePortIfIndex.6 = 6