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
import psutil | |
import simplejson | |
import time | |
import urllib2 | |
# Sends the CPU and memory usage stats to Loggly. Sends both a machine total and per process. | |
def log(): | |
"""""" | |
proc_dict = {} |
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 | |
## nagios2loggly.sh | |
## Andy Mayhew <andy@loggly.com> | |
## | |
## Read from Nagios perfdata file and send bulk data. | |
## | |
## Setup as parallel performance data processor. | |
## Create /etc/nagios3/conf.d/nagios2loggly.cfg | |
## define command{ |