Ton Voon
18f6835eda
Added state retention APIs. Implemented for check_snmp with --rate option.
...
See http://nagiosplugin.org/c-api-private for more details on the API.
Also updated check_snmp -l option to change the perfdata label.
2010-06-23 13:30:34 +00:00
Thomas Guyot-Sionnest
7cb3ae0933
check_snmp: Make use of standard threshold functions
...
This patch makes use of standard threshold functions. This allows using
doubles as thresholds.
Since SNMP supports only integers, double precision numbers are only
printed when parsed from a STRING type.
In addition, support for printing properly Timeticks type has been added,
and the code has been thoroughly cleaned.
2009-05-28 08:10:49 -04:00
Thomas Guyot-Sionnest
ba132e9e52
Make extract_value more generic:
...
Add a separator argument passed using defines.
2009-01-26 02:05:21 -05:00
Thomas Guyot-Sionnest
a4647be424
Move check_ntp's extract_value to utils_base.c.
...
This function can also be used to parse performance data strings which
could be useful in the future.
2009-01-21 01:27:40 -05:00
M. Sean Finney
bf9f0e9f89
added functions to utils_base:
...
np_check_if_root() - returns nonzero if geteuid()==0
np_warn_if_not_root() - uses the above to print an informative warning
added uses of these functions to check_dhcp and check_icmp.
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1718 f882894a-f735-0410-b71e-b25c423dba1c
2007-05-27 13:46:32 +00:00
Holger Weiss
89301b2a82
Declare print_thresholds().
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1696 f882894a-f735-0410-b71e-b25c423dba1c
2007-04-20 17:45:44 +00:00
Ton Voon
c56c42b9c9
Cater for different errors when setting thresholds
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1496 f882894a-f735-0410-b71e-b25c423dba1c
2006-10-18 12:03:10 +00:00
M. Sean Finney
8efd2d1d90
- explicitly include utils_base.h from utils.h
...
- put utils.h inside of an #ifndef/#endif
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1474 f882894a-f735-0410-b71e-b25c423dba1c
2006-09-02 20:41:18 +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