[Nagiosplug-devel] [ nagiosplug-New Plugins-1191582 ] script to check disk usage using ssh

SourceForge.net noreply at sourceforge.net
Thu Apr 28 06:27:00 CEST 2005


New Plugins item #1191582, was opened at 2005-04-28 11:43
Message generated for change (Comment added) made by mistur
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=541465&aid=1191582&group_id=29880

Category: Application monitor
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Yoann (mistur)
Assigned to: Nobody/Anonymous (nobody)
Summary: script to check disk usage using ssh

Initial Comment:
# check_disk_ssh -H <host> -d <device> [-u <user>] 
#                [-w <warn>] [-c <critical>] 
#          
# Nagios host script to get the disk usage using ssh 
#

# This program is free software; you can redistribute
it and/or modify it
# under the terms of the GNU General Public Liecense as
published bu the 
# Free Software Foundation; either version 2 of the
License, or (at your 
# option) any later version.
#
# This program is distributed in the hope that it will
be usefull, but
# WITHOUT ANY WARRANTY; without even the implied
warrantly of 
# MERCHABILITY 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 program; if not, write to the Free Software
Foundation, Inc.
# 675 Mass Ave, Cambridge, MA 02139, USA.
#

# Requirements 
# ============
#  * The user running nagios process must be able to
connect on the remote 
#  server with key authentification without passphrase
or using ssh-agent
#  * You must create a dsa or rsa key for the user
running nagios process
# ('nagios' by default)
#  * Rsa authentification for the remote host must
already done
#          

# Changes and Modifications
# =========================
# 28-Apr-2005 - Yoann Moulin
<informatique-nospam at mistur.org>
#  Created from scratch to check disk usage via ssh on
server where
#  it's not possible to install snmp or nagios agent 
#          
# $Id: check_disk_ssh,v 0.10 2005/04/28 10:27:54 $
#

Usage : check_disk_ssh -H <hostname> -d
[<device>|<mount point>] [-u <username>] [-w
<warn_time> [-c <crit_time>]

-h,--help
   print this help
-H,--hostname=HOST
   full DNS name of the server (hostname.domaine.tls)
-u,--username=STRING
   user that allow to connect using key
authentification (Default: "nagios") 
-d,--device=STRING
   Device or Mount Point to be tested
-w,--warning=INTEGER 
   Percent of used space at which a warning will be
generated (Default: 85%)
-c,--critical=INTEGER
   Percent of used space at which a critical will be
generated (Defaults: 95%)
   
   * Warning percentage should be less than critical


----------------------------------------------------------------------

>Comment By: Yoann (mistur)
Date: 2005-04-28 15:24

Message:
Logged In: YES 
user_id=1268396

finalize the plugin, maybe some optimisation can be done

----------------------------------------------------------------------

Comment By: Yoann (mistur)
Date: 2005-04-28 15:24

Message:
Logged In: YES 
user_id=1268396

Thanks you for submitting your plugin/script for inclusion in the
NagiosPlugins project.

Please note that only plugins/scripts with an opensource license
can be accepted in this project. Please ensure that your code
contains explicit copyright and license information.

Future status of your plugin:
Initially the plugin will be included asis in the contrib
directory.  If you have any updates or patches that need to be
applied, please post them on the NagiosPlugins website under Patches.

(http://sourceforge.net/tracker/?group_id=29880&atid=397599)

If the plugin code meets with the guidelines and there is a
general consensus among  users that it is useful and could see
wide deployment, the plugin code will be migrated from "contrib"
to "supported" status in either the plugins or plugins-scripts
directories.


Future status of your script: 
At this time we have only started collecting scripts that are
used for report generation.  Their future migration to supported
status is not clear at the moment.

Again thanks for contributing to opensource.

The NagiosPlugins Team

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=541465&aid=1191582&group_id=29880




More information about the Devel mailing list