I have a script that pings two hosts (one IPv4, one IPv6) and then returns the values. Occassionally my IPv6 connection will drop, but I'd like my IPv4 latency to still be graphed, and the IPv6 latency to become NaN until it recovers.
By default the script returned the following in that case:
To which cacti replies
Code: Select all
01/03/2007 02:25:02 AM - CMDPHP: Poller[0] Host[1] DS[20] WARNING: Result from CMD not valid. Partial Result: ping4:8.50 ping6
When I realized that wasn't working I added a check to change the value to NaN since that is what is displayed in the graphs, but that produces the same output in the cacti log. Read another post here that mentioned that the value should be "U" so I tried that, but that also produces the exact same output.
So the question is, what is the magic output I need to produce to get NaN put into the rrd?
I'm using cacti 0.8.6i.