Home > Cacti > Cacti TCP Port Template not working (nan)

Cacti TCP Port Template not working (nan)

September 17th, 2009 peter Leave a comment Go to comments

I was struggling with the TCP Port Template for Cacti. I installed the plugin, but the state of the monitored port stays 0 (nan) in the graph.

image

It seems that this problem is in the /var/www/html/scripts/tcp.php file. Modify lines 54 & 56 as follows;

  print "0";
} else {
  print "1";

in

  return "0";
} else {
  return "1";

This should fix the problem.

Categories: Cacti Tags:
  1. No comments yet.
  1. No trackbacks yet.