Hello, Can you help me with Dependencies setup, please ?
I have 2 hosts in this example :
- Switch 10.10.10.1 with Ping Sensor
- Camera 10.10.10.2 with Ping and SNMP sensor
I want:
- When Camera ping is down, pause SNMP sensor (simply all remaining sensors) and fire notification for ping down status
- When switch is down, pause all Camera`s sensors
I tried:
- Device Camera 10.10.10.2 > Settings > Dependencies > select object and choose Switch > Ping
- After this step, I can see in dependency tree that it`s configured correctly
- Now - I want to set Camera PING as a master object for Parent (so all other sensors depends on it, as per documentation)
- BUT This overwrites my previous dependency for device (I lost topology)
The only workaround I found:
- Set Device Camera dependency on Switch > Ping
- Set camera Ping dependency to "Use Parent" (switch >Ping)
- Set manually dependencies for all remaining sensors to depend on Camera > Ping
I am just wondering if there is any other simple way to do this? I can`t imagine to do this manually for NAS with x HDDs, to setup manually dependency for each HDD sensor..
Thanks for any help here !
Article Comments
Hello,
thanks for your answer, but now - How can I achieve that when switch is up, and just a camera is down, HTTP/SNMP sensor is in paused state and Ping is down ?
I was able to manage this but had to manually set dependency for each non-ping sensor (depend on ping). When I set ping to "Master of parent", then I lost previous dependency on switch.
thanks !
Jan, 2021 - Permalink
Thank you for your feedback.
To make it simple, I will take the names of the devices in my previous screenshot as example.
Camera 1 and Camera 2 have both Ping sensor defined as Master, and therefore when they go in down state, the other sensors (set to "Use Parent" by default via inheritance) will automatically be paused. In each device settings (Camera 1 & 2), you should see their Ping sensor defined under Dependency.
Then, the group Cameras needs to be dependent on the Ping sensor of the switch to pause all the devices in that group when the sensor goes down.
Here is the corresponding dependencies tree:
Regards.
Jan, 2021 - Permalink
Hi again and thanks for very quick response !
I am really confused by this part "Ping sensor defined as master", can u bring some light here please ? In a documentation I found just a section "Dependencies > Master for parent"
What I did:
- Completely removed my previous group and created a new one
- Went to Group > Settings > Dependencies > Set to use object Switch>ping
- Add new device in new group, add Ping sensor and set dependency to "Master for parent"
- Added few extra sensors - no change in settings
This leads into very strange results:
- When Device itself is down (disconnected camera), All sensors including Ping will shown as "paused by dependency", I have no idea how to bring them up again. Camera is connected, switch is connected but Sensors are still paused by dependency.. Looks that they are in some loop ?!
We use PRTG v 19.1.48.2929 - Maybe this is the problem ?
Jan, 2021 - Permalink
Thank you for the information.
The version is indeed probably the reason why dependencies do not behave like the configuration I provided above. We have improved the dependencies many times in the new releases. Therefore, I can only invite you to update PRTG to be able to take advantage of the latest improvements/fixes.
You will find them in our release page here: https://www.paessler.com/prtg/history/prtg-19#19.4.54.1506
Regards.
Jan, 2021 - Permalink
Hello,
Thank you for your message.
In PRTG, you can configure an object to be dependent or an other one only, and therefore only pause all the sensors of the device based on its Ping sensor or the one of the switch, but not both.
However, you have the possibility to make all cameras dependent of the Ping sensor of the switch. To do so, simply create a group on which you put the devices (cameras), and then configure the group to depend on the switch. Then, when the switch goes down, all cameras are paused as illustrated on the following screenshot:
If you have questions, let us know.
Regards.
Jan, 2021 - Permalink