Hi ,
I actually copied the odbc.ini from old to new nagios in same directory format and permissions [Now i have run a diff too ] they are identical.
I am uploading all the three plugins that i mentioned in examples above.
check_sql-jobhistory.pl
check_sql-query.pl
plugin_capture.pl
There are other perl scripts but i have uploaded only the ones that i have already pasted as an example.
Thanks for your patience and help guys much appreciated (please resolve this )
You do not have the required permissions to view the files attached to this post.
Thank you very much guys
its working now
It was such a stupid mistake i was using the wrong directory for odbc.ini and odbcint.ini in NagiosXI (have to use default Centos directory i-e /etc)
Re: Freetds and unixodbc
Postby TrevorH » 2014/07/25 20:35:53
Why are you using ODBC from /usr/local instead of the CentOS supplied ones from the unixODBC packages?
I don't use 2014 but have multiple machines talking to 2008 using the CentOS supplied packages. You need both /etc/odbcinst.ini and /etc/odbc.ini set up and you only mention one of those. All I have is an entry in odbcinst.ini that looks like this
CODE: SELECT ALL
[FreeTDS]
Description=FreeTDS MSSQL Driver
Driver=/usr/lib64/libtdsodbc.so.0
UsageCount=1
and one in odbc.in like this
CODE: SELECT ALL
[mssql]
Driver=FreeTDS
Description=MS SQL
Server=mssql.company.com
Port=1433
Database=Database_Name