The code to achieve this can be added to rrd_functions.php as posted by andy at:
http://forums.cacti.net/about587.html
But having a common interface where the host can be specified, comments inserted and the event date selected would be excellent. If the events were stored in an SQL table to allow searcing of criteria so that an event type could be located and all applicable devices affected by the event could be found.
My skills in this area are limited and wondered if anyone had looked at this aspect of cacti.
___________________________________________________________
This diff to rrd_functions.php allows you to specify, e.g. -24:00 in the VRULE Value to draw a line at 24 hours ago.
Replace in the VRULE section:
$value = date("U", mktime($value_array[0],$value_array[1],0));
with:
if($value_array[0] < 0) {
$value = date("U") - (-3600*$value_array[0]) - 60*$value_array[1];
} else {
$value = date("U", mktime($value_array[0],$value_array[1],0));
}
___________________________________________________________