Nsclient 4.3
Windows 2012 R2 Server with SQL 2012 Enterprise
Windows 2012 R2 Server with SQL 2014 Enterprise
Setting up this plugging check_sqldbsize.vbs
running the command from the Nagios server
root@tgcs017:/usr/local/nagios/etc/objects/windowsservers# /usr/lib/nagios/plugins/check_nrpe -t 50 -H TGCS016 -c check_sqldbsize -a tgcs016\wsussql SUSDB 8000 5000
C:\Program Files\NSClient++\scripts\check_sqldbsize.vbs(33, 1) Microsoft OLE DB Provider for SQL Server: [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.
Code: Select all
define command {
command_name check_sqldbsize
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -t 120 -c check_sqldbsize -a $ARG1$ $ARG2$ $ARG3$ $ARG4$
}
Nsclient.ini
Code: Select all
; Check SQL DB Size
check_sqldbsize=c:\\windows\\system32\\cscript.exe //NoLogo scripts\\check_sqldbsize.vbs $ARG1$ $ARG2$ $ARG3$ $ARG4$
Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.
C:\Program Files\NSClient++\scripts>cscript check_sqldbsize.vbs tgcs016\wsussql
susdb 5000 9000
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.
OK: SUSDB database size is 3757 MB.
Is this a security issue? Which account is the Nagios server using to pass the command over?
Or is it something else
Thank you