tests: Services can be defined by name, host, hostgroup

Apparently, name was broken up until recently - see 933729a - but now it
seems to work again. Jay.

Signed-off-by: Robin Sonefors <robin.sonefors@op5.com>
objects: Improve errors for missing service args

"Error: Service description, host name, or check command is NULL", you
say? Well, your mom, sister, or aunt is NULL!

Signed-off-by: Robin Sonefors <robin.sonefors@op5.com>
tests: Fix make distcheck

I really need to learn to run this locally before pushing...

Signed-off-by: Robin Sonefors <robin.sonefors@op5.com>
Reload are now working more stable
Merge pull request #39 from jryberg/master

Reload are now working more stable
fixed perfdata commands

while reworking and using find_bang_command for perfdata commands, we missed
updating temp_command_name and so pnp in bulk mode did not work anymore.

Signed-off-by: Sven Nierlein <sven@nierlein.de>
retention data: small fix, prevent segfault

This could crash daemon while writing to retention.dat

Signed-off-by: Sven Velt <sven@velt.de>
Merge pull request #41 from wAmpIre/fix-retention-dat

retention data: small fix, prevent segfault
Fix url to http://naemon.org in README
Merge pull request #42 from palli/patch-1

Fix url to http://naemon.org in README
Avoid calling update_program_status() from logging.c

It's only ever done when rotating the logfile, and the call to do so
is only done from events.c, where we now call update_program_status()
after the logfile has been rotated.

Avoiding it in logging.c means one can link to logging.o without
having to pull in statusdata.o and, by extension, xsddefault.o.
This has no impact what so ever on functionality, but makes it a lot
more pleasant to build tests and to create tools that utilize the
naemon core code for other uses.

Signed-off-by: Andreas Ericsson <ae@op5.se>
Add oconfsplit, the object config splitter

oconfsplit is a tool used to help split configurations based on
hostgroups. You can, for example, use it to see which hosts are
actually included in one, or to generate configurations for
slave nodes that are supposed to take care of only a handful of
the monitored nodes.

Signed-off-by: Andreas Ericsson <ae@op5.se>
Build stuff: Install all header files, and not just the devel ones

Since eventbroker modules will need all headers to build properly,
we need to ship all headers when installing. This patch takes care
of that, and should make naemon-devel a viable substitute package
for nagios-devel when building things like Merlin.

Signed-off-by: Andreas Ericsson <ae@op5.se>
notifications: Bail if we can't find an OK parent

If all of a service's parents are in a non-OK state, we shouldn't send
out notifications.

Reported-by: Sven Velt <sven@velt.de>
Original-patch-by: Sven Velt <sven@velt.de>
Signed-off-by: Anton Lofgren <alofgren@op5.com>
Merge pull request #44 from catharsis/notifications-patch

notifications: Bail if we can't find an OK parent
avoid bogus log messages in worker

From http://tracker.nagios.org/view.php?id=534

When using service_perfdata_command or host_perfdata_command configuration
Nagios logs a warning message for each service/host check. These warning
messages look like:

[1383116400] Worker 1277: Unknown jobtype: 10
[1383116400] wproc: Unknown job type: 10
[1383116400] Worker 1279: Unknown jobtype: 10
[1383116400] wproc: Unknown job type: 10
[1383116400] Worker 1278: Unknown jobtype: 10
[1383116400] wproc: Unknown job type: 10

Reported-by: ovidiu_stanila
Original-patch-by: ovidiu_stanila
Signed-off-by: Sven Nierlein <Sven.Nierlein@consol.de>