Skip to content

Instantly share code, notes, and snippets.

View andrusstrockiy's full-sized avatar

Andruss andrusstrockiy

  • moex.com
  • Moscow
View GitHub Profile
@andrusstrockiy
andrusstrockiy / nagios_template.py
Created January 10, 2018 08:31 — forked from jm-welch/nagios_template.py
A simple template for writing Nagios plugin in Python
#! /usr/bin/env python
###############################################################################
# Nagios plugin template
#
# Notes
# - The RHEL boxes I work on are currently limited to Python 2.6.6, hence the
# use of (deprecated) optparse. If I can ever get them all updated to
# Python 2.7 (or better yet, 3.3), I'll switch to argparse
# - This template runs in 2.6-3.3. Any changes made will need to be appropriate