Update URLs and copyright

This commit is contained in:
Sven Velt 2016-11-24 20:49:33 +01:00
parent bd5a2e6189
commit 03e09061a5
9 changed files with 92 additions and 26 deletions

View file

@ -4,9 +4,12 @@
##################################################################### #####################################################################
# (c) 2007-2011 by Sven Velt and team(ix) GmbH, Nuernberg, Germany # # (c) 2007-2011 by Sven Velt and team(ix) GmbH, Nuernberg, Germany #
# sv@teamix.net # # sv@teamix.net #
# (c) 2016 by Sven Velt, Germany #
# sven-mymonplugins@velt.biz #
# # # #
# This file is part of "team(ix) Monitoring Plugins" # # This file is part of "velt.biz - My Monitoring Plugins" #
# URL: http://oss.teamix.org/projects/monitoringplugins/ # # a fork of "team(ix) Monitoring Plugins" in 2015 #
# URL: https://gogs.velt.biz/velt.biz/MyMonPlugins/ #
# # # #
# This file is free software: you can redistribute it and/or modify # # This file is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published # # it under the terms of the GNU General Public License as published #
@ -37,9 +40,10 @@ except ImportError:
print 'Did you download "%s"' % os.path.basename(sys.argv[0]) print 'Did you download "%s"' % os.path.basename(sys.argv[0])
print 'without "monitoringplugin.py"?\n' print 'without "monitoringplugin.py"?\n'
print 'Please go back to' print 'Please go back to'
print 'http://oss.teamix.org/projects/monitoringplugins/ and download it,' print 'https://gogs.velt.biz/velt.biz/MyMonPlugins and download it,'
print 'or even better:' print 'or even better:'
print 'get a hole archive at http://oss.teamix.org/projects/monitoringplugins/files\n' print 'get a full archive at http://gogs.velt.biz/velt.biz/MyMonPlugins/releases'
print 'or a master snapshot at http://gogs.velt.biz/velt.biz/MyMonPlugins/archive/master.tar.gz\n'
sys.exit(127) sys.exit(127)

View file

@ -42,7 +42,8 @@ except ImportError:
print 'Please go back to' print 'Please go back to'
print 'https://gogs.velt.biz/velt.biz/MyMonPlugins and download it,' print 'https://gogs.velt.biz/velt.biz/MyMonPlugins and download it,'
print 'or even better:' print 'or even better:'
print 'get a full archive at http://gogs.velt.biz/velt.biz/MyMonPlugins/releases\n' print 'get a full archive at http://gogs.velt.biz/velt.biz/MyMonPlugins/releases'
print 'or a master snapshot at http://gogs.velt.biz/velt.biz/MyMonPlugins/archive/master.tar.gz\n'
sys.exit(127) sys.exit(127)

View file

@ -1,10 +1,51 @@
#!/usr/bin/python #!/usr/bin/env python
# -*- encoding: utf-8 -*-
from monitoringplugin import MonitoringPlugin #####################################################################
# (c) 2006-2011 by Sven Velt and team(ix) GmbH, Nuernberg, Germany #
# sv@teamix.net #
# (c) 2016 by Sven Velt, Germany #
# sven-mymonplugins@velt.biz #
# #
# This file is part of "velt.biz - My Monitoring Plugins" #
# a fork of "team(ix) Monitoring Plugins" in 2015 #
# URL: https://gogs.velt.biz/velt.biz/MyMonPlugins/ #
# #
# This file is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published #
# by the Free Software Foundation, either version 2 of the License, #
# or (at your option) any later version. #
# #
# This file is distributed in the hope that it will be useful, but #
# WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with this file. If not, see <http://www.gnu.org/licenses/>. #
#####################################################################
import fcntl import fcntl
import socket import socket
import struct import struct
import sys
try:
from monitoringplugin import SNMPMonitoringPlugin
except ImportError:
print '=========================='
print 'AIKS! Python import error!'
print '==========================\n'
print 'Could not find "monitoringplugin.py"!\n'
print 'Did you download "%s"' % os.path.basename(sys.argv[0])
print 'without "monitoringplugin.py"?\n'
print 'Please go back to'
print 'https://gogs.velt.biz/velt.biz/MyMonPlugins and download it,'
print 'or even better:'
print 'get a full archive at http://gogs.velt.biz/velt.biz/MyMonPlugins/releases'
print 'or a master snapshot at http://gogs.velt.biz/velt.biz/MyMonPlugins/archive/master.tar.gz\n'
sys.exit(127)
def get_ipv4_address(iface): def get_ipv4_address(iface):
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)

