Skip to content

Instantly share code, notes, and snippets.

@wheel5up
wheel5up / graylog-monitoring.json
Created May 11, 2025 21:30
Zabbix template to monitor Graylog built on Graylog 6.1.4 and Zabbix 7.0.2.
{
"zabbix_export": {
"version": "7.0",
"template_groups": [
{
"uuid": "a571c0d144b14fd4a87a9d9b2aa9fcd6",
"name": "Templates/Applications"
}
],
"templates": [
@wheel5up
wheel5up / graylog-metrics.org.graylog2.buffer.json
Created April 20, 2025 20:14
graylog metrics org.graylog2.buffers
{
"total": 38,
"metrics": [
{
"full_name": "org.graylog2.buffers.processors.OutputBufferProcessor.1.executor-service.tasks.completed",
"metric": {
"value": 147408428
},
"name": "completed",
"type": "gauge"
@wheel5up
wheel5up / container-instance.json
Created April 8, 2025 22:17
container instance zabbix template
{
"zabbix_export": {
"version": "7.0",
"template_groups": [
{
"uuid": "a571c0d144b14fd4a87a9d9b2aa9fcd6",
"name": "Templates/Applications"
}
],
"templates": [
@wheel5up
wheel5up / docker-containers.json
Created April 8, 2025 16:12
Zabbix docker container discovery for agent v1
{
"zabbix_export": {
"version": "7.0",
"template_groups": [
{
"uuid": "a571c0d144b14fd4a87a9d9b2aa9fcd6",
"name": "Templates/Applications"
}
],
"host_groups": [
@wheel5up
wheel5up / pihole-stats.yaml
Created July 7, 2024 21:07
Collecting pi-hole status with custom script
zabbix_export:
version: '6.4'
template_groups:
- uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6
name: Templates/Applications
templates:
- uuid: 11f833e81adb4040b367a55d5cef4019
template: 'pi-hole stats'
name: 'pi-hole stats'
description: 'Gather pi-hole stats'
@wheel5up
wheel5up / content-pack-55e40bda-92c9-4094-b028-506d3c63ef36-1.json
Created June 30, 2024 22:24
Content Pack for Graylog ingesting pihole data from sqlite
{
"v": 1,
"id": "55e40bda-92c9-4094-b028-506d3c63ef36",
"rev": 1,
"name": "pihole",
"summary": "This content pack shows data from pi-hole",
"description": "This content pack expects data formed from an extraction script run on the pi-hole host.\n",
"vendor": "johnstephenwheeler@gmail.com",
"url": "",
"parameters": [],
@wheel5up
wheel5up / zbx_export_templates.yaml
Created April 6, 2024 16:48
QNAP SMART discovery with Zabbix 6.4
zabbix_export:
version: '6.4'
template_groups:
- uuid: e960332b3f6c46a1956486d4f3f99fce
name: 'Templates/Server hardware'
templates:
- uuid: ba541537a40f46eab3d292300ad4f062
template: 'QNAP SMART discovery'
name: 'QNAP SMART discovery'
description: 'QNAP SMART attributes'
@wheel5up
wheel5up / borg_backup.sh
Created February 19, 2024 22:09
borg backup with zabbix sender
#!/bin/zsh
# Automated User Data Backup Script for BorgBackup
PATH=$PATH:/usr/local/bin
BORG=/usr/local/bin/borg
ZSENDER=/usr/local/bin/zabbix_sender
JQ=/usr/local/bin/jq
HOST=$(hostname -s)
# Send all output to Graylog
# https://tldp.org/LDP/abs/html/process-sub.html
@wheel5up
wheel5up / zbx_export_templates.json
Created February 19, 2024 22:00
Zabbix template to capture borg backup status
{
"zabbix_export": {
"version": "6.4",
"template_groups": [
{
"uuid": "7df96b18c230490a9a0a9e2307226338",
"name": "Templates"
}
],
"templates": [
@wheel5up
wheel5up / sechub-jira.puml
Created October 19, 2023 16:48
AWS Securityhub to Jira flow
@startuml
state seachForJiraIssue:Search for Jira issue \nby AWS finding ID
state createOrUpdateJiraIssue <<choice>>
state SetJiraKeyFromSearch: Use the search response\nto set the Jira issue key
state createJiraIssue:Create Jira issue from finding
state SetJiraKeyFromCreate: Use the create response\nto set the Jira issue key
state moreThanOneJiraIssue: Fail State\nfinding ID's should be unique
state transitionJiraIssue: Reopen issue before update
state updateJiraIssue: Update Jira Issue
state closeJiraIssueCNR: Close Jira Issue\nCannot Reproduce