This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
LOGFILE=/var/log/newrelic/newrelic-resque-agent.log | |
PIDFILE=/var/run/newrelic-resque-agent.pid | |
CONFIGFILE=/etc/newrelic/newrelic_resque_agent.yml | |
case $1 in | |
start) | |
exec 2>&1 /usr/bin/newrelic_resque_agent --config $CONFIGFILE run 1> $LOGFILE & | |
echo $! > $PIDFILE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
SNMP helper for HAproxy implementing EXCELIANCE-MIB with | |
`pass_persist` protocol. Data are retrieved from multiple instances of | |
haproxy using HTTP. | |
""" | |
def toOid(oid): | |
"""Convert a string to tuple OID""" |