import sys import time import nagios from nagios import NagiosTester, which, end from nagios import OK, WARNING, CRITICAL, UNKNOWN, DEFAULT_TIMEOUT from optparse import OptionParser __author__ = "Hari Sekhon" __title__ = "Nagios Plugin for VNC" __version__ = 0.6 nagios.CHECK_NAME = "VNC" # The standard VNC port DEFAULT_PORT = 5900 BIN = which("vncsnapshot") class VncTester(NagiosTester): """Holds state for the vnc test""" def __init__(self): """Initializes all variables to their default states""" super(VncTester, self).__init__() #self.port = "" self.passwdfile = "" def validate_variables(self): """Runs through the validation of all test variables
the subversion client "svn" to be installed somewhere in the path""" import sys import time import nagios from nagios import NagiosTester, which, end from nagios import OK, WARNING, CRITICAL, UNKNOWN, DEFAULT_TIMEOUT from optparse import OptionParser __author__ = "Hari Sekhon" __title__ = "Nagios Plugin for Subversion" __version__ = 0.6 nagios.CHECK_NAME = "SVN" BIN = which("svn") class SvnTester(NagiosTester): """Holds state for the svn test""" def __init__(self): """Initializes all variables to their default states""" super(SvnTester, self).__init__() self.directory = "" self.http = False self.https = False self.password = "" self.port = ""