I came here with the same doubt, becouse my servers do not answer to http requests at the address 127.0.0.1 due to the load ballance configuration. I had do restrict the arp response to the interface it came from so as to use IPVSADM to manage the load ballancing.
As bfdonny said, if you change the variable " $status_server = ‘localhost’;", inside the script ss_get_by_ssh.php, to the IP address of the host you want to check, it will work. But this is not a good solution, since I wanted to graph more than one host.
After messing around and reading a lot, I am not a programmer, I came to the simple solution. You just need to edit the “Data Input Methods” of the templates, so as you can insert the option “–use-ssh 0” on the calling command line.
This this the example of what I did for “Percona Get Apache Stats/Apache Bytes IM”
I changed it from:
<path_php_binary> -q <path_cacti>/scripts/ss_get_by_ssh.php --host <hostname> --type apache --items gh
<path_php_binary> -q <path_cacti>/scripts/ss_get_by_ssh.php --use-ssh 0 --host <hostname> --type apache --items gh
I did the same to the remaining Data Input Methods and now all my serves are being pulled and graphed.