Hello I believe you could do that with a for loop in the service creation
https://www.icinga.com/docs/icinga2/latest/doc/17-language-reference/#for-loops Regards On 05/09/18 14:10, IT wrote:
Hello, i want to write a service to query the disk-status of a NAS. The OIDs have the following scheme: 1.3.......2.2.0 1.3.......2.2.1 1.3.......2.2.2 1.3.......2.3.0 The last index addresses the individual disks{0-2}. The forelast index addresses the status{2}. In the example we have got 3 disks. How can i create a service, which adds for each disk a service and queries for the number of disks? e.g.: * A 3-disk-NAS will get automatically 3 disk-checks * A 6-disk-NAS will get automatically 6 disk-checks Yours sincerely Zafer _______________________________________________ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users
_______________________________________________ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users