Checking if a certain service is running

Hi,

For the sake of checking certain internal web services in my network I’d like to check if certain services are listening on known ports, for instance a binary sensor that would check if 10.0.0.x has port 12345 open would do the trick

Any suggestions guys ?

Thanks in advance

Maybe you can use Nmap?