Re: Help with mon and process.monitor

2005-01-11 Thread David Nolan

--On Tuesday, January 11, 2005 2:07 PM +1100 Craig Reeson 
[EMAIL PROTECTED] wrote:

Now I am getting a SNMP timeout issue (using monshow.cgi). I have tried
increasing the timeout in process.monitor but it has made no difference.
However, if I just run 'process.monitor -c mycom 172.28.47.60' then it
works!
I assume your test runs of process.monitor are on the same machine as your 
mon server.  Are you logged in as the user that your mon server runs as? 
i.e. could it be something about your login environment thats allowing the 
script to work.  Can you post a snippet of your mon.cfg, showing the group 
definition and the service definition?

Also, you might want to try running this monitor script to verify that SNMP 
transactions with the target host are working.
https://bugzilla.andrew.cmu.edu/cgi-bin/cvsweb.cgi/~checkout~/src/netsage/mon/mon.d/host.monitor?rev=1.9

(Thats the script we use to verify that the host is responding to snmp, and 
test the load average.)

-David Nolan
Network Software Designer
Computing Services
Carnegie Mellon University
___
mon mailing list
mon@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/mon


minor fix for freespace monitors to hide community name

2005-01-11 Thread Ed Ravin
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).

-- Ed

--- snmpdiskspace.monitor   2004/05/05 13:34:42 1.1
+++ snmpdiskspace.monitor   2005/01/12 01:32:13
@@ -130,7 +130,7 @@


 # Read in defaults
-my $COMM   = $opt{community} || public;
+my $COMM   = $opt{community} || $ENV{COMMUNITY} || public;
 my $TIMEOUT= $opt{timeout} * 10 || 200;   #default timeout is 20 
seconds
 my $RETRIES= $opt{retries} || 5;
 my $CONFIG = $opt{config} || (-d /etc/mon ? /etc/mon : 
/usr/lib/mon/mon.d)


--
--- netsnmp-freespace.monitor   2005/01/12 01:46:25 1.1
+++ netsnmp-freespace.monitor   2005/01/12 01:46:36
@@ -43,7 +43,7 @@
 $ENV{'MIBS'} = UCD-SNMP-MIB;

 getopts(c:);
-$community = $opt_c || 'public';
+$community = $opt_c || $ENV{'COMMUNITY'} || 'public';

 $RETVAL = 0;

___
mon mailing list
mon@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/mon


monitoring inodes

2005-01-11 Thread Ed Ravin
Has anyone hacked any of the disk space monitors to monitor inode
consumption?  I've already hacked this into the netapp monitor,
but would much prefer to steal someone else's code if this has been
done already.

Thanks,

-- Ed

___
mon mailing list
mon@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/mon