Hi all
I apologize if this question has been asked before, but i havent been able
to find it anywhere.
I'm in the process of migrating from Icinga 1.x to Icinga2 2.x and i have
run into a problem that i havent found a solution for.
I have made this checkcommand object, to be run against a Windows server
with NSClient++ 0.4.3 (it imports the standard NRPE-checkcommand in
Icinga2):
object CheckCommand "nrpe-volume" {
import "nrpe"
vars.nrpe_command = "CheckDriveSize"
vars.nrpe_arguments = "drive=$nrpe_volume$ warn=free<$nrpe_warn$
crit=free<$nrpe_crit$"
vars.nrpe_warn = "5%"
vars.nrpe_crit = "2%"
}
But when Icinga2 sends that to NRPE there is single quotes around the
vars.nrpe_arguments parameter link this:
'drive=d: warn=free<5% crit=free<2%'
and that makes NRPE fail and Icinga2 writes in the debug.log:
terminated with exit code 3
The complete string that Icinga2 makes is:
'/usr/lib64/nagios/plugins/check_nrpe' '-H' '10.190.91.24' '-c'
'CheckDriveSize' '-a' 'drive=d: warn=free<5% crit=free<2%'
Is there a way to make Icinga2 not wanting to put '-marks around some
parameters or is there a workaround?
I know that i could easily just make the NSclient++ config-changes to that
no parameters is passed to it, but that makes everything quite unflexible
in my view.
Hope to hear from some of you
Thanks in advance
Brian Møller
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users