check_mssql_database.py gives exceptions.TypeError
Posted: Thu Feb 14, 2019 11:22 am
Hello,
after we have upgraded Nagios to the latest version by following this guide,
https://assets.nagios.com/downloads/nag ... ctions.pdf
the upgrade was successfully installed by yum.
One of the checks that are running is failing:
I've seen there is already a post for this error, so I followed this guide and seen that I have all the components required
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
The only different thing is that pymssql has been installed by yum, I currently don't see pip...but in any case is there.
This check was working correctly before the upgrade, with "check_mssql_database.py" version 1.1.0, and now we have 2.1.1.
So I tried to use the older version but the error is there again.
Any idea to fix it?
Thanks
after we have upgraded Nagios to the latest version by following this guide,
https://assets.nagios.com/downloads/nag ... ctions.pdf
the upgrade was successfully installed by yum.
One of the checks that are running is failing:
Code: Select all
/usr/local/nagios/libexec/check_mssql_database.py -H [IP] -U report_user -P [PASSWORD] -T [TABLE]
<type 'exceptions.TypeError'>
Caught unexpected error. This could be caused by your sysperfinfo not containing the proper entries for this query, and you may delete this service check.
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Code: Select all
[root@chlugmw1 libexec]# yum info freetds
Loaded plugins: fastestmirror, rhnplugin
This system is receiving updates from RHN Classic or Red Hat Satellite.
Loading mirror speeds from cached hostfile
* base: mirror.spreitzer.ch
* extras: mirror.spreitzer.ch
* updates: mirror.spreitzer.ch
Installed Packages
Name : freetds
Arch : x86_64
Version : 0.95.81
Release : 1.el7
Size : 2.7 M
Repo : installed
From repo : nagiosxi-deps
Summary : Implementation of the TDS (Tabular DataStream) protocol
URL : http://www.freetds.org/
License : LGPLv2+ and GPLv2+
Description : FreeTDS is a project to document and implement the TDS (Tabular
: DataStream) protocol. TDS is used by Sybase(TM) and Microsoft(TM) for
: client to database server communications. FreeTDS includes call
: level interfaces for DB-Lib, CT-Lib, and ODBC.
Code: Select all
yum list installed | grep pymssql
python-pymssql.x86_64 2.1.1-1.el7 @nagiosxi-deps
This check was working correctly before the upgrade, with "check_mssql_database.py" version 1.1.0, and now we have 2.1.1.
So I tried to use the older version but the error is there again.
Any idea to fix it?
Thanks