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.
litsupport.box
Posts: 80
Joined: Wed Apr 02, 2014 7:24 am

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

Post by litsupport.box »

Hello,

I'm getting this warning:

Image

When i force an immediate recheck it gives me the following OK message:

Image

What can i do to stop getting these false positives? Or isnt it a false positive?

This is the command im using to Check OS SP:

Code: Select all

$USER1$/check_wmi_plus.pl -H $HOSTADDRESS$ -u $ARG1$ -p $ARG2$ -m $ARG3$ $ARG4$ 
(ARG3= info -s os)

Im curious to what you guys have to say. :mrgreen:

Thank you in advance.

Kind regards,


Farid
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
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

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

Post by jolson »

Hello again litsupport.box. When are you receiving this warning? Is it only when you start a new service or does it happen periodically?

Your arguments look proper to me.
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
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 »

jolson wrote:Hello again litsupport.box. When are you receiving this warning? Is it only when you start a new service or does it happen periodically?

Your arguments look proper to me.
This message reappears frequently, and as i explained the 2nd time it tries to check it it always passes.
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
brdr
Posts: 312
Joined: Mon Jun 02, 2014 12:49 pm

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

Post by brdr »

Hi, this happens in our environment too. Not often, but i did notice that it general happens when using the checks in the *.ini files from /usr/local/nagios/libexec/check_wmi_plus.d. directory, for example, the 'checkexchange.ini'. I don't remember seeing this happen using 'builtins', i.e. checkcpu. Hope this helps. I will try to track it more closely.
brdr
Posts: 312
Joined: Mon Jun 02, 2014 12:49 pm

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

Post by brdr »

Here is snippet from nagios.log (below)... The service checks go to UNKNOWN, but then go OK.

Command and args....
$USER1$/check_wmi_plus.pl -H $HOSTADDRESS$ -u $USER23$ -p $USER24$ -m $ARG1$ -s $ARG2$ $ARG3$ -extrawmicarg --option="client ntlmv2 auth"=Yes
Arguments are (for the first line):
ARG1 = checkexchange
ARG2 = DBInstances
ARG3 = -a 'MBX70' --nodatastring="Critical: Exchange Database is unmounted"

[Tue Mar 24 10:44:20 2015] SERVICE ALERT: 300-12;Database MBX70-DB;UNKNOWN;SOFT;1;A valid MODE and/or SUBMODE must be specified
[Tue Mar 24 10:44:30 2015] SERVICE ALERT: 300-10;Database MBX50-DB;UNKNOWN;SOFT;1;A valid MODE and/or SUBMODE must be specified
[Tue Mar 24 10:45:30 2015] SERVICE ALERT: 300-10;Mount Point : MBX01-DB;UNKNOWN;SOFT;1;A valid MODE and/or SUBMODE must be specified
[Tue Mar 24 10:46:00 2015] SERVICE ALERT: 300-10;Database MBX03-DB;UNKNOWN;SOFT;1;A valid MODE and/or SUBMODE must be specified
[Tue Mar 24 10:46:30 2015] SERVICE ALERT: 300-10;Database PF01-DB;UNKNOWN;SOFT;1;A valid MODE and/or SUBMODE must be specified
[Tue Mar 24 10:47:00 2015] SERVICE ALERT: 300-13;Database MBX83-DB;UNKNOWN;SOFT;1;A valid MODE and/or SUBMODE must be specified
[Tue Mar 24 10:47:00 2015] SERVICE ALERT: 300-12;Mount Point : MBX78-DB;UNKNOWN;SOFT;1;A valid MODE and/or SUBMODE must be specified
[Tue Mar 24 10:47:39 2015] SERVICE ALERT: 300-13;Mount Point : MBX84-LOG;UNKNOWN;SOFT;1;A valid MODE and/or SUBMODE must be specified
[Tue Mar 24 10:47:50 2015] SERVICE ALERT: 300-12;Mount Point : MBX76-DB;UNKNOWN;SOFT;1;A valid MODE and/or SUBMODE must be specified
[Tue Mar 24 10:51:00 2015] SERVICE ALERT: 300-11;Mount Point : MBX65-LOG;UNKNOWN;SOFT;1;A valid MODE and/or SUBMODE must be specified
[
brdr
Posts: 312
Joined: Mon Jun 02, 2014 12:49 pm

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

Post by brdr »

I'm happy to PM over the nagios.debug.log if that helps. Settings are at:

debug_level=-1
debug_verbosity=2
max_debug_file_size=100000000
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 »

@litsupport.box

Have you tried increasing the timeout? It believe the default timeout is 15 seconds. You can try passing something higher than that to your command, for example:

Code: Select all

/usr/local/nagios/libexec/check_wmi_plus.pl -H <ip address> -u <username> -p <password> -m info -s os -t 30
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:@litsupport.box

Have you tried increasing the timeout? It believe the default timeout is 15 seconds. You can try passing something higher than that to your command, for example:

Code: Select all

/usr/local/nagios/libexec/check_wmi_plus.pl -H <ip address> -u <username> -p <password> -m info -s os -t 30
No i havent tried that, ill do that right away. I'll update this post when i have more info.
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 »

No i havent tried that, ill do that right away. I'll update this post when i have more info.
Sounds good. Let us know if the issue is resolved.
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 »

I'm still getting this problem, tried -t 30,60,600 :p
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