View file

@ -40,7 +40,8 @@ except ImportError:
print 'Please go back to' print 'Please go back to'
print 'https://gogs.velt.biz/velt.biz/MyMonPlugins and download it,' print 'https://gogs.velt.biz/velt.biz/MyMonPlugins and download it,'
print 'or even better:' print 'or even better:'
print 'get a full archive at http://gogs.velt.biz/velt.biz/MyMonPlugins/releases\n' print 'get a full archive at http://gogs.velt.biz/velt.biz/MyMonPlugins/releases'
print 'or a master snapshot at http://gogs.velt.biz/velt.biz/MyMonPlugins/archive/master.tar.gz\n'
sys.exit(127) sys.exit(127)

View file

@ -4,9 +4,12 @@
##################################################################### #####################################################################
# (c) 2006-2011 by Sven Velt and team(ix) GmbH, Nuernberg, Germany # # (c) 2006-2011 by Sven Velt and team(ix) GmbH, Nuernberg, Germany #
# sv@teamix.net # # sv@teamix.net #
# (c) 2016 by Sven Velt, Germany #
# sven-mymonplugins@velt.biz #
# # # #
# This file is part of "team(ix) Monitoring Plugins" # # This file is part of "velt.biz - My Monitoring Plugins" #
# URL: http://oss.teamix.org/projects/monitoringplugins/ # # a fork of "team(ix) Monitoring Plugins" in 2015 #
# URL: https://gogs.velt.biz/velt.biz/MyMonPlugins/ #
# # # #
# This file is free software: you can redistribute it and/or modify # # This file is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published # # it under the terms of the GNU General Public License as published #
@ -35,9 +38,10 @@ except ImportError:
print 'Did you download "%s"' % os.path.basename(sys.argv[0]) print 'Did you download "%s"' % os.path.basename(sys.argv[0])
print 'without "monitoringplugin.py"?\n' print 'without "monitoringplugin.py"?\n'
print 'Please go back to' print 'Please go back to'
print 'http://oss.teamix.org/projects/monitoringplugins/ and download it,' print 'https://gogs.velt.biz/velt.biz/MyMonPlugins and download it,'
print 'or even better:' print 'or even better:'
print 'get a hole archive at http://oss.teamix.org/projects/monitoringplugins/files\n' print 'get a full archive at http://gogs.velt.biz/velt.biz/MyMonPlugins/releases'
print 'or a master snapshot at http://gogs.velt.biz/velt.biz/MyMonPlugins/archive/master.tar.gz\n'
sys.exit(127) sys.exit(127)

View file

@ -4,9 +4,12 @@
##################################################################### #####################################################################
# (c) 2005-2011 by Sven Velt and team(ix) GmbH, Nuernberg, Germany # # (c) 2005-2011 by Sven Velt and team(ix) GmbH, Nuernberg, Germany #
# sv@teamix.net # # sv@teamix.net #
# (c) 2016 by Sven Velt, Germany #
# sven-mymonplugins@velt.biz #
# # # #
# This file is part of "team(ix) Monitoring Plugins" # # This file is part of "velt.biz - My Monitoring Plugins" #
# URL: http://oss.teamix.org/projects/monitoringplugins/ # # a fork of "team(ix) Monitoring Plugins" in 2015 #
# URL: https://gogs.velt.biz/velt.biz/MyMonPlugins/ #
# # # #
# This file is free software: you can redistribute it and/or modify # # This file is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published # # it under the terms of the GNU General Public License as published #
@ -37,9 +40,10 @@ except ImportError:
print 'Did you download "%s"' % os.path.basename(sys.argv[0]) print 'Did you download "%s"' % os.path.basename(sys.argv[0])
print 'without "monitoringplugin.py"?\n' print 'without "monitoringplugin.py"?\n'
print 'Please go back to' print 'Please go back to'
print 'http://oss.teamix.org/projects/monitoringplugins/ and download it,' print 'https://gogs.velt.biz/velt.biz/MyMonPlugins and download it,'
print 'or even better:' print 'or even better:'
print 'get a hole archive at http://oss.teamix.org/projects/monitoringplugins/files\n' print 'get a full archive at http://gogs.velt.biz/velt.biz/MyMonPlugins/releases'
print 'or a master snapshot at http://gogs.velt.biz/velt.biz/MyMonPlugins/archive/master.tar.gz\n'
sys.exit(127) sys.exit(127)

View file

