Lorenz Kästle
dab009654c
fix default check state
2025-09-16 14:11:29 +02:00
Lorenz Kästle
ff7305bdfe
Merge branch 'master' into refactor/check_apt
2025-09-15 16:16:14 +02:00
Lorenz Kästle
15ecdb73ce
Fix types in check_apt
2025-09-15 16:00:35 +02:00
Lorenz Kästle
f07f96c3cf
check_apt: implement new output
2025-09-15 12:40:24 +02:00
Lorenz Kästle
67c1aae749
check_apt: improve some variable types to make the linter happy
2025-09-15 10:46:22 +02:00
Lorenz Kästle
cda3906b12
Refactor check_apt
2025-03-10 10:45:50 +01:00
Lorenz Kästle
4079ba3c47
check_apt: Purify run_upgrade function
2024-11-08 11:37:30 +01:00
Lorenz Kästle
540d609d84
check_apt: clang-format
2024-11-08 10:50:22 +01:00
RincewindsHat
75ff5b3b51
check_apt: localize variables
2024-11-08 10:49:07 +01:00
RincewindsHat
ebb4bf4bb4
check_apt: declare local functions static
2024-11-08 10:49:07 +01:00
RincewindsHat
b43e913b2c
clang-format: always add braces
2024-11-08 10:49:07 +01:00
RincewindsHat
d7671b8a4a
check_apt: mindless linter fixes
2024-11-08 10:49:07 +01:00
Lorenz Kästle
962053e6ab
check_apt: clang-format
2024-11-08 10:48:58 +01:00
Lorenz Kästle
2ceeada434
check_apt: update copyright
2024-10-31 14:44:59 +01:00
RincewindsHat
81f3b41651
Fix fallout of the previous changes
2023-10-19 12:20:27 +02:00
RincewindsHat
07f9c438f3
Fixes for -Wsign-compare
2023-10-19 12:10:55 +02:00
waja
72147140ed
Fixing spelling errors ( #1826 )
2023-01-17 15:42:54 +01:00
Lorenz
0899e41f50
Check apt usage ( #1793 )
...
* Remove trailing whitespaces
* Use real booleans
* Fix comment
* Put upgrade options in the root sections
Co-authored-by: waja <waja@users.noreply.github.com>
2023-01-08 17:23:53 +01:00
RincewindsHat
0551151a57
Remove trailing whitespaces
2022-12-20 10:19:10 +01:00
RincewindsHat
28553e8d1c
Fix unknown escape sequence error output
2022-12-20 10:19:10 +01:00
Marc Sánchez
9671399c00
Adding packages-warning option
...
This option specifies the minumum number of packages available for upgrade to return WARNING status. Default is 1 package.
2017-09-06 16:54:03 +02:00
Valentin Vidic
43ce70bcdb
check_apt: Add -l/--list option to print packages
2017-01-16 17:54:00 +01:00
Christian Schmidt
bf18dc42dd
Add --only-critical switch to check_apt
2016-12-31 12:00:46 +01:00
Sven Nierlein
edca257e20
use unknown exit code for help/version in plugins
...
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2015-10-04 19:24:30 +02:00
Sebastian Herbszt
b7fc2eb15a
check_apt: fix memset
...
Fix memset introduced by commit 9ce7369 ("plugins/check_apt.c - Print uninitialized ereg").
Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
2014-11-26 23:57:25 +01:00
Spenser Reinhardt
9ce73696b0
plugins/check_apt.c - Print uninitialized ereg
...
Coverity 66531 - ereg.buffer can be printed without being initialized if do_include and do_exclude are null and critical is an invalid regex. While minor this may leak memory and cause undefined behavior.
2014-06-28 18:16:59 +02:00
Sam Kottler
c887890e9f
Remove the suggestion to run check_apt with --verbose since it doesn't do anything
2014-04-04 16:55:59 +06:00
Thomas Guyot-Sionnest
11cf54ca78
Merge branch 'rename'
2014-01-21 07:59:07 -05:00
Spenser Reinhardt
66544851f7
plugins/*.c: Non-network timeout changes
...
Changes to non-network checks for clarity on timeout value. Adapted from pull request #1209 tracker from user awiddersheim. (Closes : #1209 )
Files: check_apt.c, check_disk.c, check_procs.c, negate.c
2014-01-21 11:35:07 +01:00
Spenser Reinhardt
212575b858
plugins/*.c: Alterations for timeout messages.
...
.c file changes for misleading timeout messages in help functions. Solution to pull request #1209 tracker by awiddersheim.
Files: plugins/check_apt.c, plugins/check_by_ssh.c, plugins/check_dbi.c, plugins/check_dig.c, plugins/check_disk.c, plugins/check_dns.c, plugins/check_game.c, plugins/check_http.c, plugins/check_ldap.c, plugins/check_ntp.c, plugins/check_ntp_peer.c, plugins/check_ntp_time.c, plugins/check_nwstat.c, plugins/check_overcr.c, plugins/check_pgsql.c, plugins/check_ping.c, plugins/check_procs.c, plugins/check_radius.c, plugins/check_real.c, plugins/check_smtp.c, plugins/check_snmp.c, plugins/check_ssh.c, plugins/check_tcp.c, plugins/check_time.c, plugins/check_ups.c, plugins/negate.c
2014-01-21 11:33:45 +01:00
Holger Weiss
c3e756a855
Capitalize "Monitoring" when it's the first word
2014-01-20 03:12:50 +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
Sven Nierlein
bb3bf05856
Merge pull request #54 from g0hl1n/check_apt_-_run_update_upgrade_return_fix
...
check_apt now correctly exits when apt-get return != 0
2013-08-15 02:26:08 -07:00
Jan Wagner
91b2514358
Fixed SF.net bug 1614553, Debian bug #708343 , Adding performace data
2013-06-25 15:20:39 +02:00
Richard Leitner
9be408511c
check_apt now correctly exits when apt-get return != 0
...
This commit fixes an issue with check_apt where check_apt doesn't exit
with the appropriate return code when apt-get returned a non-zero value.
2013-05-30 00:05:17 +02:00
Richard Leitner
6b208a6f31
Fixed SF.net bug 3539317, typo in --help of check_apt
2013-03-25 23:26:29 +01:00
Alex Bradley
13e85a0f4f
Tests for check_apt
...
Add a hidden "--input-file" option to check_apt (modelled on
check_procs) so that it can take files with sample apt output as input.
Add tests for my SECURITY_RE fix (debian3) and for the include, exclude
and critical options.
2012-10-03 15:54:24 -07:00
Alex Bradley
09c25be0d1
Fix SourceForge bug 1904965 - check_apt: SECURITY_RE is not correct
...
For the default security upgrade detection regular expression, match
"Debian-Security" in package description when it's anywhere after the
first parenthesis (not just the second space-delimited word). For
example:
... (4.0.1-5.4 Debian:6.0.6/stable, Debian-Security:6.0/stable ...
2012-10-03 15:25:51 -07:00
Alex Bradley
7918f5868c
Don't prepend "^Inst" or append a space to the "include", "exclude", or
...
"critical" regular expressions. Instead, check for lines beginning
with "Inst" using strncmp and apply the regular expressions only when
such lines are found.
Fixes Debian bug #522812 , along the lines suggested by the bug
submitter, Justin T Pryzby.
2012-10-02 23:22:54 -07:00
Thomas Guyot-Sionnest
eaf3cb27f4
Add newline after "Usage:" in --help
2010-04-22 08:57:14 -04:00
Thomas Guyot-Sionnest
884aee0667
Standardize the extra-opts notes
2010-04-21 23:29:18 -04:00
Thomas Guyot-Sionnest
25d1ee331d
Fix translations when extra-opts aren't enabled
...
Bug #2832884 reported problem with translations outputting pot file
headers. This is caused by "" matching the header of the translation
files.
This patch moves gettext macros inside utils macros and update some
french translations.
2010-04-14 08:33:06 -04: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
44f8455b2c
Added support for --extra-opts in all C plugins (disabled by default, see configure --help)
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1991 f882894a-f735-0410-b71e-b25c423dba1c
2008-05-07 10:02:42 +00:00
Thomas Guyot-Sionnest
ed62784a0b
--help output cleanup (plus removal of spaces on blank lines)
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1984 f882894a-f735-0410-b71e-b25c423dba1c
2008-04-27 14:35:26 +00:00
Thomas Guyot-Sionnest
fa4efcdf6d
Bump plugins/ to GPLv3 (check_apt to check_nwstat)
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1916 f882894a-f735-0410-b71e-b25c423dba1c
2008-01-30 10:53:47 +00:00
Holger Weiss
fd329a1e91
Don't try to print `optarg' (which will be a NULL pointer) if an unknown
...
command line option was used, as this leads to a segfault on some
systems. The unknown option will be printed by getopt(3) anyway. So,
simply call print_usage() and exit UNKNOWN via the new usage5() instead.
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1590 f882894a-f735-0410-b71e-b25c423dba1c
2007-01-28 21:46:41 +00:00
Benoit Mortier
bc0a22110d
more localization fixes
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1514 f882894a-f735-0410-b71e-b25c423dba1c
2006-10-22 22:03:31 +00:00
Benoit Mortier
c8664cec2b
localization updates
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1511 f882894a-f735-0410-b71e-b25c423dba1c
2006-10-20 06:24:10 +00:00