willixix/WL-NagiosPlugins

check_memcached.pl rate perfdata issue

Opened this issue · 0 comments

when running checks on new hosts where there isnt already perf data I get this error
"Calculating rate variable such as &cmd_get requires previous performance data. Please add '-P $SERVICEPERFDATA$' to your nagios command line." and or others like it, then it exits.
This is a chicken or the egg issue since there is no perf data to start with it cant generate the the perfdata. instead it should return a Warning or Critical state and indicate that the perfdata to calculate the rate accurately was unavailable then maybe do something like divide the total by the uptime for the initial status return