Re: Do we need to install Pre-requisites for monitoring MS S
Posted: Thu May 16, 2013 10:11 am
Hi,
I think we need to be running the plugin check_mssql_server.py as we are interested in monitoring the instance/port but n0t the individual databases.
Now, the issue is when we run the above plugin using the command ./check_mssql_server.py we get the below output.
when we run the command ./check_mssql_server.py -h we get the below output
whats interesting is the last line in both the outputs 'Caught unexpected error. This could be caused by your sysperfinfo not containing the proper entries for this query, and you may delete this service check', should we be worried about this.
The other question is - from the info I got from my DB team we are dealing from port based DB's, so we have DB's configured on multiple ports on a single server. what should be out command like when we are trying to monitor the port.
I have used the below command and it failed with an error
PS: the pwd for DB access has a special character '!'
I think we need to be running the plugin check_mssql_server.py as we are interested in monitoring the instance/port but n0t the individual databases.
Now, the issue is when we run the above plugin using the command ./check_mssql_server.py we get the below output.
Code: Select all
usage: check_mssql_server.py -H hostname -U user -P password -T table --mode
check_mssql_server.py: error: Hostname is a required option.
Caught unexpected error. This could be caused by your sysperfinfo not containing the proper entries for this query, and you may delete this service check.
Code: Select all
usage: check_mssql_server.py -H hostname -U user -P password -T table --mode
options:
-h, --help show this help message and exit
Required Options:
-H HOSTNAME, --hostname=HOSTNAME
Specify MSSQL Server Address
-U USER, --user=USER
Specify MSSQL User Name
-P PASSWORD, --password=PASSWORD
Specify MSSQL Password
Optional Connection Information:
-I INSTANCE, --instance=INSTANCE
Specify instance
-p PORT, --port=PORT
Specify port.
Nagios Plugin Information:
-w WARNING, --warning=WARNING
Specify warning range.
-c CRITICAL, --critical=CRITICAL
Specify critical range.
Mode Options:
--pagelooks Page Lookups Per Second
--batchreq Batch Requests / Sec
--lockwaits Lockwaits / Sec
--pagereads Page Reads / Sec
--totalpages Total Pages (Cumulative)
--readahead Readahead Pages / Sec
--pagewrites Page Writes / Sec
--stolenpages Stolen Pages
--targetpages Target Pages
--fullscans Full Scans / Sec
--locktimeouts Lock Timeouts / Sec
--test Run tests of all queries against the database.
--freepages Free Pages (Cumulative)
--bufferhitratio Buffer Cache Hit Ratio
--averagewait Average Wait Time (ms)
--time2connect Time to connect to the database.
--checkpoints Checkpoint Pages / Sec
--lockrequests Lock Requests / Sec
--pagelife Page Life Expectancy
--databasepages Database Pages
--deadlocks Deadlocks / Sec
--cachehit Cache Hit Ratio
--pagesplits Page Splits / Sec
--lockwait Lock Wait Average Time (ms)
--lazywrites Lazy Writes / Sec
--sqlcompilations SQL Compilations / Sec
Caught unexpected error. This could be caused by your sysperfinfo not containing the proper entries for this query, and you may delete this service check.The other question is - from the info I got from my DB team we are dealing from port based DB's, so we have DB's configured on multiple ports on a single server. what should be out command like when we are trying to monitor the port.
I have used the below command and it failed with an error
Code: Select all
./check_mssql_server.py -H ipaddress -U 'userid' -P 'password' -p 1601 --time2connect -w 20 -c 10
SQL Server message 18452, severity 14, state 1, line 1:
Login failed for user 'i2mpadmin'. The user is not associated with a trusted SQL Server connection.
DB-Lib error message 18452, severity 14:
General SQL Server error: Check messages from the SQL Server
DB-Lib error message 20002, severity 9:
Adaptive Server connection failed