PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Nagios plugin



tobip
20.10.05, 05:38
Hi,

jemand zufaellig erfahrung mit Nagios und SNMP plugin? versuche remote den speicherplatz zu ueberwachen, was auch fein funzt. Leider bin ich nicht im stande mir aus dem syntax genauer was zusammen zu reimen:

/usr/local/nagios/libexec/check_snmp -H cricket.servepath.com -C public -o .1.3.6.1.4.1.2021.9.1.7.1,.1.3.6.1.4.1.2021.9.1.9. 1 -w 10000000:,:20000000 -c 70000000:,:80000000 -u 'kB free (','% used)' -l 'disk space'

die optionen -w und -c interesieren mich: -w ist warning limit -c ist critical soviel ist mir schon klar aber wieso gibts 2 werte bei jedem und was bedeuten die Doppelpunkte?
kann mir da jemand weiterhelfen?

marce
20.10.05, 05:58
Wer lesen kann ist klar im Vorteil :-)

./check_snmp --help
check_snmp (nagios-plugins 1.3.1) 1.24.2.2
The nagios plugins come with ABSOLUTELY NO WARRANTY. You may redistribute
copies of the plugins under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
Copyright (c) 1999-2002 Ethan Galstad <nagios@nagios.org>

Check status of remote machines using SNMP.

Usage:
check_snmp -H <ip_address> -o <OID> [-w warn_range] [-c crit_range]
[-C community] [-s string] [-r regex] [-R regexi] [-t timeout]
[-l label] [-u units] [-p port-number] [-d delimiter]
[-D output-delimiter] [-m miblist] [-P snmp version]
[-L seclevel] [-U secname] [-a authproto] [-A authpasswd]
[-X privpasswd]

check_snmp (-h | --help) for detailed help
check_snmp (-V | --version) for version information

Options:
-H, --hostname=HOST
Name or IP address of the device you wish to query
-o, --oid=OID(s)
Object identifier(s) whose value you wish to query
-w, --warning=INTEGER_RANGE(s)
Range(s) which will not result in a WARNING status
-c, --critical=INTEGER_RANGE(s)
Range(s) which will not result in a CRITICAL status
-C, --community=STRING
Optional community string for SNMP communication
(default is "public")
-u, --units=STRING
Units label(s) for output data (e.g., 'sec.').
-p, --port=STRING
UDP port number target is listening on. Default is "161"
-P, --protocol=[1|3]
SNMP protocol version
-L, --seclevel=[noAuthNoPriv|authNoPriv|authPriv]
SNMPv3 securityLevel
-U, --secname=USERNAME
SNMPv3 username
-a, --authproto=[MD5|SHA]
SNMPv3 auth proto
-A, --authpassword=PASSWORD
SNMPv3 authentication password
-X, --privpasswd=PASSWORD
SNMPv3 crypt passwd (DES)
-d, --delimiter=STRING
Delimiter to use when parsing returned data. Default is "="
Any data on the right hand side of the delimiter is considered
to be the data that should be used in the evaluation.
-t, --timeout=INTEGER
Seconds to wait before plugin times out (see also nagios server timeout).
Default is 10 seconds
-D, --output-delimiter=STRING
Separates output on multiple OID requests
-s, --string=STRING
Return OK state (for that OID) if STRING is an exact match
-r, --ereg=REGEX
Return OK state (for that OID) if extended regular expression REGEX matches
-R, --eregi=REGEX
Return OK state (for that OID) if case-insensitive extended REGEX matches
-l, --label=STRING
Prefix label for output from plugin (default -s 'SNMP')
-v, --verbose
Debugging the output
-m, --miblist=STRING
List of MIBS to be loaded (default = ALL)

This plugin gets system information on a remote server via snmp.

- This plugin uses the 'snmpget' command included with the NET-SNMP package.
If you don't have the package installed, you will need to download it from
http://net-snmp.sourceforge.net before you can use this plugin.
- Multiple OIDs may be indicated by a comma- or space-delimited list (lists with
internal spaces must be quoted) [max 8 OIDs]
- Ranges are inclusive and are indicated with colons. When specified as
'min:max' a STATE_OK will be returned if the result is within the indicated
range or is equal to the upper or lower bound. A non-OK state will be
returned if the result is outside the specified range.
- If specified in the order 'max:min' a non-OK state will be returned if the
result is within the (inclusive) range.
- Upper or lower bounds may be omitted to skip checking the respective limit.
- Bare integers are interpreted as upper limits.
- When checking multiple OIDs, separate ranges by commas like '-w 1:10,1:,:20'
- Note that only one string and one regex may be checked at present
- All evaluation methods other than PR, STR, and SUBSTR expect that the value
returned from the SNMP query is an unsigned integer.

Send email to nagios-users@lists.sourceforge.net if you have questions
regarding use of this software. To submit patches or suggest improvements,
send email to nagiosplug-devel@lists.sourceforge.net

bla!zilla
20.10.05, 07:02
Solange sich der Speicherplatz innerhalb dieses Bereiches bewegt, wird keine Warnung bzw. kein kritischer Zustand ausgegeben.