Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@nicolasb827
nicolasb827 / phpfpm.py
Created June 25, 2021 14:14
phpfpm.py to retrieve php-fpm json status without nginx/http configuration for collectd. requires that pm.status = /status and cgi-fgci and sed are installed
#!/usr/bin/env python
import sys
import subprocess
import json
COLLECTD_ENABLED = True
try:
if COLLECTD_ENABLED:
import collectd
except ImportError:
#!/bin/bash
#
# The MIT License (MIT)
#
# Copyright (c) 2014 Mathias Leppich <mleppich@muhqu.de>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@nicolasb827
nicolasb827 / borg
Last active November 3, 2016 23:55 — forked from maethor/borg
BorgBackup handler script for backupninja
# -*- mode: sh; sh-basic-offset: 3; indent-tabs-mode: nil; -*-
# vim: set filetype=sh sw=3 sts=3 expandtab autoindent:
#
# borg handler script for backupninja
# requires borgbackup
#
# Guillaume Subiron, Sysnove, 2016
#
# Copyright 2016 Guillaume Subiron <guillaume@sysnove.fr>
# This work is free. You can redistribute it and/or modify it under the
@nicolasb827
nicolasb827 / example.borg
Created November 3, 2016 23:52 — forked from maethor/example.borg
BorgBackup handler for backupninja : example configuration file
##
## This is an example borgbackup configuration file.
##
## Here you can find all the possible borgbackup options, details of
## what the options provide and possible settings. The defaults are set
## as the commented out option, uncomment and change when
## necessary. Options which are uncommented in this example do not have
## defaults, and the settings provided are recommended.
##
## The defaults are useful in most cases, just make sure to configure the