Error Check_odbc

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
becerra.felipe12
Posts: 4
Joined: Thu Jan 02, 2020 10:12 am

Error Check_odbc

Post by becerra.felipe12 »

Dear Good Day,
I have a check_odbc monitoring which is alerted and I have checked the permissions of the SPQJPRMONI account based on BD_Operaciones and everything is fine.

The error is: CRITICAL: Could not connect to 10.220.6.28:1433 as SPQJPRMONI.
It is a SQL Server 2003.

Please help to solve the problem.
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: Error Check_odbc

Post by mbellerue »

Hi @becerra.felipe12, welcome to the forums!

Can you post the full check command that you run against this SQL Server?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
becerra.felipe12
Posts: 4
Joined: Thu Jan 02, 2020 10:12 am

Re: Error Check_odbc

Post by becerra.felipe12 »

Hi,



check_command check_odbc!SPQJPRMONI!xxxxxxx!BD_Operaciones!1000!1000



greetings and thanks!
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: Error Check_odbc

Post by mbellerue »

Okay, that looks good. Can you show me the command definition for check_odbc?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
becerra.felipe12
Posts: 4
Joined: Thu Jan 02, 2020 10:12 am

Re: Error Check_odbc

Post by becerra.felipe12 »

sorry
What do you mean by definition?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Error Check_odbc

Post by lmiltchev »

This means how your command is configured (defined). The configurations of commands are usually found in the "/usr/local/nagios/etc/objects/commands.cfg" file in Nagios Core. An "example" configuration of the 'check_ping' command would look something like this:

Code: Select all

# 'check_ping' command definition
define command{
        command_name    check_ping
        command_line    $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5
        }
You should have one for the 'check_odbc' command as well. @mbellerue wanted to see that.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked