RincewindsHat
880e57271d
lib: clang-format
2024-10-31 01:30:50 +01:00
Lorenz Kästle
9462819774
lib: Update copyright
2024-10-17 18:01:49 +02:00
Lorenz Kästle
ee1ba32099
lib: clang-format
2024-10-17 17:57:50 +02:00
RincewindsHat
ddbabaa3b6
Replace all old school booleans in lib witch C99 ones
2023-10-15 18:21:31 +02:00
RincewindsHat
4b9d90f31c
Whitespace fixes in lib
2023-10-15 18:17:36 +02:00
Lorenz Kästle
128a24be22
Fix typo
2023-09-30 12:59:26 +02:00
Lorenz Kästle
51aa8b2d9d
Document new np_add_regex more and add error handling
2023-09-30 12:55:49 +02:00
Alexander A. Klimov
1f694195b4
Introduce np_find_regmatch()
2023-09-28 13:20:24 +02:00
Alexander A. Klimov
d31a696cad
Introduce np_add_regex()
2023-09-28 13:20:24 +02:00
Stefan Taferner
0dd11100aa
avoid mounting when searching for matching mount points
2023-05-10 19:28:05 +02:00
Kristian Schuster
a0d4277721
Merge remote-tracking branch 'origin/master' into feature_check_disk_add_ignore_missing_option
2023-02-19 23:49:18 +01:00
Kristian Schuster
9898a8ad7d
utils_disk: add name_prev pointer to struct parameter_list
...
Also added handling of name_prev in np_add_parameter and np_delete_parameter.
This make calling the np_delete_parameter function easier, because it requires
the previous element as second argument.
2023-02-19 13:44:04 +01:00
christian-2
dd249c5d4b
check_disk: Find accessible mount path if multiple are available ( #1820 )
...
* fixes #1819
* mount entries also have to be accessible according to get_fs_usage()
2022-12-13 23:48:36 +01:00
Vincent Danjean
270e7cba38
[check_disk] add support to display inodes usage in perfdata
...
This is not enabled by default
It can be enabled with the -P (--iperfdata) option
2018-12-08 22:44:42 +01:00
Monitoring Plugins Development Team
63734f52ab
Project rename initial commit.
...
This is an initial take at renaming the project to Monitoring Plugins.
It's not expected to be fully complete, and it is expected to break
things (The perl module for instance). More testing will be required
before this goes mainline.
2014-01-19 14:18:47 -05:00
Matthias Eble
77f2c84d2f
Fix check_disk free space calculation if blocksizes differ within a disk group (Bekar - #2973603 )
...
Various values (dused_pct, dfree_pct, inodes_free, inodes_total, ...) are now carried in
the parameter_list structure. Assignments have been moved to a subroutine preventing
code redundancies.
Group metrics are now calculated based on units rather than blocks. This fixes freespace calculation
when blocksizes differ within a group.
2010-11-15 23:59:35 +01:00
Thomas Guyot-Sionnest
6fbd14fea5
Removing CVS/SVN tags and replacing with git-based versioning
...
For contrib/, full tags have been imported from subversion
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2091 f882894a-f735-0410-b71e-b25c423dba1c
2008-11-23 05:38:47 +00:00
Thomas Guyot-Sionnest
caa8bd6423
Bulk EOL cleanup
...
$ git diff --ignore-space-change|diffstat
0 files changed
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2087 f882894a-f735-0410-b71e-b25c423dba1c
2008-11-19 06:45:18 +00:00
Thomas Guyot-Sionnest
5305852212
check_disk: rerpopulate the mount list after doing a stat() on paths specified with -p for better automount support.
...
NB: There's a memory leak here - properly freeing the mount list would invlove
much more work - there's many other places where leaks can happen so it
should be a project on its own.
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2085 f882894a-f735-0410-b71e-b25c423dba1c
2008-11-19 05:59:22 +00:00
Thomas Guyot-Sionnest
39c3f58cdc
details...
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1915 f882894a-f735-0410-b71e-b25c423dba1c
2008-01-30 09:46:21 +00:00
Thomas Guyot-Sionnest
fafb8ead9d
Bump /lib to GPLv3
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1913 f882894a-f735-0410-b71e-b25c423dba1c
2008-01-30 09:33:43 +00:00
Matthias Eble
bb32ecb79c
substituted bool/true/false with int/TRUE/FALSE (discussed on np-devel)
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1787 f882894a-f735-0410-b71e-b25c423dba1c
2007-09-22 17:48:33 +00:00
Matthias Eble
d23b17e656
Added -i/-I to ignore pathes/partitions based on regular expressions
...
Added check_disk -A selecting all filesystems
-E option must now be passed before -p or -r/-R
Passing -E after -p or -r results in UNKNOWN state
Fixed bug when mixing case sensitive and insensitive regexes
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1786 f882894a-f735-0410-b71e-b25c423dba1c
2007-09-22 17:40:35 +00:00
Matthias Eble
5e7c9821be
utils_disk: fixed handling if check_disk -p is a device (np_set_best_match())
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1668 f882894a-f735-0410-b71e-b25c423dba1c
2007-04-01 11:17:16 +00:00
Matthias Eble
0f71b7d07a
check_disk: added regex functionality -r and -R. see np-devel mail (2007-02-10)
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1658 f882894a-f735-0410-b71e-b25c423dba1c
2007-03-30 08:53:58 +00:00
Matthias Eble
0ff58b9063
check_disk: added grouping functionality. see np-devel mail (2007-02-10)
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1657 f882894a-f735-0410-b71e-b25c423dba1c
2007-03-30 08:52:28 +00:00
Matthias Eble
a1fea1eafd
check_disk -C is more flexible now. See np-devel post (2007-02-10)
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1656 f882894a-f735-0410-b71e-b25c423dba1c
2007-03-30 08:48:50 +00:00
Ton Voon
958162b45f
Fixed inode thresholds, regressed from previous release
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1554 f882894a-f735-0410-b71e-b25c423dba1c
2006-12-20 19:25:59 +00:00
Ton Voon
5912398b97
Major fixes to check_disk. Now should return same data as df
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1452 f882894a-f735-0410-b71e-b25c423dba1c
2006-07-13 23:58:00 +00:00