Lorenz Kästle
c6e09500c8
negate: style + linter fixes
2024-10-31 14:21:55 +01:00
Lorenz Kästle
ab5a037d66
negate: do not export local variables
2024-10-31 14:19:05 +01:00
Lorenz Kästle
733d725719
negate: update copyright
2024-10-31 14:18:24 +01:00
Lorenz Kästle
e191544a17
negate: clang-format
2024-10-31 14:17:46 +01:00
Eunice Remoquillo
2ab03d5f9c
Added indentions for readability
2024-02-12 19:33:38 +08:00
Eunice Remoquillo
d2df046481
Improve negate plugin helptext
...
This commit updates the negate plugin's helptext as it is currently ambiguous.
2024-02-12 10:59:18 +08:00
RincewindsHat
07f9c438f3
Fixes for -Wsign-compare
2023-10-19 12:10:55 +02:00
RincewindsHat
c2ceefd783
check_negate: Use C99 booleans
2023-10-18 20:42:25 +02:00
Michael Kraus
6e67b638f8
Output plugin's stderr to stderr
...
Output plugin's stderr to stderr and do not exit with WARNING in that case
2017-09-04 16:36:19 +02:00
Sebastian Herbszt
0608d3f16a
negate: remove unused variables
...
Remove unused variables.
Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
2014-12-15 19:42:33 +01:00
Sven Nierlein
2438931a3f
Merge pull request #1262 from waja/fix_aix
...
Include common.h before any system headers.
2014-06-28 22:24:52 +02:00
Spenser Reinhardt
aa16beb971
plugins/negate.c - Function should not return.
...
Coverity 66479 - validate_arguments has no need to return anything, as it dies on error, yet was set to return an int. Set to void to resolve warning.
2014-06-28 18:24:08 +02:00
Spenser Reinhardt
88472d1804
plugins/negate.c - Reorder if statement, aiob
...
Coverity 66480 - Potential array index out of bounds, since result was not verified to be positive prior to using as an index for state[]. Simply reording the if statement should resolve the issue. - SR
2014-06-28 18:23:09 +02:00
Eric J. Mislivec
6e246799b9
Include common.h before any system headers.
...
This should fix some problems building on AIX.
2014-06-28 18:09:28 +02:00
Thomas Guyot-Sionnest
8fc9e5ac4b
Move negate' translate_state() to utils_base.h mp_translate_state()
...
Also use strcasecmp imported from gnulib for simplicity
2014-01-29 03:20:23 -05: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
Holger Weiss
b48cb1f130
Fix GCC's -Wimplicit-function-declaration warnings
...
Fix the issues found by GCC when the -Wimplicit-function-declaration
flag is specified.
2013-09-10 22:29:46 +02:00
Anders Kaseorg
028d50d6f9
Die when asprintf fails
...
Fixes many instances of
warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result]
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2012-06-29 13:39:11 +02:00
Thomas Guyot-Sionnest
eaf3cb27f4
Add newline after "Usage:" in --help
2010-04-22 08:57:14 -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
b649333321
Update french translation (fix all fuzzy's)
2010-04-14 05:48:41 -04:00
Thomas Guyot-Sionnest
d36c976129
negate: make timeouts configurable
2009-03-20 02:28:02 -04:00
Thomas Guyot-Sionnest
4142e17840
negate: Fix not printing the real timeout in ALRM handler when timeout is left to default
2009-03-20 01:40:00 -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
82f8c52fbd
negate now has the ability to replace the status text as well (-s, --substitute)
...
Also changed:
- default timeout to 11 instead of 9 (since it's recommended to have a higher timeout, and many plugins default to 10 seconds)
- If there's no STDOUT lines returned, still returns the returned result if it's NON-ok instead of forcing it to UNKNOWN
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1989 f882894a-f735-0410-b71e-b25c423dba1c
2008-05-02 09:28:15 +00:00
Thomas Guyot-Sionnest
184ce9f6a3
Bump plugins/ to GPLv3 (non-plugind files)
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1918 f882894a-f735-0410-b71e-b25c423dba1c
2008-01-31 11:27:22 +00:00
Thomas Guyot-Sionnest
2af978187c
Plenty of french translations (and a few fixes BTW)
...
- No more fuzzy french translations
- Only (!) 355 strings to translate
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1859 f882894a-f735-0410-b71e-b25c423dba1c
2007-12-10 07:52:00 +00:00
Matthias Eble
6483a72b16
Removed some c99 style comments
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1793 f882894a-f735-0410-b71e-b25c423dba1c
2007-09-23 12:29:36 +00:00
Thomas Guyot-Sionnest
520f297fa9
Rewrite the "map changes to return codes" patch nearly from scratch.
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1785 f882894a-f735-0410-b71e-b25c423dba1c
2007-09-22 03:00:46 +00:00
Ton Voon
8a39526e1b
Stop double expansion of parameters for negate - works like
...
time command now
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1784 f882894a-f735-0410-b71e-b25c423dba1c
2007-09-21 23:01:28 +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
d8ecf6bfc2
another round of localization cleaning
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1509 f882894a-f735-0410-b71e-b25c423dba1c
2006-10-19 23:53:28 +00:00
Benoit Mortier
f9394308c9
updating help and usage and license
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1434 f882894a-f735-0410-b71e-b25c423dba1c
2006-06-18 19:36:48 +00:00
Benoit Mortier
e9ccc6b21a
various fixes for localization
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1061 f882894a-f735-0410-b71e-b25c423dba1c
2004-12-25 23:17:46 +00:00
Benoit Mortier
30a4266a3a
reverting my changes from !=TRUE to == ERROR, that's not good ;-( sorry
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@998 f882894a-f735-0410-b71e-b25c423dba1c
2004-12-03 23:55:29 +00:00
Benoit Mortier
edf60f6dce
remove UT_HLP_VRS from print_usage
...
this was not a good idea ;-)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@994 f882894a-f735-0410-b71e-b25c423dba1c
2004-12-03 20:28:53 +00:00
Benoit Mortier
694194dd8a
some minor fixes
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@992 f882894a-f735-0410-b71e-b25c423dba1c
2004-12-03 17:48:53 +00:00
Benoit Mortier
016d33230e
bump copyright year
...
initialize result to STATE_UNKNOW in place of STATE_OK
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@982 f882894a-f735-0410-b71e-b25c423dba1c
2004-12-03 00:55:28 +00:00
Benoit Mortier
234481163f
More internationalization work
...
new usage4 function to permit localisation of think like check_ssh: xxxxx
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@979 f882894a-f735-0410-b71e-b25c423dba1c
2004-12-02 16:51:25 +00:00
Benoit Mortier
df1bd0c89f
return of process_arguments() is TRUE not OK !
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@978 f882894a-f735-0410-b71e-b25c423dba1c
2004-12-02 14:54:36 +00:00
Benoit Mortier
230d67e18a
changed Error: by CRITICAL -
...
more localization fixes
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@971 f882894a-f735-0410-b71e-b25c423dba1c
2004-12-02 01:11:01 +00:00
Benoit Mortier
d19edd4043
standardize localization string
...
standardize unknow arguments
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@969 f882894a-f735-0410-b71e-b25c423dba1c
2004-12-01 23:54:51 +00:00
Ton Voon
0c1c9f51e2
Making messages more consistent
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@930 f882894a-f735-0410-b71e-b25c423dba1c
2004-11-24 00:46:40 +00:00
Karl DeBisschop
c5f0ee256b
spell fix "received"
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@818 f882894a-f735-0410-b71e-b25c423dba1c
2004-02-20 05:25:13 +00:00
Karl DeBisschop
22bd672d19
- bindtextdomain for gettext, a few other smale cleanups here and there
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@690 f882894a-f735-0410-b71e-b25c423dba1c
2003-08-22 06:22:38 +00:00
Karl DeBisschop
f4f92be60c
the last round of pedantic compiler warnings
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@676 f882894a-f735-0410-b71e-b25c423dba1c
2003-08-10 06:53:22 +00:00