Allow selectable ramdisk mountpoint location

It defaulted to /var/nagios/ramcache which doesn't flux well with some
platforms/distributions.
Merge pull request #1 from tomas-edwardsson/master

Allow selectable ramdisk mountpoint location
Merge pull request #2 from palli/fix-deprecated-attributes

Update deprecated attributes in sample config
added script to determine current version

if exactly on tag, it returns the tag itself, ex.: 4.0.2
otherwise it returns the incremented last tag plus the
current date, ex.: 4.0.3_20131112

It works great with the update version script
ex.: ./update-version $(./get_version)
which is used for automatic builds.
removed some autogenerated files

these files are autogenerated and should therefor not be included in the repository.
Permanently disable the version check

Having an opensource daemon call in to a company server and report
which version it's running is just plain dumb. It's also probably
illegal in a lot of countries, as it could be considered spying.

Since it didn't really work anyway (3.99 was considered an earlier
version than 3.5.0), we might as well remove it.

This also mean we can remove of the networking code in netutils.[ch],
which means a net codeline reduction of 305 lines. Neato :)

While at it, we remove the editor-backed-up config.h.in~ file.

Signed-off-by: Andreas Ericsson <ae@op5.se>
Remove the specialized ping worker

It wasn't particularly specialized after all, and actually ran all
kinds of different checks. With this patch, we get rid of it. While
we still don't spread correct information, at least we stop with the
disinformation now.

Signed-off-by: Andreas Ericsson <ae@op5.se>
Start the rename fest

This renames a lot of instances from Nagios -> Naemon.

Signed-off-by: Andreas Ericsson <ae@op5.se>
.gitignore *~ files

Backup files from scripts and editors aren't very interesting to
keep under version control, so let's not.

Signed-off-by: Andreas Ericsson <ae@op5.se>
workers: Don't spam-reap children

Previously we used to try reaping children immediately after killing
them. When that fails (as it normally does when we try to reap half
a microsecond after sending the SIGKILL), the idea was to reschedule
a reaping 0.25 seconds later. However, we kinda failed that, since we
set the tv.tv_usec variable to 250000 instead of adding that value to
it.

This patch corrects it, inserting the missing plus-sign once again.

Signed-off-by: Andreas Ericsson <ae@op5.se>
Remove base/{wp-phash.c,wpres-phash.h}

They're gperf-generated from base/wpres.gperf, so shouldn't be under
version control.

Signed-off-by: Andreas Ericsson <ae@op5.se>
include/naemon.h: Remove redundant decl of retention_file

Declaring it twice causes modern compilers to whine and old compilers
to bomb out.

Signed-off-by: Andreas Ericsson <ae@op5.se>
Remove top-of-file license comments

They fill no purpose as we keep the license elsewhere anyway.

Signed-off-by: Andreas Ericsson <ae@op5.se>
README.md: Add some notes on contributing

It's good to get basic coding standards and things like that online.
The ones this patch puts there are very basic, but it's at least a
starting point of some sort.

Signed-off-by: Andreas Ericsson <ae@op5.se>
Start fixing the autotools machinery

Previously we used to have a lot of generated files under version
control. This patch removes them and lets us use proper autotools
Makefile.am and stuff instead.

I'm not very good at autotools, so I'm sure this can be done in a
much better way, but at least it (mostly) builds now so it's good
enough to push and let other people see and work with it.

The code move is made so we can more easily integrate modules
directly into the codebase, as the directory layout now mimics how
files will be installed once "make install" is executed, meaning we
don't have to worry about different include paths for modules being
built against the git checkout vs installed files.

Signed-off-by: Andreas Ericsson <ae@op5.se>
more renaming and pkg cleanup
finally get rid of the old html files and cgis
make distclean should remove some extra files
add snprintf.h to config headers

let configure generate the missing snprintf.h
autotools junk: Stop using (and checking for) arpa/inet.h

We don't actually need it, and it appears to break the autotools
chain on SLES 11 SP3. Since we only use it in one of the library
test-files, we just remove it and stop checking for it.

Signed-off-by: Andreas Ericsson <ae@op5.se>