[Mon-commit] mon-contrib/monitors/diskspace/netsnmp-freespace netsnmp-freespace.monitor,1.1.1.1,1.2
Brought to you by:
trockij
From: Jim T. <tr...@us...> - 2005-03-18 19:25:36
|
Update of /cvsroot/mon/mon-contrib/monitors/diskspace/netsnmp-freespace In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30001 Modified Files: netsnmp-freespace.monitor Log Message: Date: Tue, 11 Jan 2005 20:52:10 -0500 From: Ed Ravin <er...@pa...> To: mo...@li... Subject: minor fix for freespace monitors to hide community name Two patches for free space monitors, to give them the same feature: the ability to specify an SNMP community name in the environment, and thus not display it in the command line for peering eyes to see in the Mon interface (with the name of the monitor program in the details view). Index: netsnmp-freespace.monitor =================================================================== RCS file: /cvsroot/mon/mon-contrib/monitors/diskspace/netsnmp-freespace/netsnmp-freespace.monitor,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** netsnmp-freespace.monitor 18 Feb 2005 17:52:24 -0000 1.1.1.1 --- netsnmp-freespace.monitor 18 Mar 2005 19:25:27 -0000 1.2 *************** *** 44,48 **** getopts("c:"); ! $community = $opt_c || 'public'; $RETVAL = 0; --- 44,48 ---- getopts("c:"); ! $community = $opt_c || $ENV{'COMMUNITY'} || 'public'; $RETVAL = 0; |