Hi all,
i’m playing around with the execute-function for integrating NAGIOS check-nrpe probes.
With the following function everything works great:
execute(“check_nrpe.exe”, “-n -t 30 -c nt_check_disk_c -H svr001”, “D:\Program_files\cygwin”)
But with this function i have the limitation of a hard-coded client (svr001), which i want to replace with the function “device_property”.
So i tried the next lines of code:
execute(“check_nrpe.exe”, "-n -t 30 -c nt_check_disk_c -H " device_property(“FirstAddress”), “D:\Program_files\cygwin”)
as the first try, and
execute(“check_nrpe.exe”, “-n -t 30 -c nt_check_disk_c -H device_property(“FirstAddress”)”, “D:\Program_files\cygwin”)
as the second try which all gave me a “parse failed”-error.
How can i get this function working? I really don’t want to define 100+ functions for every host i’d like to poll.
Thanks