I have installed Nagios Core 4.0.8 on Centos 7, I'm having issues running the check_mysql_health plugin as the standard user account `nagios` in terminal and through the nagios web front end.
I have installed the required pre-requisites for the check_mssql_health plugin i.e DBD::Sysbase etc.
i.e. running the below command as root from the terminal works, I have a server entry in freetds.conf
Code: Select all
./check_mssql_health --server=SERVER --username=DOMAIN\\NagiosSQL --password=Password --mode=connected-users
Code: Select all
CRITICAL - cannot connect to SERVER. install_driver(Sybase) failed: Can't locate DBD/Sybase.pm in @INC (@INC contains: . /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at (eval 14) line 3.
Perhaps the DBD::Sybase perl module hasn't been fully installed,
or perhaps the capitalisation of 'Sybase' isn't right.
Available drivers: DBM, ExampleP, File, Gofer, Proxy, Sponge, mysql.
at ./check_mssql_health line 3192.

I believe it is an issue with permissions, however, I'm unsure where.
Any help will be appricated. Thanks