We are using the Nagios module together with prod_check. I'm coding a prod_check_menu_alter() hook so that prod_check will allow you to customise the default /nagios callback to be whatever you like (e.g. /nas-nagios or whatever).
The reason for doing this is that we like to hide as much of this info as possible (see also #672264: No default "Unique ID" or make it unique), whether it's a big security risk or not. We just feel it's not 'clean' for all to be able to access the nagios page so easily.
Maybe it would be nice to have this config option in the Nagios module?
Comments
Comment #1
malc0mn commentedCode example from prod_check:
I'm happy to make a patch if this functionality is wanted enough.
Comment #2
greg.harveyMoving to D7. Sounds a sensible feature request to me.
Comment #3
greg.harveyPatch attached.
Comment #4
greg.harveyNaughty patch! Bad mistake! Wrong default variable for callback. Whoops. Use this.
Comment #5
helmo commentedNot sure if it was accidental al, but this code is already in the 7.x-1.x branch. in commit e5cd4b7cf1847de7394cac59692cdfb0556e9f62
Changing the page path and callback both work as expected.
Comment #6
greg.harveyOh crap, I thought I'd branched to make the patch! Thank God it works OK.
/me slaps his wrists and tells himself to be more careful...
This *might* be rolled back in favour or proper theming - see #1337954: Nagios reporting page using full page template?