Polling took longer than 0.5 minutes!

I’m doing 5 minute default polling but i’ve got devices that are taking more than 30 seconds to poll that are creating events every 5 minutes saying “Polling took longer than 0.5 minutes! This will cause gaps in graphs.”

Where is the value found where its triggering this event? I’m not experiencing any issues with the gaps, just getting this event every 5 minutes. I am doing 30 second ping checking if that’s the problem?