box293_check_vmware

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jkinning
Posts: 747
Joined: Wed Oct 09, 2013 2:54 pm

box293_check_vmware

Post by jkinning »

If I run this as nagios from the nagios XI server it works:

Code: Select all

/usr/local/nagios/libexec/check_by_ssh -E 1 -l vi-admin -H 10.131.90.21 -C "~/box293_check_vmware.pl --server vcenter.app.wsfgrp.net --check vCenter_Name_Version" 
OK: VMware vCenter Server 5.5.0 build-2183111
When I try to create the command and test I get this:

Code: Select all

COMMAND: /usr/local/nagios/libexec/check_by_ssh -E 1 -l vi-admin -H 10.131.90.21 -C "~/box293_check_vmware.pl --server vcenter.app.wsfgrp.net --check vCenter_Name_Version  \"\" \"\" \"\" \"\" \"\" \"\""
OUTPUT: UNKNOWN - check_by_ssh: Remote command '~/box293_check_vmware.pl --server vcenter.app.wsfgrp.net --check vCenter_Name_Version  "" "" "" "" "" ""' returned status 255
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: box293_check_vmware

Post by tmcdonald »

The test check command works most of the time but it does have flaws, in particular related to escaping input. The true test is to save the check, apply config, and either force an immediate check in the web interface or wait for one to occur naturally.
Former Nagios employee
jkinning
Posts: 747
Joined: Wed Oct 09, 2013 2:54 pm

Re: box293_check_vmware

Post by jkinning »

That was the problem. I spent almost half the day fooling around and all I needed to do was just apply and commit everything.

Working. Thanks!
cmerchant
Posts: 546
Joined: Wed Sep 24, 2014 11:19 am

Re: box293_check_vmware

Post by cmerchant »

Great! We'll go ahead and close the thread. Thanks.
Locked