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/zsh | |
#The intent of this script is to be called from a cron job every 5 or 10 minutes on an Isilon node. | |
#Dumps a bunch of text based stats to a rotating log file every 24 hours. This is useful for troubleshooting purposes. | |
#Let's first look and see if we have a stuck execution of the script. If the lock is older than 10 minutes we'll kill the PID and cleanup the lock. | |
find /tmp/nfs-stat.lck -mmin +20 -exec kill -9 `cat /tmp/nfs-stat.lck` {} \; | |
find /tmp/nfs-stat.lck -mmin +20 -exec rm -rf /tmp/nfs-stat.lck {} \; | |
lockfile=/tmp/nfs-stat.lck |
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
isi statistics heat --class write,namespace_write --orderby class >> /ifs/admin/scripts/stat/stats/heat_`date +"%d-%m-%y_%H-%M"`.txt | |
awk '{print $4,$5}' /ifs/admin/scripts/stat/stats/heat_`date +"%d-%m-%y_%H"`-*.txt | sort | uniq -c | sort -k 1 | less |
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
{ | |
"name": "Your Isilon Cluster SyncIQ", | |
"options": { | |
"auth": { | |
"pass": "yourrootpasswordhere", | |
"user": "root" | |
}, | |
"strictSSL": false | |
}, | |
"postProcessor": "pp = function(data) {\n return(data.policies);\n};", |
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
{ | |
"duration": 10, | |
"frequency": 300, | |
"layout": { | |
"gridColumns": 1, | |
"gridRows": 1, | |
"scrolling": false | |
}, | |
"name": "SyncIQ details", | |
"widgets": [{ |
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
{ | |
"name": "Your Isilon Cluster SyncIQ Report", | |
"options": { | |
"auth": { | |
"pass": "yourrootpasswordhere", | |
"user": "root" | |
}, | |
"strictSSL": false | |
}, | |
"postProcessor": "pp = function (data) {\n\n var new_data = _.map(data.reports, function(row) {\n \n return {\n name: row.policy.name,\n state: row.state,\n start_time: row.start_time,\n end_time: row.end_time,\n duration: row.duration,\n };\n });\n\n return _.compact(new_data);\n}", |
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
{ | |
"dataSources": [{ | |
"name": "Your Isilon Cluster SyncIQ Report", | |
"options": { | |
"auth": { | |
"pass": "<password>", | |
"user": "<username>" | |
}, | |
"strictSSL": false | |
}, |
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
#Dockerfile | |
FROM phusion/baseimage:latest | |
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | |
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 | |
RUN echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/3.0 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-3.0.list | |
RUN apt-get update | |
RUN apt-get install -y build-essential git mongodb-org supervisor curl wget nginx | |
RUN curl -sL https://deb.nodesource.com/setup | sudo bash - | |
RUN apt-get install -y nodejs | |
RUN npm install -g npm@latest |
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
{ | |
"id": 2, | |
"title": "Isilon Storage Dashboard", | |
"originalTitle": "Isilon Storage Dashboard", | |
"tags": [], | |
"style": "dark", | |
"timezone": "browser", | |
"editable": true, | |
"hideControls": false, | |
"sharedCrosshair": true, |
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
function Disable-SSLValidation{ | |
<# | |
.SYNOPSIS | |
Disables SSL certificate validation | |
.DESCRIPTION | |
Disable-SSLValidation disables SSL certificate validation by using reflection to implement the System.Net.ICertificatePolicy class. | |
Author: Matthew Graeber (@mattifestation) | |
License: BSD 3-Clause | |
.NOTES |
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 | |
# Version: 2.3.1 | |
# Author: Jason Davis | |
# Date: 08/09/2018 | |
# Purpose: Send Isilon directory quota usage details to Graphite for visualization | |
#---------------------------------------------------------------------------------------------------------------------------------------------- | |
# Changes: | |
# Setup to grab user quotas | |
# Replacing "/" with "_" as a delimiter was kinda a bad idea. Using "." which is more standard with Graphite metric naming. | |
# That last logic change was kinda crudely implemented. We shouldn't assume that each quota has a hard threshold and assign a value of 0. |
OlderNewer