check_readonlys: fix the output message

Do not dereference a null pointer (string) in the output message
when no readonly filesystems are detected and no filesystems have
been specified at command line.

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
NEWS - fix typo

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
Header files - Use the same preamble for all the files

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
check_temperature - remove the command line option '--verbose'

This plugin ignores the verbose flag, so remove it completely.

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
check_clock - validate the data passed to '--refclock'

Validate the command line input instead of returning crap when the
date format is unsupported.

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
check_clock - be more verbose in mode --verbose

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
check_paging - accept the short command line options for paging and swapping

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
Update documentation

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
check_users: new '--verbose' mode, for debugging

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
check_uptime - new option '-m|--clock-monotonic'

New command line option '-m|--clock-monotonic' for retrieving the time
of the linux monotonic clock instead of using the system statistics
returned by 'sysinfo()'.

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
Use the same syntax in the comments

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
README - document the new features + some fixes

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
check_uptime - conditionally build the support for clock monotonic

According to the man page for clock_gettime, only "sufficiently recent
versions of glibc and the Linux kernel support" the clock monotonic.
So let configure check for the support and make the build of the related
lines of code in the plugin conditional.

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
xstrtol lib - new library; remove the static copies of 'strtol_or_err()'

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
Update documentation

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
check_uptime - enable the long option '--clock-monotonic'

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
Version 14

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
check_cpu - use a better code indentation

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
cpustats lib - fix comment and code indentation

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
cpustats lib - make distinct cpu times, intr, and context switches

Remove interrupts and context switches from the cpu statistics.
This is required as a first step for getting the statistics of
each system cpu.
Create specific functions for cpu time statistics, number of
interrupts and number of context switches.

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>