Skip to content

Instantly share code, notes, and snippets.

@nicolasb827
nicolasb827 / phpfpm.py
Created Jun 25, 2021
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
View phpfpm.py
#!/usr/bin/env python
import sys
import subprocess
import json
COLLECTD_ENABLED = True
try:
if COLLECTD_ENABLED:
import collectd
except ImportError:
View php-fpm-cli-status-json
#!/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 Nov 3, 2016 — forked from maethor/borg
BorgBackup handler script for backupninja
View borg
# -*- 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 Nov 3, 2016 — forked from maethor/example.borg
BorgBackup handler for backupninja : example configuration file
View example.borg
##
## 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