cgis: Use nagios.cfg-relative path when reading objects.cache

Patched-by: Ton Voon <tonvoon@gmail.com>
Signed-off-by: Andreas Ericsson <ae@op5.se>
tests: Config fixups

Since we now support nagios.cfg-relative paths rather than paths
relative to our current working directory, we must also show the
tests some love so they can find their configuration files.

Patched-by: Ton Voon <tonvoon@gmail.com>
Signed-off-by: Andreas Ericsson <ae@op5.se>
Move timing_point() to common/shared.c

It isn't really, but it lets us remove the dummy function from
cgiutils.c and, when debugging cgi's, it's nifty to hardcode the
value to something else so one can see what's going on with the
config parsing, and this lets us do just that.

Signed-off-by: Andreas Ericsson <ae@op5.se>
t/615cgierror: Stop running tests we know are broken

They clutter up the screen and distract from real errors (which
are plentiful at the moment).

Signed-off-by: Andreas Ericsson <ae@op5.se>
nagiostats: Read status.dat location as a nagios.cfg-relative path

Everything else does, so we should too.

Signed-off-by: Andreas Ericsson <ae@op5.se>
cgi tests: Fix paths for all nagios.cfg files

Now that they're pointing to the right data a whole lot more tests
just started passing. Yay.

Signed-off-by: Andreas Ericsson <ae@op5.se>
tests: Remove tests for failure prediction

It no longer exists in Nagios, and there's no command for it either,
so we might as well stop testing what isn't there.

Signed-off-by: Andreas Ericsson <ae@op5.se>
t/705nagiostats.t: Fix path regex for config file tests

Signed-off-by: Andreas Ericsson <ae@op5.se>
t/610cgi-status.t

Add tests to check for contactgroup expansion for cgi's.

This is currently broken. The fix is pending.

Patched-by: Ton Voon <tonvoon@gmail.com>
Signed-off-by: Andreas Ericsson <ae@op5.se>