Nagios uses NRPE plugin to monitor remote processes. So you need to open only one port on the remote machine.
For Cacti, you need to open all the required ports so the shell scripts can retrieve data. Or we can use SSH tunneling.
Is there a NRPE equivalent for Cacti so remote monitor can be done securely?