Also - I have looked into the source code (but I'm not really a coder) - the extinfo.c module already has this feature for the Last Update entry.
It looks like this would be pretty easy to do - just update the last_update value to use last_check - there's even a comment that makes it look like someone has already thought of this, yet didn't implement it? The code segment would need to used copied up a few lines.
A quick update to the printf line for the last check would required as well (see below).
Is this something easy to do? Since I'm not really a coder, I'd compile and test this, but I don't really know how
A quick copy of the logic used for that:
t = 0;
duration_error = FALSE;
if(temp_hoststatus->last_check > current_time)
duration_error = TRUE;
else
/*t=current_time-temp_hoststatus->last_check;*/
t = current_time - temp_hoststatus->last_check;
get_time_breakdown((unsigned long)t, &days, &hours, &minutes, &seconds);
if(duration_error == TRUE)
snprintf(status_age, sizeof(status_age) - 1, "???");
else if(temp_hoststatus->last_check == (time_t)0)
snprintf(status_age, sizeof(status_age) - 1, "N/A");
else
snprintf(status_age, sizeof(status_age) - 1, "%2dd %2dh %2dm %2ds", days, hours, minutes, seconds);
status_age[sizeof(status_age) - 1] = '\x0';
get_time_string(&temp_hoststatus->last_check, date_time, (int)sizeof(date_time), SHORT_DATE_TIME);
printf("<TR><TD CLASS='dataVar'>Last Check Time:</td><td CLASS='dataVal'>%s (%s ago)</td></tr>\n", date_time, status_age);