Page 1 of 1

Plugin work through CLI, but not XI User Interface (NULL)

Posted: Wed Oct 23, 2013 2:36 am
by argentra
Hi,

I have plugin called check_esx3.pl and when I am trying to monitor separate LUNs which have weird names like for example:
"datastore1 (4)" then the plugin displays (null) on the screen. It either add backslashes to the \(4\) or when I use ' ' to add a space it displays
correct through CLI check in XI, but on the screen STILL FAILS and shows (null).

It is very important to fix it since the customer has requirements of monitoring all esxi.

Thanks

Re: Plugin work through CLI, but not XI User Interface (NULL

Posted: Wed Oct 23, 2013 11:18 am
by abrist
Is the "test check command" failing?
Is the check itself, once configured in XI, failing?

Re: Plugin work through CLI, but not XI User Interface (NULL

Posted: Wed Oct 23, 2013 7:58 pm
by argentra
In test check it is working fine, but in Nagios XI UI it is showing (null).

This is the command used:
$USER1$/check_esx3.pl -H "$HOSTADDRESS$" -f "$ARG1$" -l "$ARG2$" -s $ARG3$
With following arguments:

ARG1: /usr/local/nagiosxi/etc/components/vmware/testesx1_auth.txt
ARG2: VMFS
ARG3: datastore1' '(4)

Result in Test Check Command:
COMMAND: /usr/local/nagios/libexec/check_esx3.pl -H "172.16.99.81" -f "/usr/local/nagiosxi/etc/components/vmware/testesx1_auth.txt" -l "VMFS" -s datastore1' '\(4\)
OUTPUT: ESX3 OK - datastore1 (4)=127109.00 MB (94.76%) | 'datastore1 (4)'=127109.00MB;;
Result from the screen is (null) as in attachment.
screen1.PNG
Please assist urgently.

Re: Plugin work through CLI, but not XI User Interface (NULL

Posted: Thu Oct 24, 2013 10:15 am
by abrist
Have you tried escaping the parenthesis with backslashes as the test check command does?

Code: Select all

ARG3: datastore1' '\(4\)