-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Class MyDatabases is not a subclass of Monitoring::GLPlugin #31
Comments
Hi,
can you mail me your submodule to gerhard.lausser@consol.de
<mailto:gerhard.lausser@consol.de> ?
Gerhard
Von: bunghi [mailto:notifications@github.com]
Gesendet: Dienstag, 19. Dezember 2017 09:36
An: lausser/check_mssql_health <check_mssql_health@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Betreff: [lausser/check_mssql_health] Class MyDatabases is not a subclass of
Monitoring::GLPlugin (#31)
Hi,
Since I updated to version 2.6.4.12 the my-databases-dbspace mode is not
working anymore, this is the error:
UNKNOWN - Class MyDatabases is not a subclass of Monitoring::GLPlugin
Any idea how to fix it? I googled but didn't find a solution yet..
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#31> , or mute the
thread
<https://github.com/notifications/unsubscribe-auth/AAMJOIM9BVm01D6I8V0dWCupmGiarxB6ks5tB3VYgaJpZM4RGmvH>
.
|
Just sent you an email. |
Now i see what's wrong. You updated from a very, very old version. With 2.0 check_mssql_health was completely rewritten and the "api" for my-modules changed. If fact i added some compatibility-routines which should guarantee that also old my-modules can be used, but it does not work with your code. Instead of putitng time in this, i simply changed your module to the new format.
There is no more nagios method, only a init(). The fetch*-database-methods belong to $self, no longer to a params{handle}. Gerhard |
Hi Gerhard,
Thanks for your help and time. I still get the same error after replacing the module:
[root@~]# /usr/local/nagios/libexec/check_mssql_health --server host--username user --password='xxxxx' -t 180 --mode my-databases-dbspace --name='^(?!.*_BK_MQDE01.SPDB0._IB.*)' --regexp
UNKNOWN - Class MyDatabases is not a subclass of Monitoring::GLPlugin
[root@~]# /usr/local/nagios/libexec/check_mssql_health -V
check_mssql_health $Revision: 2.6.4.12 $ [http://labs.consol.de/nagios/check_mss_health]
[root@~]# ll /usr/local/nagios/libexec/conf/*pm
-rwxr-xr-x 1 root root 1840 Dec 19 14:58 /usr/local/nagios/libexec/conf/CheckMSSQLHealthExt1.pm
lrwxrwxrwx 1 root root 45 Dec 19 08:25 /usr/local/nagios/libexec/conf/GLPlugin.pm -> /usr/local/share/perl5/Monitoring/GLPlugin.pm
Any idea?
|
--with-mymodules-dyn-dir /usr/local/nagios/libexec/conf |
I already tried that:
[root@mqde01icingat01 check_mssql_health-2.6.4.12]# /usr/local/nagios/libexec/check_mssql_health -v --server host--username user --password='pass' -t 180 --mode my-databases-dbspace --name='^(?!.*_BK_MQDE01.SPDB0._IB.*)' --regexp --with-mymodules-dyn-dir /usr/local/nagios/libexec/conf
UNKNOWN - Class MyDatabases is not a subclass of Monitoring::GLPlugin
[root@~]# ll /usr/local/nagios/libexec/conf/
total 8
-rwxr-xr-x 1 root root 1840 Dec 19 14:58 CheckMSSQLHealthExt1.pm
-rwxr-xr-x 1 root root 1905 Dec 19 14:57 CheckMSSQLHealthExt1.pm.old
lrwxrwxrwx 1 root root 45 Dec 19 08:25 GLPlugin.pm -> /usr/local/share/perl5/Monitoring/GLPlugin.pm
|
mv CheckMSSQLHealthExt1.pm CheckMssqlHealthExt1.pm |
Hi again,
Now it works but the output is incomplete and I don’t have perfdata anymore:
[root@libexec]# /usr/local/nagios/libexec/check_mssql_health --server host--username user --password='pass' -t 180 --mode my-databases-dbspace --name='^(?!.*_BK_MQDE01.SPDB0._IB.*)' --regexp --with-mymodules-dyn-dir /usr/local/nagios/libexec
OK
[root@libexec]#
|
I'm reopening this issue, since ugpraded to script version 2.6.4.15 I have the same problem..
|
After some investigations i found this difference between previous version and this one:
Then I have just changed that line with this one:
Now it finds the module but there is an error:
And this is the content of the file CheckMSSQLHealthExt1.pm:
Any idea how to fix it? |
Hi,
Since I updated to version 2.6.4.12 the my-databases-dbspace mode is not working anymore, this is the error:
UNKNOWN - Class MyDatabases is not a subclass of Monitoring::GLPlugin
Monitoring::GLPlugin is already installed:
Any idea how to fix it? I googled but didn't find a solution yet..
The text was updated successfully, but these errors were encountered: