Hi Thanks for the hint. I change the vars.nrpe_arguments to: vars.nrpe_arguments = [ "drive=$volume$", "warn=free<$nrpe_warn$", "crit=free<$nrpe_crit$" ]
That is at runtime parsed to: Running command '/usr/lib64/nagios/plugins/check_nrpe' '-H' '10.190.91.24' '-c' 'CheckDriveSize' '-a' 'drive=d:' 'warn=free<5%' 'crit=free<2%' My problem is that the ' around the drive=d: and so forth makes NSclient++ return that it cannot find that drive or folder and therefor fails. Is there a workaround for that or am i missing something important? Brian 2015-07-30 13:40 GMT+02:00 Alexander Wirt <[email protected]>: > On Thu, 30 Jul 2015, Brian Møller wrote: > > > 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$ > use an array instead of a string. > > Alex > > _______________________________________________ > icinga-users mailing list > [email protected] > https://lists.icinga.org/mailman/listinfo/icinga-users >
_______________________________________________ icinga-users mailing list [email protected] https://lists.icinga.org/mailman/listinfo/icinga-users