@ -4,9 +4,12 @@
##################################################################### #####################################################################
# (c) 2010-2011 by Sven Velt and team(ix) GmbH, Nuernberg, Germany # # (c) 2010-2011 by Sven Velt and team(ix) GmbH, Nuernberg, Germany #
# sv@teamix.net # # sv@teamix.net #
# (c) 2016 by Sven Velt, Germany #
# sven-mymonplugins@velt.biz #
# # # #
# This file is part of "team(ix) Monitoring Plugins" # # This file is part of "velt.biz - My Monitoring Plugins" #
# URL: http://oss.teamix.org/projects/monitoringplugins/ # # a fork of "team(ix) Monitoring Plugins" in 2015 #
# URL: https://gogs.velt.biz/velt.biz/MyMonPlugins/ #
# # # #
# This file is free software: you can redistribute it and/or modify # # This file is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published # # it under the terms of the GNU General Public License as published #
@ -36,9 +39,10 @@ except ImportError:
print 'Did you download "%s"' % os.path.basename(sys.argv[0]) print 'Did you download "%s"' % os.path.basename(sys.argv[0])
print 'without "monitoringplugin.py"?\n' print 'without "monitoringplugin.py"?\n'
print 'Please go back to' print 'Please go back to'
print 'http://oss.teamix.org/projects/monitoringplugins/ and download it,' print 'https://gogs.velt.biz/velt.biz/MyMonPlugins and download it,'
print 'or even better:' print 'or even better:'
print 'get a hole archive at http://oss.teamix.org/projects/monitoringplugins/files\n' print 'get a full archive at http://gogs.velt.biz/velt.biz/MyMonPlugins/releases'
print 'or a master snapshot at http://gogs.velt.biz/velt.biz/MyMonPlugins/archive/master.tar.gz\n'
sys.exit(127) sys.exit(127)

View file

@ -4,9 +4,12 @@
##################################################################### #####################################################################
# (c) 2010-2011 by Sven Velt and team(ix) GmbH, Nuernberg, Germany # # (c) 2010-2011 by Sven Velt and team(ix) GmbH, Nuernberg, Germany #
# sv@teamix.net # # sv@teamix.net #
# (c) 2016 by Sven Velt, Germany #
# sven-mymonplugins@velt.biz #
# # # #
# This file is part of "team(ix) Monitoring Plugins" # # This file is part of "velt.biz - My Monitoring Plugins" #
# URL: http://oss.teamix.org/projects/monitoringplugins/ # # a fork of "team(ix) Monitoring Plugins" in 2015 #
# URL: https://gogs.velt.biz/velt.biz/MyMonPlugins/ #
# # # #
# This file is free software: you can redistribute it and/or modify # # This file is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published # # it under the terms of the GNU General Public License as published #
@ -38,9 +41,10 @@ except ImportError:
print 'Did you download "%s"' % os.path.basename(sys.argv[0]) print 'Did you download "%s"' % os.path.basename(sys.argv[0])
print 'without "monitoringplugin.py"?\n' print 'without "monitoringplugin.py"?\n'
print 'Please go back to' print 'Please go back to'
print 'http://oss.teamix.org/projects/monitoringplugins/ and download it,' print 'https://gogs.velt.biz/velt.biz/MyMonPlugins and download it,'
print 'or even better:' print 'or even better:'
print 'get a hole archive at http://oss.teamix.org/projects/monitoringplugins/files\n' print 'get a full archive at http://gogs.velt.biz/velt.biz/MyMonPlugins/releases'
print 'or a master snapshot at http://gogs.velt.biz/velt.biz/MyMonPlugins/archive/master.tar.gz\n'
sys.exit(127) sys.exit(127)

View file

@ -3,9 +3,12 @@
############################################################################# #############################################################################
# (c) 2011 Sven Velt <sven@velt.de # # (c) 2011 Sven Velt <sven@velt.de #
# and team(ix) GmbH, Nuernberg, Germany # # and team(ix) GmbH, Nuernberg, Germany #
# (c) 2016 by Sven Velt, Germany #
# sven-mymonplugins@velt.biz #
# # # #
# This file is part of "team(ix) Monitoring Plugins" # # This file is part of "velt.biz - My Monitoring Plugins" #
# URL: http://oss.teamix.org/projects/monitoringplugins/ # # a fork of "team(ix) Monitoring Plugins" in 2015 #
# URL: https://gogs.velt.biz/velt.biz/MyMonPlugins/ #
# # # #
# All rights reserved. # # All rights reserved. #
# Redistribution and use in source and binary forms, with or without # # Redistribution and use in source and binary forms, with or without #