This support forum board is for support questions relating to
Nagios XI , our flagship commercial network monitoring solution.
lmiltchev
Bugs find me
Posts: 13589 Joined: Mon May 23, 2011 12:15 pm
Post
by lmiltchev » Tue May 22, 2012 4:27 pm
I don't think you can use a windows authentication - see the documentation:
Code: Select all
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
-T TABLE, --table=TABLE
Specify MSSQL Table
Be sure to check out our
Knowledgebase for helpful articles and solutions!
scottwilkerson
DevOps Engineer
Posts: 19396 Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:
Post
by scottwilkerson » Tue May 22, 2012 4:30 pm
I believe lmiltchev is correct, this will only work with SQL server credentials, not Windows domain credentials, even if the Windows Domain user has access to the MSSQL Server
nscott
Posts: 1040 Joined: Wed May 11, 2011 8:54 am
Post
by nscott » Wed May 23, 2012 9:28 am
Yes, those two are absolutely correct. Also, I was mistaken with my previous post, I had misread yours and thought you wanted something that you did not. Please be sure make sure you have the latest MSSQL wizard, I just uploaded the latest version to our assets site, so be sure to use that one.
Nicholas Scott
Former Nagios employee
ecarrasq
Posts: 244 Joined: Tue Feb 22, 2011 5:58 pm
Post
by ecarrasq » Tue May 29, 2012 5:36 pm
I got the MS SQL Admin to create me a local account, as you specified, and I downloaded the latest MS SQL Database Wizard. Once I try these out, I'll let you know how it worked.
Thank you for all you do,
Eddie
scottwilkerson
DevOps Engineer
Posts: 19396 Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:
Post
by scottwilkerson » Wed May 30, 2012 9:06 am
Thanks for the update.
ecarrasq
Posts: 244 Joined: Tue Feb 22, 2011 5:58 pm
Post
by ecarrasq » Tue Jun 19, 2012 7:21 pm
I obtained local read only access to the database, I installed the new "MSSQL Server/Database/Query" wizards, ran them, but I get:
(Service Check Timed Out)
Please help.
Thanks,
Eddie
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396 Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:
Post
by scottwilkerson » Wed Jun 20, 2012 9:39 am
Can you temporarily disable iptables on the nagioxi server and then force one of the checks to see if that makes a difference
Then force the check on one of these services to see if it can connect
restore iptables
ecarrasq
Posts: 244 Joined: Tue Feb 22, 2011 5:58 pm
Post
by ecarrasq » Wed Jun 20, 2012 5:22 pm
I "service iptables stop" and tried it again, but no luck.
scottwilkerson
DevOps Engineer
Posts: 19396 Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:
Post
by scottwilkerson » Thu Jun 21, 2012 9:45 am
Can you send your current command for one of the checks.. (removing any sensitive data)
ecarrasq
Posts: 244 Joined: Tue Feb 22, 2011 5:58 pm
Post
by ecarrasq » Thu Jun 21, 2012 12:24 pm
Here is the full configuration file generated by NagiosXi MSSQL Database Wizard.
###############################################################################
#
# Service configuration file
#
# Created by: Nagios QL Version 3.0.3
# Date: 2012-06-21 10:17:56
# Version: Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios QL will overwite all manual settings during the next update
#
###############################################################################
define service {
host_name <MSSQL>
service_description MSSQL Active Transactions
use xiwizard_mssqldatabase_service
check_command check_xi_mssql_database!-H <mssql IP address> -U <local username> -P <user's password> -T 'stepwise_subset' -I db001a -p 1433 --activetrans --warning 10 --critical 20
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
notifications_enabled 0
_xiwizard mssqldatabase
register 1
}
define service {
host_name <MSSQL>
service_description MSSQL Connection Time
use xiwizard_mssqldatabase_service
check_command check_xi_mssql_database!-H <mssql IP address> -U <local username> -P <user's password> -T 'stepwise_subset' -I db001a -p 1433 --time2connect --warning 1 --critical 5
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
notifications_enabled 0
_xiwizard mssqldatabase
register 1
}
define service {
host_name <MSSQL>
service_description MSSQL Log Cache Hit Rate
use xiwizard_mssqldatabase_service
check_command check_xi_mssql_database!-H <mssql IP address> -U <local username> -P <user's password> -T 'stepwise_subset' -I db001a -p 1433 --logcachehit --warning 0:95 --critical 0:97
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
notifications_enabled 0
_xiwizard mssqldatabase
register 1
}
define service {
host_name <MSSQL>
service_description MSSQL Log File Usage
use xiwizard_mssqldatabase_service
check_command check_xi_mssql_database!-H <mssql IP address> -U <local username> -P <user's password> -T 'stepwise_subset' -I db001a -p 1433 --logfileusage --warning 0:80 --critical 0:90
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
notifications_enabled 0
_xiwizard mssqldatabase
register 1
}
define service {
host_name <MSSQL>
service_description MSSQL Log Flush Wait Time
use xiwizard_mssqldatabase_service
check_command check_xi_mssql_database!-H <mssql IP address> -U <local username> -P <user's password> -T 'stepwise_subset' -I db001a -p 1433 --logwait --warning 100 --critical 30
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
notifications_enabled 0
_xiwizard mssqldatabase
register 1
}
define service {
host_name <MSSQL>
service_description MSSQL Log Growths
use xiwizard_mssqldatabase_service
check_command check_xi_mssql_database!-H <mssql IP address> -U <local username> -P <user's password> -T 'stepwise_subset' -I db001a -p 1433 --loggrowths --warning 20 --critical 30
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
notifications_enabled 0
_xiwizard mssqldatabase
register 1
}
define service {
host_name <MSSQL>
service_description MSSQL Log Shrinks
use xiwizard_mssqldatabase_service
check_command check_xi_mssql_database!-H <mssql IP address> -U <local username> -P <user's password> -T 'stepwise_subset' -I db001a -p 1433 --logshrinks --warning 20 --critical 30
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
notifications_enabled 0
_xiwizard mssqldatabase
register 1
}
define service {
host_name <MSSQL>
service_description MSSQL Log Truncations
use xiwizard_mssqldatabase_service
check_command check_xi_mssql_database!-H <mssql IP address> -U <local username> -P <user's password> -T 'stepwise_subset' -I db001a -p 1433 --logtruncs --warning 100 --critical 30
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
notifications_enabled 0
_xiwizard mssqldatabase
register 1
}
define service {
host_name <MSSQL>
service_description MSSQL Transactions / Sec
use xiwizard_mssqldatabase_service
check_command check_xi_mssql_database!-H <mssql IP address> -U <local username> -P <user's password> -T 'stepwise_subset' -I db001a -p 1433 --transpsec --warning 10 --critical 20
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
notifications_enabled 0
_xiwizard mssqldatabase
register 1
}
###############################################################################
#
# Service configuration file
#
# END OF FILE
#
###############################################################################