Thanks
@cdienger
I have tried that too, but it is just filtering the output based on the count value.
Below are the only available options with check_ping command.
filter= Filter which marks interesting items.
warning=time > 60 or loss > 5% Filter which marks items which generates a warning state.
warn= Short alias for warning
critical=time > 100 or loss > 10% Filter which marks items which generates a critical state.
crit= Short alias for critical.
ok= Filter which marks items which generates an ok state.
debug Show debugging information in the log
show-all Show details for all matches regardless of status (normally details are only showed for warnings and criticals).
empty-state=unknown Return status to use when nothing matched filter.
perf-config= Performance data generation configuration
escape-html Escape any < and > characters to prevent HTML encoding
help Show help screen (this screen)
help-pb Show help screen as a protocol buffer payload
show-default Show default values for a given command
help-short Show help screen (short forma
And below are the default values:
"warning=time > 60 or loss > 5%" "critical=time > 100 or loss > 10%" "empty-state=unknown" "top-syntax=${status}: ${ok_count}/${count} (${problem_list})" "ok-syntax=%(status): All %(count) hosts are ok" "empty-syntax=No hosts found" "detail-syntax=${ip} Packet loss = ${loss}%, RTA = ${time}ms" "perf-syntax=${host}" "count=1" "timeout=500"
It will be good to track the packet loss if the sending packet count is more than 1.
Tried several ways, but no luck.