summaryrefslogtreecommitdiffstats
path: root/lib/tests/test_utils.c
AgeCommit message (Collapse)AuthorFilesLines
2014-06-21Add UID to state retention file pathHolger Weiss1-2/+6
Add the UID of the invoking user to the state retention file path. This helps solving permission issues when different users run the same plugin.
2014-01-31Add tests for negative thresholds in test_utilsThomas Guyot-Sionnest1-2/+17
2014-01-29Add tests for mp_translate_state()Thomas Guyot-Sionnest1-5/+50
2014-01-27Rename MP_STATE_DIRECTORY to MP_STATE_PATHThomas Guyot-Sionnest1-3/+3
2014-01-25Ignore MP_STATE_DIRECTORY in suid pluginsThomas Guyot-Sionnest1-1/+3
If a plugin still has suid privileges at the time np_enable_state() is called, the MP_STATE_DIRECTORY environment will be ignored. There is no need for a NEWS entry as no suid plugins use np_enable_state yet.
2014-01-25Rename ENV variable, keep backward compatibilityThomas Guyot-Sionnest1-3/+3
Rename NAGIOS_PLUGIN_STATE_DIRECTORY to MP_STATE_DIRECTORY
2014-01-19Project rename initial commit.Monitoring Plugins Development Team1-24/+24
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.
2013-08-17Adding tests for range @1:1Dominique Broeglin1-1/+13
2010-06-24Cleanup some warnings displayed from IRIX tinderbox serverTon Voon1-10/+8
2010-06-23Added state retention APIs. Implemented for check_snmp with --rate option.Ton Voon1-1/+181
See http://nagiosplugin.org/c-api-private for more details on the API. Also updated check_snmp -l option to change the perfdata label.
2009-01-26Make extract_value more generic:Thomas Guyot-Sionnest1-24/+24
Add a separator argument passed using defines.
2009-01-21Move check_ntp's extract_value to utils_base.c.Thomas Guyot-Sionnest1-1/+80
This function can also be used to parse performance data strings which could be useful in the future.
2009-01-09Fix test from last commitThomas Guyot-Sionnest1-1/+1
2009-01-09basename check in test_utils.c was accidentaly added again.Thomas Guyot-Sionnest1-4/+0
In 538b97c I reverted a serie of libtap patch by Ton Voon; it included the removal of the useless basename check. Relevant portion of the changelog from which it was removed (f31cd40): Removed basename test as we should use base_name from GNUlib which is tested separately
2009-01-08Try to make IRIX happy (this fixes a similar warning in Solaris)Thomas Guyot-Sionnest1-1/+1
2008-11-28Revert inclusion of libtap into nagiospluginsThomas Guyot-Sionnest1-1/+4
(except for the NEWS file) This reverts the following commits (latest first): f3e0909, 9f16b54, be8df51, f31cd40, 5270c7d, a25083f, f1bfe40, c503d85 and 6c476db
2008-11-23Removing CVS/SVN tags and replacing with git-based versioningThomas Guyot-Sionnest1-1/+0
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-08-21Correctly link to included libtap. Simplify invoking test scripts.Ton Voon1-4/+1
Removed basename test as we should use base_name from GNUlib which is tested separately git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2042 f882894a-f735-0410-b71e-b25c423dba1c
2008-01-30Bump lib/tests to GPLv3Thomas Guyot-Sionnest1-19/+18
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1914 f882894a-f735-0410-b71e-b25c423dba1c
2006-07-13Major fixes to check_disk. Now should return same data as dfTon Voon1-1/+14
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1452 f882894a-f735-0410-b71e-b25c423dba1c
2006-07-13Move new util_* functions to lib/Ton Voon1-0/+169
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1451 f882894a-f735-0410-b71e-b25c423dba1c