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/python | |
import subprocess | |
import urllib2, urllib | |
import json | |
import os | |
import sys | |
VER = {} | |
APIKEY = '<KEY>' | |
LIBRENMS = 'http://<HOST>/api/v0/devices' |
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
#!/platform/python/bin/python | |
import datetime | |
from dateutil.parser import parse as parse_date | |
import sys | |
import cachetclient.cachet as cachet | |
import json | |
ENDPOINT = 'http://status/api/v1' | |
API_TOKEN = '<%= @cachethq_key %>' |
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
<?php | |
/* | |
* Facter (Puppet) plugin for racktables 0.20.1 (and probably newer) | |
* | |
* This file is both a web GUI and REST webservice for auto create and update machines based on facter (puppet) files. | |
* | |
* REST example: | |
* curl -F "userfile=@/root/facter.txt" -u username:password "http://racktables/index.php?module=redirect&page=depot&tab=facter&op=Update" | |
* | |
* Usage instructions: |
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/sh | |
# Warranty request script for Dell PCs | |
# Written by Adam Nielsen <[email protected]> | |
# This code is in the public domain, and is supplied with no warranty. | |
# | |
# This script uses Dell's web service to retrieve the most distant warranty expiration | |
# date for a given machine, as identified by its service tag. It requires curl and awk. | |
# It doesn't parse the WSDL or anything nice like that, it just sends a precomposed | |
# request to the server and extracts the relevant info from the response. |
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
{ | |
"title": "Collectd Metrics", | |
"services": { | |
"query": { | |
"list": { | |
"0": { | |
"query": "plugin:\"load\"", | |
"alias": "Load", | |
"color": "#7EB26D", | |
"id": 0, |