Hi, Since MAP sensors order is the same as the order on the tree of the groups I would like to know how to order the sensors (interfaces) on the tree by preconigured tag or other parameters which will be or already configured on the sensors.
Example I would like that the interface with name "internet" will be the first but the ping second Currently the discovery make the ping sensor first and all the rest in order one by one.
As result the MAP is the same but I need it a little bit different.
Please let me know.
Article Comments
Hi Thank you it is really helpful.
Second question is how to make another sensor to be the second and so on... I can assume that there is TOP, MIDDLE and LOW that can be used on the string but what if I have more then 3 sensors ?I need to control this correctly.
Thanks
Jan, 2015 - Permalink
You will need to work your way from last to first.
In other words, if the goal order is
sensor type 1 sensor type 2 sensor type 3 sensor type 4
You will start by setting sensor type 4 to be the top one. Next set sensor type 3 to be the top one, and so on…
Jan, 2015 - Permalink
You can accomplish this using the API.
1. Get a list of all your PING sensors.
2. Enumerate the list and set all PING sensors to be the first sensor in the tree list.
3. Get a list of all your "internet" sensors.
4. Enumerate the list and set all "internet "sensors to be the first sensor in the tree list.
Every device will now have the "internet" sensor as the first and the PING sensor as the second sensor in its list.
Dec, 2014 - Permalink