Build precise queries to find exactly what you need
Press ESC to close
nice plugin, perfect for what I need
Made the following modifications to allow for using a windows login instead of a SQL server account
edited /etc/freetds.conf and added the following entries to the [global] section.
tds version = 7.0 use ntlmv2 = yes (required in my environment anyways)
You could also create a .freetds.conf file in the nagios home folder if you prefer.
changed the regex slightly to allow for backslashes in username
was // Validate the username if (isset($db_user)) { if (!preg_match(“/^[a-zA-Z0-9-]{2,32}$/”, $db_user)) { print “UNKNOWN: Invalid characters in the username. “; // exit(3);
changed to
// Validate the username if (isset($db_user)) { if (!preg_match(“/^[a-zA-Z0-9-]{2,32}$/”, $db_user)) { print “UNKNOWN: Invalid characters in the username. “; // exit(3);
supply –username as follows
check_mssql -H sqlserver –username DOMAINuser.id –password 12345
We’ve completely redesigned the world’s largest repository of Nagios plugins and monitoring tools. Join thousands of users sharing monitoring solutions for servers, applications, and everything in between.
Due to our redesign, all existing accounts require a password reset to access your account again.
Ready to explore 6,100+ projects and contribute to the community?
Reset Password Create Account
Happy Monitoring!