Title: [opsview] [9983] Added check_system_version plugin (US255).
Revision
9983
Author
pknight
Date
2012-09-06 18:11:15 +0100 (Thu, 06 Sep 2012)

Log Message

Added check_system_version plugin (US255).

Added Paths


Added: trunk/opsview-core/nagios-plugins/check_system_version
===================================================================
--- trunk/opsview-core/nagios-plugins/check_system_version	                        (rev 0)
+++ trunk/opsview-core/nagios-plugins/check_system_version	2012-09-06 17:11:15 UTC (rev 9983)
@@ -0,0 +1,25 @@
+#!/bin/bash
+
+#    Copyright (C) 2003-2012 Opsview Limited. All rights reserved
+#
+#    This file is part of Opsview
+#
+#    Opsview 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.
+#
+#    Opsview 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 Opsview; if not, write to the Free Software
+#    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+
+desc=`lsb_release -d`
+desc=${desc/Description:/}
+desc=${desc/Distributor ID:/}
+echo $desc
+uname -rv


Property changes on: trunk/opsview-core/nagios-plugins/check_system_version
___________________________________________________________________
Added: svn:executable
   + *

_______________________________________________
Opsview-checkins mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-checkins

Reply via email to