LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices

Reply
 
Search this Thread
Old 02-11-2011, 02:27 PM   #1
drsketch1
Member
 
Registered: Apr 2006
Distribution: CentOS 6.X, pclinuxos
Posts: 50

Rep: Reputation: 15
Question check_mssql_health nagios


anyone have the check_mssql_health working on a Centos55 nagios 3 server?

I have perl-Nagios-Plugin perl-DBD-Sybase freetds all installed still not working...

any help would be greatly appreciated.
 
Old 02-12-2011, 01:32 AM   #2
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291
Hello,

It would be a lot of help to us if you can indicate what error messages you get when executing the script. Try as nagios user to execute it manually and post messages here please. The more information you provide the better we can help you.

Kind regards,

Eric
 
Old 02-14-2011, 09:14 AM   #3
drsketch1
Member
 
Registered: Apr 2006
Distribution: CentOS 6.X, pclinuxos
Posts: 50

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by EricTRA View Post
Hello,

It would be a lot of help to us if you can indicate what error messages you get when executing the script. Try as nagios user to execute it manually and post messages here please. The more information you provide the better we can help you.

Kind regards,

Eric


When I run the plugin through /usr/bin/perl -w I get no error, however no matter what command I put in, all that returns is as if I ran the --help command.

When I run though /usr/local/nagios/bin/p1.pl -w I get

Code:
 
[root@nagios libexec]# ./check_mssql_health --help
./check_mssql_health: line 4: syntax error near unexpected token `('
./check_mssql_health: line 4: `my %ERRORS=( OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 );'

Last edited by drsketch1; 02-14-2011 at 09:18 AM.
 
Old 02-14-2011, 09:38 AM   #4
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291
Hi,

What's on line 4 of the script check_mssql_health? I don't have access to a Nagios nor have that particular plugin installed.

Kind regards,

Eric
 
Old 02-14-2011, 12:03 PM   #5
drsketch1
Member
 
Registered: Apr 2006
Distribution: CentOS 6.X, pclinuxos
Posts: 50

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by EricTRA View Post
Hi,

What's on line 4 of the script check_mssql_health? I don't have access to a Nagios nor have that particular plugin installed.

Kind regards,

Eric
Here are the first several lines.

Code:
# /usr/bin/perl -w
#! /usr/local/nagios/bin/p1.pl -w

my %ERRORS=( OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 );
my %ERRORCODES=( 0 => 'OK', 1 => 'WARNING', 2 => 'CRITICAL', 3 => 'UNKNOWN' );
package DBD::MSSQL::Server::Memorypool;

use strict;

our @ISA = qw(DBD::MSSQL::Server);
 
0 members found this post helpful.
  


Reply

Tags
centos55, nagios


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fail to install Nagios Pluggin nagios-plugins-1.4.15.tar.gz fred_xlf Linux - Software 1 11-27-2010 07:09 AM
cannot find Nagios web interface (Nagios 3.2.0) and O/S = Fedora 10 gutiojj Linux - Newbie 7 02-04-2010 09:55 AM
Nagios Daemon, PID not found but rc.nagios runs agentc0re Slackware 1 07-03-2007 03:47 PM
LXer: Nagios 2.5 and Oreon 1.3 (Nagios web front end) installation with screenshots LXer Syndicated Linux News 0 08-11-2006 06:33 PM
LXer: Nagios and Oreon (Nagios web front end) installation and Configuration LXer Syndicated Linux News 0 07-18-2006 09:33 PM


All times are GMT -5. The time now is 09:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration