A valid MODE and/or SUBMODE must be specified - F/P

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: A valid MODE and/or SUBMODE must be specified - F/P

Post by lmiltchev »

This particular issue seems to happen often... as it is described under the Check WMI Plus FAQ page.

http://www.edcint.co.nz/checkwmiplus/?q ... eorsubmode

I wonder if you have some intermittent connectivity/network issues as your syntax looks fine and your check only fails sometimes...
Be sure to check out our Knowledgebase for helpful articles and solutions!
litsupport.box
Posts: 80
Joined: Wed Apr 02, 2014 7:24 am

Re: A valid MODE and/or SUBMODE must be specified - F/P

Post by litsupport.box »

lmiltchev wrote:This particular issue seems to happen often... as it is described under the Check WMI Plus FAQ page.

http://www.edcint.co.nz/checkwmiplus/?q ... eorsubmode

I wonder if you have some intermittent connectivity/network issues as your syntax looks fine and your check only fails sometimes...
Most servers we check are in the same server room so you can imagine this can't really be a network issue i guess?
Nagios XI Version : 2014R2.6
fqdn 2.6.32-431.17.1.el6.x86_64 x86_64
CentOS release 6.5 (Final)
Gnome is not installed
Proxy appears to be in use
VMware Image
Mod Gearman
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: A valid MODE and/or SUBMODE must be specified - F/P

Post by lmiltchev »

Can you run the following commands and show us the output?

Code: Select all

/usr/local/nagios/libexec/check_wmi_plus.pl --version
grep "version=" /usr/local/nagios/libexec/check_wmi_plus.ini | head -1
Be sure to check out our Knowledgebase for helpful articles and solutions!
litsupport.box
Posts: 80
Joined: Wed Apr 02, 2014 7:24 am

Re: A valid MODE and/or SUBMODE must be specified - F/P

Post by litsupport.box »

Nagios XI:

Code: Select all

[root@NAGIOSXI ~]# /usr/local/nagios/libexec/check_wmi_plus.pl --version
Version: 1.58

[root@NAGIOSXI ~]# grep "version=" /usr/local/nagios/libexec/check_wmi_plus.ini | head -1
version=1.3
Worker 1:

Code: Select all

[root@WORKER1 ~]# /usr/local/nagios/libexec/check_wmi_plus.pl --version
Version: 1.49

[root@NAGIOSXI ~]# grep "version=" /usr/local/nagios/libexec/check_wmi_plus.ini | head -1
version=1.3
Worker 2:

Code: Select all

[root@WORKER2 ~]# /usr/local/nagios/libexec/check_wmi_plus.pl --version
Version: 1.49

[root@WORKER2 ~]# grep "version=" /usr/local/nagios/libexec/check_wmi_plus.ini | head -1
no response, but when i check the file it says 1.3 too on worker 2

I notice the workers are using an older version of check_wmi_plus.
Nagios XI Version : 2014R2.6
fqdn 2.6.32-431.17.1.el6.x86_64 x86_64
CentOS release 6.5 (Final)
Gnome is not installed
Proxy appears to be in use
VMware Image
Mod Gearman
litsupport.box
Posts: 80
Joined: Wed Apr 02, 2014 7:24 am

Re: A valid MODE and/or SUBMODE must be specified - F/P

Post by litsupport.box »

I updated the check_wmi_plus on the workers in question, i haven't gotten any errors these past hours. i'll update soon to confirm this worked. They are all using version 1.58.
Nagios XI Version : 2014R2.6
fqdn 2.6.32-431.17.1.el6.x86_64 x86_64
CentOS release 6.5 (Final)
Gnome is not installed
Proxy appears to be in use
VMware Image
Mod Gearman
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: A valid MODE and/or SUBMODE must be specified - F/P

Post by lmiltchev »

Sounds good! Keep us posted. I will keep this topic open for a while.
Be sure to check out our Knowledgebase for helpful articles and solutions!
litsupport.box
Posts: 80
Joined: Wed Apr 02, 2014 7:24 am

Re: A valid MODE and/or SUBMODE must be specified - F/P

Post by litsupport.box »

After updating check_wmi_plus this error hasn't shown up. I think the different versions were the problem. Seems to be fixed, topic may close.
Nagios XI Version : 2014R2.6
fqdn 2.6.32-431.17.1.el6.x86_64 x86_64
CentOS release 6.5 (Final)
Gnome is not installed
Proxy appears to be in use
VMware Image
Mod Gearman
Locked