If anonymous page caching is turned on, the Nagios results page will be cached, thereby Drupal tells Nagios how it was when the page was first hit, not how it is now. This rather effectively defeats the purpose of monitoring in the first place :)

The fix is simple - the first line of nagios_status_page() should be drupal_page_is_cacheable(FALSE);

Comments

greg.harvey’s picture

Assigned: Unassigned » greg.harvey
Status: Active » Needs work

Fixed in Drupal 6 version (a bit trickier, needed hook_init() - but sorted) will do Drupal 7 version later. Note, NRPE + drush is way better than the HTTP status page, if you can use it.

greg.harvey’s picture

Status: Needs work » Closed (fixed)

Done in both branches. Thanks for the report and D7 fix! =)

greg.harvey’s picture

Done in both branches.