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
92fdab87b2
Partially revert "check_snmp: Close potential for using uninitialized memory"
...
This reverts the changes to plugins/common.h applied by commit
a20611d435 .
- Clang defines __GNUC__.
- The new name of the __attribute__ parameter was misleading.
2013-08-27 18:32:38 +02:00
Holger Weiss
e9ede0f8e3
Merge branch 'master' of https://github.com/ozamosi/nagios-plugins
...
* 'master' of https://github.com/ozamosi/nagios-plugins :
check_snmp: Close potential for using uninitialized memory
check_snmp: Dynamically grow all data structures
Conflicts:
plugins/check_snmp.c
2013-08-27 14:37:13 +02:00
Sven Nierlein
4083622f86
added missing header to fix build on freebsd
2013-08-20 17:02:02 +02:00
Holger Weiss
5f79e3e9f6
Clean up check for _SC_NPROCESSORS_ONLN
...
Closes #62 .
2013-08-19 22:47:36 +02:00
Booker C. Bense
f12edfd073
Bug fix for ncpus if hyperthreading turned off in linux
2013-08-19 11:14:05 -07:00
Robin Sonefors
a20611d435
check_snmp: Close potential for using uninitialized memory
...
This was reported by clang, and in order for it to understand attributes
properly, I had to modify the macro that checks for non-gcc compilers.
Signed-off-by: Robin Sonefors <robin.sonefors@op5.com>
2013-01-29 15:30:04 +01:00
Holger Weiss
b74543a612
Allow for configuring OpenSSL
...
Let OpenSSL load its configuration file. See the OPENSSL_config(3) man
page for details.
(Suggested by Max Kosmach in Debian bug report #689960 , forwarded by Jan
Wagner.)
2012-10-09 09:44:48 +02:00
Eric Stanley
4011599466
Enable compiling on AIX 6.1
2012-02-10 10:27:24 -06: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
Ton Voon
dc2ec71d22
Fixed link -m64 problems on pst3 for solaris. Fixed _FILE_OFFSET_BITS
...
redefinition warnings. Fixed helper ar error in ./configure
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1938 f882894a-f735-0410-b71e-b25c423dba1c
2008-03-11 00:10:23 +00:00
Thomas Guyot-Sionnest
ae3af0419b
This floorf workaround is Nnot needed anymore since floorf is part of Gnulib
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1928 f882894a-f735-0410-b71e-b25c423dba1c
2008-02-13 04:16:56 +00:00
Thomas Guyot-Sionnest
bd7029a99b
Sync to latest Gnulib
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1925 f882894a-f735-0410-b71e-b25c423dba1c
2008-02-12 11:07:18 +00:00
Thomas Guyot-Sionnest
2ce5fce834
Bump plugins/ to GPLv3 (header files)
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1919 f882894a-f735-0410-b71e-b25c423dba1c
2008-01-31 11:45:28 +00:00
Ton Voon
d47be7a9e4
check_load can optionally divide by number of cpus
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1700 f882894a-f735-0410-b71e-b25c423dba1c
2007-04-25 22:10:13 +00:00
Holger Weiss
b6a9796625
Increase MAX_INPUT_BUFFER from 1k to 8k in order to increase I/O
...
performance (Stefan Meier)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1646 f882894a-f735-0410-b71e-b25c423dba1c
2007-03-22 17:54:16 +00:00
Holger Weiss
4db299b5e7
Include GNULib's "dirname.h" in order to pull in the base_name()
...
prototype, fixes compilation of check_procs using SGI's MIPSpro C.
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1587 f882894a-f735-0410-b71e-b25c423dba1c
2007-01-27 17:42:53 +00:00
Ton Voon
fe856aa957
Sync with gnulib - lots of extraneous code removed in preference to GNU code
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1580 f882894a-f735-0410-b71e-b25c423dba1c
2007-01-24 22:47:25 +00:00
Ton Voon
df3662bf3a
Fix coredump on 64bit Solaris. Also adds more error conditions and moves
...
swap specific includes out of common.h (Duncan Ferguson - 1588031)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1546 f882894a-f735-0410-b71e-b25c423dba1c
2006-12-07 16:07:42 +00:00
Ton Voon
62f916d181
Fix two Solaris compile problems
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1462 f882894a-f735-0410-b71e-b25c423dba1c
2006-07-29 01:43:34 +00:00
Ton Voon
8b6d9e5eab
Fix to add uintmax_t, for check_disk.c compile
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1456 f882894a-f735-0410-b71e-b25c423dba1c
2006-07-19 22:56:48 +00:00
Ton Voon
7a8b72672f
Fix for CHAR_MAX on Solaris 9
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1455 f882894a-f735-0410-b71e-b25c423dba1c
2006-07-19 22:37:36 +00:00
Ton Voon
06f439b099
Gettext fixes to sync with coreutils
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1406 f882894a-f735-0410-b71e-b25c423dba1c
2006-05-25 16:58:10 +00:00
Ton Voon
a8cd7705e7
Synchronise with coreutils 2.95. Gettext now synced with coreutils,
...
so no longer development platform requirement
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1394 f882894a-f735-0410-b71e-b25c423dba1c
2006-05-18 22:05:43 +00:00
M. Sean Finney
e667553b97
- check_ntp:
...
- now roughly feature-complete.
- various bugfixes, esp. offset calculation.
- enhanced the asynchronous offset polling to set requests that
haven't recieved a response in >= 1 second to stale and retransmit them,
which results in much better performance on unreliable networks.
- we only spend timeout/2 seconds polling offsets, and if we don't get
everything by that point we work with what we have and set status to
warning/critical depending on how much data we have.
- set the same defaults as the perl script.
- commit changes to configure.in to support automatic building of check_apt
(if apt-get is installed and regex libraries available) and check_ntp
(unconditionally), now defaulting to check_ntp.c instead of the perl script.
if this is an issue we can back out the commit of course. an eye
should be kept on check_ntp building and running correctly in different
environments, esp. 64-bit and big-endian platforms, and those with more
"esoteric" API's (do any of the platforms not have poll()?).
- similar changes to Makefile.am's.
- common.h: add statement to include sys/poll.h
- runcmd.c: exit STATE_UNKNOWN if execve() fails.
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1386 f882894a-f735-0410-b71e-b25c423dba1c
2006-05-01 21:52:42 +00:00
Ton Voon
7c69ccaee2
No floorf on Solaris 9 (Jon Vandegrift - 1374705)
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1295 f882894a-f735-0410-b71e-b25c423dba1c
2005-12-07 15:10:27 +00:00
M. Sean Finney
3038819fef
code cleanups, largely resulting from turning on -Wall. mostly
...
unused variables and explicit casting issues, but there were a
couple gotchas in there too.
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1267 f882894a-f735-0410-b71e-b25c423dba1c
2005-10-31 20:03:19 +00:00
M. Sean Finney
65282c7685
- initial attempt at consolidating ssl-related code into netutils.{c,h}
...
- added some #ifdefs to common.h and netutils.h to prevent multiple
inclusions (as netlibs now includes common.h)
- all ssl plugins (tcp/http/smtp) compile cleanly against gnutls, though
certificate checking still needs to be done.
- modified configure script so you can also explicitly say "without-gnutls"
too (otherwise if you disable openssl you have no way of disabling
gnutls too)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1255 f882894a-f735-0410-b71e-b25c423dba1c
2005-10-19 12:59:55 +00:00
Ton Voon
e273a76bc5
Fix includes for gettext
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1016 f882894a-f735-0410-b71e-b25c423dba1c
2004-12-10 00:13:43 +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
33cffe8f87
Using swapctl for Solaris, Tru64 and *BSD (Sean Finney)
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@891 f882894a-f735-0410-b71e-b25c423dba1c
2004-08-23 21:18:12 +00:00
Ton Voon
d5ae799b87
Patch for tru64 using swapctl calls (Sean Finney)
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@890 f882894a-f735-0410-b71e-b25c423dba1c
2004-08-19 19:05:49 +00:00
Ton Voon
95bf7b2fd4
Ignore __attribute__ for non-GNU compilers
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@753 f882894a-f735-0410-b71e-b25c423dba1c
2003-10-24 13:28:24 +00:00
Ton Voon
e47b74ede5
AIX problem with enum TRUE and FALSE (Ludse Verhoeven)
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@730 f882894a-f735-0410-b71e-b25c423dba1c
2003-09-16 12:32:13 +00:00
Karl DeBisschop
3d03842549
include math.h if needed for HUGE_VAL
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@710 f882894a-f735-0410-b71e-b25c423dba1c
2003-09-03 06:00:50 +00:00
Jeremy T. Bouse
4784cac1f0
Code clean-up
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@673 f882894a-f735-0410-b71e-b25c423dba1c
2003-08-09 06:51:29 +00:00
Karl DeBisschop
22c75b6d3c
add S_ macor to mark message for both translation and inclusion into docbook SGML
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@606 f882894a-f735-0410-b71e-b25c423dba1c
2003-07-26 12:13:19 +00:00
Karl DeBisschop
33a6787f51
checkins for internationalization
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@598 f882894a-f735-0410-b71e-b25c423dba1c
2003-07-26 04:17:17 +00:00
Karl DeBisschop
35d8e35009
add stubs to allow markup for translation
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@597 f882894a-f735-0410-b71e-b25c423dba1c
2003-07-21 12:06:24 +00:00
Karl DeBisschop
97ecfa6226
test GNU_SOURCE and include features.h if present to clear warning about asprintf definition
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@596 f882894a-f735-0410-b71e-b25c423dba1c
2003-07-21 11:53:26 +00:00
Karl DeBisschop
7726dc6863
rewrite #elif to be compatible with traditional C
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@482 f882894a-f735-0410-b71e-b25c423dba1c
2003-04-09 03:44:29 +00:00
Karl DeBisschop
338f51f76e
use enum instead of define, remove some cruft from old snprintf implementation
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@431 f882894a-f735-0410-b71e-b25c423dba1c
2003-03-18 07:57:00 +00:00
Jeremy T. Bouse
f6cc0cf400
Updated cvs ignore files to reflect changes
...
Moved header files from being ran through configure to standard
Removed auto-tools scripts that get added by automake
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@417 f882894a-f735-0410-b71e-b25c423dba1c
2003-03-13 06:51:18 +00:00