[Nagiosplug-devel] [ nagiosplug-New Plugins-1191582 ] script to check disk usage using ssh
SourceForge.net
noreply at sourceforge.net
Thu Apr 28 02:48:23 CEST 2005
New Plugins item #1191582, was opened at 2005-04-28 11:43
Message generated for change (Tracker Item Submitted) made by Item Submitter
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
----------------------------------------------------------------------
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