Add support for storing cached data in LONGSERVICEOUTPUT macro #43
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This:
./check_netint.pl -H 172.16.203.172 -C public -n "eth\d+|em\d+" -f -q -k -y -M -B -m -P "DATA: cache_descr_ids=2 cache_descr_names=eth0 cache_descr_time=1383918585 'eth0_in_octet'=3326101411 'eth0_out_octet'=933507763 'eth0_in_octet.1383849652'=2790378964 'eth0_out_octet.1383849652'=533846849 ptime=1383918385" -T 1383918585 -e -z --nagios_longoutput
Outputs the following:
eth0:UP (0.0Mbps/0.0Mbps/0.0/0.0/0.0/0.0) (1 UP): OK | 'eth0_in_prct'=0% 'eth0_out_prct'=0% 'eth0_in_error'=0 'eth0_out_error'=0 'eth0_in_discard'=0 'eth0_out_discard'=0
DATA: cache_descr_ids=2 cache_descr_names=eth0 cache_descr_time=1383918585 'eth0_in_octet'=3326494996 'eth0_out_octet'=933967457 'eth0_in_octet.1383918385'=3326101411 'eth0_out_octet.1383918385'=933507763 ptime=1383918621
... which is valid PERFDATA. Without this option the -P option produces invalid PERFDATA and graphing tools reject it (e.g php4nagios).