check_sybase
Danilo Perdomo
danilo.perdomo at intercable.com.ve
Tue Jul 31 22:23:08 CEST 2007
Hi all! I'm triying to use this plugin for checking a remote Sybase
database. The thing is that in the usage of the script
i dont see any option that indicates the IP address of the server. Here
is the -h for the plugin:
Mandatory arguments to long options are mandatory for short options too.
-U, --user Username to connect to database.
-P, --pass Password to connect to database.
-S, --dbsvr Database server (as in the interfaces file).
-D, --dbname Database name to check.
--config=FILE Config file (see SECURITY below)
--checktype=TYPE Type of check to run (see TYPEs below)
--charset=CHARSET Character set of server (default iso_1).
--explain Explains how we calculated the free space.
--fallback Fallback to a CONNECT check if a non-CONNECT check
takes too long.
--no-mixed-devices-warning Suppress the warning about mixed data/log
devices.
-w, --warning Warning threshold (default 25).
-c, --critical Critical threshold (default 10).
-t, --timeout Timeout value, in seconds (default 30).
-h, --help This help message
-V, --version Version information (1.0)
Examples:
check_sybase -U sa -P secret -S bigbox -D orders
check_sybase --config=/secure/nagios-sybase.cfg --checktype=CONNECT
TYPEs
There are three types of checks you can run:
--checktype=CONNECT
Checks just the connection to the database.
--checktype=FREESPACE
(Default) Checks both the connection to the database and the free space.
With this check type, both warning and critical thresholds are in
percent.
Warning defaults to 25% free space, critical defaults to 10% free space.
--checktype=NUMLOGINS
Checks the number of logins connected to the database server.
With this check type, the warning and critical thresholds are integers.
SECURITY - Using a config file
Since a "ps ax" will reveal your database username and password, you can
instead specify them in a config file. Pass the config file with --config.
The format of the file is:
USER value
PASS value
You can also specify a DBSVR and DBNAME in the file. Comments (#) and blank
lines are ignored. Use whitespace to separate argument and value. The file
should be readable by as few people as possible.
--
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list