yes I have tried and still have the same issue...Box293 wrote:When testing at the command line, are you doing it as the nagios user?
Did you try adding sudo to your command definition as I suggested? Did that help?Code: Select all
su nagios /usr/lib/nagios/plugins/check_mssql_health blah blah blah
Search found 10 matches
- Wed Jan 21, 2015 1:39 pm
- Forum: Open Source Nagios Projects
- Topic: check_mssql_health failed-jobs mode question
- Replies: 10
- Views: 7328
Re: check_mssql_health failed-jobs mode question
- Fri Jan 02, 2015 8:11 pm
- Forum: Open Source Nagios Projects
- Topic: check_mssql_health failed-jobs mode question
- Replies: 10
- Views: 7328
Re: check_mssql_health failed-jobs mode question
If you are using sudo at the command line, wouldn't your command definition also need this? command_line sudo $USER1$/check_mssql_health -usename $USER3$ -password $USER4$ -server $HOSTNAME$ -mode $ARG1 -commit I noticed your command definition has -commit at the end whereas your command line examp...
- Fri Jan 02, 2015 7:19 pm
- Forum: Open Source Nagios Projects
- Topic: check_mssql_health failed-jobs mode question
- Replies: 10
- Views: 7328
Re: check_mssql_health failed-jobs mode question
Can you provide the command definition and service definition please. Also, what are you executing at the command line when it works? When testing at the command line, are you doing it as the nagios user? su nagios /usr/lib/nagios/plugins/check_mssql_health blah blah blah I use sudo /usr/lib/nagios...
- Fri Jan 02, 2015 7:02 pm
- Forum: Open Source Nagios Projects
- Topic: check_mssql_health failed-jobs mode question
- Replies: 10
- Views: 7328
check_mssql_health failed-jobs mode question
Just wonder if anyone is using the failed-jobs option for the SQL monitoring? I try to use it but it gives me an error on the nagios core web interface **ePN /usr/lib/nagios/plugins/check_mssql_health: "Use of uninitialized value $params{"lastrunstatus"} in lc at (eval 1) line 1694,&q...
- Fri Jan 02, 2015 3:10 pm
- Forum: Open Source Nagios Projects
- Topic: locks-deadlocks issues with check_MSSQL_health plugin
- Replies: 8
- Views: 3235
Re: locks-deadlocks issues with check_MSSQL_health plugin
Yes please. I am good with this issue now.sreinhardt wrote:Fantastic, nice job! Do you want us to lock this one up and call it closed?
Thanks!
- Fri Jan 02, 2015 1:45 pm
- Forum: Open Source Nagios Projects
- Topic: locks-deadlocks issues with check_MSSQL_health plugin
- Replies: 8
- Views: 3235
Re: locks-deadlocks issues with check_MSSQL_health plugin
The problem is that you command you have defined will add additional items to the command, as you see command_line $USER1/check_mssql_health -username $USER3$ - password $USER4$ -server $HOSTNAME$ -mode $ARG1$ - name $ARG2$ -commit Will get translated to something like ./check_mssql_health -usernam...
- Fri Jan 02, 2015 11:33 am
- Forum: Open Source Nagios Projects
- Topic: locks-deadlocks issues with check_MSSQL_health plugin
- Replies: 8
- Views: 3235
Re: locks-deadlocks issues with check_MSSQL_health plugin
does it have to do with the space? sorry I accidentally add the space in the post. with the command in the cfg file actually there is no space.
And also, do you have any suggestions how to break this into multiple commands?
Thanks!
And also, do you have any suggestions how to break this into multiple commands?
Thanks!
- Wed Dec 31, 2014 1:07 pm
- Forum: Open Source Nagios Projects
- Topic: locks-deadlocks issues with check_MSSQL_health plugin
- Replies: 8
- Views: 3235
Re: locks-deadlocks issues with check_MSSQL_health plugin
it looks like when I run like this it will give me the result
./check_mssql_health -password PWD -username USERNAME - server 192.168.1.x -mode locks-deadlocks
but not on the web interface, I only get the message "CRITICAL - unable to aquire lock info"
./check_mssql_health -password PWD -username USERNAME - server 192.168.1.x -mode locks-deadlocks
but not on the web interface, I only get the message "CRITICAL - unable to aquire lock info"
- Tue Dec 30, 2014 4:10 pm
- Forum: Open Source Nagios Projects
- Topic: locks-deadlocks issues with check_MSSQL_health plugin
- Replies: 8
- Views: 3235
Re: locks-deadlocks issues with check_MSSQL_health plugin
Thanks for the quick reply. The Nagios3 core is running under Ubuntu 14.04 trying to monitor the MS SQL 2008 server. the command line that I use is as follow: define command{ command_name check_mssql_health command_line $USER1/check_mssql_health -username $USER3$ - password $USER4$ -server $HOSTNAME...
- Tue Dec 30, 2014 3:58 pm
- Forum: Open Source Nagios Projects
- Topic: locks-deadlocks issues with check_MSSQL_health plugin
- Replies: 8
- Views: 3235
locks-deadlocks issues with check_MSSQL_health plugin
Hi All,
I have some issues working with locks-deadlocks with the status information critical - unable to aquire lock info. Does anyone have set it up before?
It looks like all other SQL monitoring services are good except for all the locks. Any help will be appreciated.
Thanks!
I have some issues working with locks-deadlocks with the status information critical - unable to aquire lock info. Does anyone have set it up before?
It looks like all other SQL monitoring services are good except for all the locks. Any help will be appreciated.
Thanks!