I'm new to the forums, but I've been using nagios-core and nagrestconf for a couple years already. We're considering migrating to Nagios XI and are evaluating the product.
Couple questions (I'm not sure if I should've opened a different thread for each).
First:
I'm not sure what I'm missing about hyperv (we're all vmware and barely ever used hyperv), but the check_xi_hyperv default command seems like it should've been named "check_ncpa" (I don't see anything particular about hyperv in there).
Code: Select all
check_xi_hyperv $USER1$/check_ncpa.py -H $HOSTADDRESS$ -t $_HOSTNCPA_TOKEN$ -P $_HOSTNCPA_PORT$ -M $ARG1$ -w $ARG2$ -c $ARG3$Is there a reason why the NCPA Configuration wizard (as per check_xi_ncpa command syntax) applies the NCPA token and ports directly inside $ARG1$ for each service? That doesn't seem practical on the long term. If you ever need to change a NCPA token, it makes more sense to change it in 1 place (free variables _NCPA_TOKEN on the host).
Third:
Because of #2, I'm trying to configure $_HOSTNCPA_TOKEN$ directly as free variable on the hosts (as per the check_xi_hyperv syntax).
The service check works when checking using the Service Status Detail page (so my command syntax and variables are properly configured).
However, when editing the service in CCM and trying the Run Check Command button, I get no result unless I replace the $_HOSTNCPA_TOKEN$ and $_HOSTNCPA_PORT$ directly in the command.
e.g.
$USER1$/check_ncpa.py -H $HOSTADDRESS$ -t supersecrettoken -P 5693 $ARG1$ $ARG2$ $ARG3$ $ARG4$
[*]works both under the Run Check Command button and the Service Status pages.
$USER1$/check_ncpa.py -H $HOSTADDRESS$ -t $_HOSTNCPA_TOKEN$ -P $_HOSTNCPA_PORT$ $ARG1$ $ARG2$ $ARG3$ $ARG4$
[*]works on the Service Status pages, but Run Check Command button seems to loop some code until timing out and returns no result.
Is it just me or is there an issue with the Run Check Command button when using host variables?