[Mon-devel] old/new monitor
Brought to you by:
trockij
From: Peter W. (MO/EMW) <pet...@er...> - 2004-07-09 16:49:09
|
Here is my netsnmp.monitor... NAME netsnmp.monitor - monitor disk usage, processes, system load and snmp status via SNMP SYNOPSIS netsnmp.monitor [ --version ] [ --community=community ] [ --port=port ] [ --disk ] [ --load ] [ --proc ] [ --snmp ] host [...] ARGUMENTS --version Prints netsnmp version and exits. --community=community SNMP community (default=public). --port=port SNMP port number (default=161). --disk (default) Check disk usage(enterprises.ucdavis.diskTable) on host(s). --load Check system load(enterprises.ucdavis.loadTable) on host(s). --proc Check processes(enterprises.ucdavis.procTable) on host(s). --snmp Check snmpd status(enterprises.ucdavis.snmperrs) on host(s). host [...] Space separated list of hosts to monitor. DESCRIPTION netsnmp.monitor monitors disk usage, processes, system load and snmp status via the UCSD SNMP agent. It is designed to be used as a monitor for the mon package. If all of the ErrorFlag's (prErrorFlag.*,dskErrorFlag.*,laErrorFlag.*,snmperrErrorFlag.*) that corresponds to the arguments (--proc, --disk, --load, --snmp) are 0. 0 is returned otherwise, it will return 1 and output the hostnames that failed and a description of what has failed. EXAMPLES netsnmp.monitor -proc -disk -load -snmp adm eng Host: adm ErrMsg: /export/home/adm: less than 5% free (= 97%) Device: /dev/vx/dsk/DA-adm/vol-home Total: 11781824 Avail: 295715 Used: 10307929 ErrMsg: No cron process running. Names: cron Min: 0 Max: 0 Count: 0 ErrFix: 0 Host: eng ErrMsg: /store: less than 50% free (= 85%) Device: /dev/dsk/c0t1d0s3 Total: 2012390 Avail: 305878 Used: 1699805 ErrMsg: 15 min Load Average too high (= 0.03) Load: 0.03 Config: 0.03 SEE ALSO *http://mon.sourceforge.net/* *http://www.netsnmp.org/* AUTHOR Peter Wirdemo <pet...@er...> COPYRIGHT Copyright (c) 1998 Peter Wirdemo. Sweden. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. |