1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
|
Commands for hosts.cfg.
All commands are prefixed by something similar to:
command[name]=/path/to/libexec/
-------------------------------
For check_disk.pl:
check_disk.pl $HOSTADDRESS$ $ARG1$ $ARG2$ $ARG3$ $ARG4$
$HOSTADDRESS$ = Will be IP address/hostname of netsaint_statd host
$ARG1$ = disk to check (like /dev/hda1 - not /usr/local)
$ARG2$(optional) = Warning Percentage (default 85%)
$ARG3$(optional) = Critical Percentage (default 95%)
$ARG4$(optional) = Port netsaint_statd host is running on. (default 1040)
-------------------------------
-------------------------------
For check_load.pl:
check_load.pl $HOSTADDRESS$ $ARG1$ $ARG2$ $ARG3$
$HOSTADDRESS$ = Will be IP address/hostname of netsaint_statd host
$ARG1$(optional) = Warning level for 5-min load average. (default 5)
$ARG2$(optional) = Critical level for 5-min load average. (default warning+5)
$ARG3$(optional) = Port netsaint_statd daemon is running on. (default 1040)
-------------------------------
-------------------------------
For check_procs.pl:
check_procs.pl $HOSTADDRESS$ $ARG1$ $ARG2$ $ARG3$ $ARG4$
$HOSTADDRESS$ = Will be IP address/hostname of netsaint_statd host
$ARG1$(optional) = Number of processes to warn at. (default 150)
$ARG2$(optional) = Number of processes to go critical at. (default warn+50)
$ARG3$(optional) = Only search for processes in this state (default all states)
$ARG4$(optional) = Port netsaint_statd daemon is running on. (default 1040)
-------------------------------
-------------------------------
For check_users.pl:
check_users.pl $HOSTADDRESS$ $ARG1$ $ARG2$ $ARG3$
$HOSTADDRESS$ = Will be IP address/hostname of netsaint_statd host
$ARG1$(optional) = Number of users to warn at. (default 15)
$ARG2$(optional) = Number of users to critical at. (default warn+20)
$ARG3$(optional) = Port netsaint_statd daemon is running on. (default 1040)
-------------------------------
-------------------------------
For check_all_disks.pl:
check_all_disks.pl $HOSTADDRESS$ $ARG1$ $ARG2$ $ARG3$ $ARG4$
$HOSTADDRESS$ = Will be IP address/hostname of netsaint_statd host
$ARG1$ = Comma delimited list of mount points to ignore (like /cdrom,/mnt/floppy) *or* none
If you want wildcards, use .* For example, /mnt/floppy,/cdrom.*,/usr
$ARG2$(optional) = Percentage full to warn at (default 85%)
$ARG3$(optional) = Percentage full to critical at (default 95%)
$ARG4$(optional) = Port netsaint_statd daemon is running on. (default 1040)
------------------------------
------------------------------
For check_named_proc.pl:
check_named_proc.pl $HOSTADDRESS$ $ARG1$ $ARG2$ $ARG3$ $ARG4$
$HOSTADDRESS$ = Will be IP address/hostname of netsaint_statd host
$ARG1$ = Number of process named [process] to warn at (equal or less than this)
$ARG2$ = Number of process named [process] to critical at (equal or less than this)
$ARG3$ = Name of process [process]. Something like "httpd" would be good here.
$ARG4$(optional) = Port netsaint_statd daemon is running on. (default 1040)
------------------------------
------------------------------
For check_filemod_statd.pl:
(check the number of seconds since the last update of the filename
supplied and compare to warn/critical thresholds)
check_filemod.pl $HOSTADDRESS$ $ARG1$ $ARG2$ $ARG3$ $ARG4$
$HOSTADDRESS$ = Will be IP address/hostname of netsaint_statd host
$ARG1$ (required) = filename to monitor
$ARG2$ (optional) = warning update interval (default 300)
$ARG3$ (optional) = critical update interval (default warn * 2)
$ARG4$ (optional) = netsaint_statd daemon port (default 1040)
------------------------------
|