Skip to content

Instantly share code, notes, and snippets.

View december-soul's full-sized avatar

decembersoul december-soul

  • Hamburg
View GitHub Profile
@december-soul
december-soul / nagios_template.py
Created April 3, 2017 12:05 — 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