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

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
argentra
Posts: 16
Joined: Wed Dec 19, 2012 10:41 pm
Location: Singapore
Contact:

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

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

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

Post by abrist »

Is the "test check command" failing?
Is the check itself, once configured in XI, failing?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
argentra
Posts: 16
Joined: Wed Dec 19, 2012 10:41 pm
Location: Singapore
Contact:

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

Post 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.
You do not have the required permissions to view the files attached to this post.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

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

Post by abrist »

Have you tried escaping the parenthesis with backslashes as the test check command does?

Code: Select all

ARG3: datastore1' '\(4\)
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked