spec: Only put pnp_path in place once

Grepping for something requires us to put the parts in the right order.

Signed-off-by: Robin Sonefors <robin.sonefors@op5.com>
api/python/livestatus.py: Don't mix tabs and spaces

It doesn't sit very well with python.

Signed-off-by: Robin Sonefors <robin.sonefors@op5.com>
api/python: Create __init__ file - now usable as a package

Signed-off-by: Robin Sonefors <robin.sonefors@op5.com>
spec: Install livestatus API

Signed-off-by: Robin Sonefors <robin.sonefors@op5.com>
Add support for should_be_scheduled columns

This should normally be set to 1 for active checks, but if the check is
passive, or nagios considers it unscheduleable, it will be 0. Especially
the latter case is actually quite interesting.

Signed-off-by: Robin Sonefors <robin.sonefors@op5.com>
specfile: Put python API in the proper package

Signed-off-by: Andreas Ericsson <ae@op5.se>
Makefile: Don't strip livestatus.o

When livestatus is stripped, I get overly suspicious against it when
examining coredumps, even when it's completely innocent.

Signed-off-by: Robin Sonefors <robin.sonefors@op5.com>
Query: Delete array with array delete

These two kept littering the output of valgrind when running nagios
through valgrind. Using C++'s array destructor for destructing its
arrays fixes these.

Discovered-by: Max Sikström <msikstrom@op5.com>
Signed-off-by: Robin Sonefors <robin.sonefors@op5.com>
Add some documentation about what this repo contains

Copy COPYING here from the check_mk repo, add an AUTHORS file based on
that in said check_mk repo, and create a README.

Signed-off-by: Robin Sonefors <robin.sonefors@op5.com>
solaris: Depend on nagios + config

It's better to commit it here, than to the obsolete repo. Just letting
you know!

Signed-off-by: Carl Helmertz <chelmertz@op5.com>
README: Clarify instructions so they work

We'll need to include the path to the nagios include directory.

Discovered-by: Johannes Reif <johannes.reif@jmg-reif.de>
Signed-off-by: Robin Sonefors <robin.sonefors@op5.com>
README: Even more instructions

Reported-by: Mark Frost <mark.frost1@pepsico.com>
Signed-off-by: Robin Sonefors <robin.sonefors@op5.com>
Livestatus: Fixed a missplaced , when displaying column headers with wrapped_json

Signed-off-by: Max Sikström <msikstrom@op5.com>
Merge branch 'skip_n_sort'
Livestatus: Fixed memory leak while requesting *by*group

Damn C++ doesn't warn about missing virtual keyword when naming methods the same

Signed-off-by: Max Sikström <msikstrom@op5.com>
Livestatus: Enable support for And/Or: 0

Makes it possible to do a match-all/match-none query without creative matches on columns

Signed-off-by: Max Sikström <msikstrom@op5.com>
Livestatus: Resolved shared memory issue with GET .*by.*group resulting in crash

Signed-off-by: Max Sikström <msikstrom@op5.com>
Livestatus: Fixed a leak from previous commit...

(guess I was to fast yesterday... embarrasing :P)

Signed-off-by: Max Sikström <msikstrom@op5.com>
Make 'id' field obtainable via livestatus

This makes it possible to see, search and filter by particular
object id's. It's not terribly useful for most people, but is a
real requirement when debugging check distribution for Merlin.

Reviewed-by: Max Sikström <msikstrom@op5.com>
Signed-off-by: Andreas Ericsson <ae@op5.se>
s/OffsetStringColumn/OffsetIntColumn/ for (some) id fields

It seems 2353178df2c20b645c2f829289dd2f31a5760d80 was somewhat
flawed in its execution. This patch make things work the way
they're supposed to by setting the types of the 'id' fields
properly.

Reported-by: Carl Helmertz <chelmertz@op5.com>
Signed-off-by: Andreas Ericsson <ae@op5.se>