Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check_icmp 'loses' perfdata labels on DOWN/CRITICAL #510

Closed
log1-c opened this issue Jan 14, 2020 · 3 comments
Closed

check_icmp 'loses' perfdata labels on DOWN/CRITICAL #510

log1-c opened this issue Jan 14, 2020 · 3 comments
Labels
Milestone

Comments

@log1-c
Copy link

log1-c commented Jan 14, 2020

When using check_icmp for checks on hosts/services the checks perfdata output changes based on the state, which is a problem for the old pnp4nagios graphing tool.

Check that reports ok/up:
image

Check that reports critical/down:
image

This results in the graph for packets lost containing rta ms values instead of the pl % ones:
image

pnp4nagios is not set up to have multiple files for the perfdata, as this is not suitable for the setup.

I would like to propose that check_icmp retains the other perfdata labels in the critical/down output and fills them with the warning/critical values (like check_ping does) or just zero..

system is CentOS 7, Plugin Version is check_icmp v2.2.1.git (nagios-plugins 2.2.1)

The check_icmp plugin (on Ubuntu) for the monitoring-plugins project does not have this problem

@sawolf
Copy link
Member

sawolf commented Jan 14, 2020

Good catch - you're right that the performance data tags shouldn't change based on plugin status. I've added this for the next bugfix release

@sawolf sawolf added this to the 2.3.2 milestone Jan 14, 2020
@sawolf sawolf added the Bug label Jan 14, 2020
sawolf added a commit to sawolf/nagios-plugins that referenced this issue Jan 14, 2020
sawolf added a commit to sawolf/nagios-plugins that referenced this issue Jan 14, 2020
@sawolf
Copy link
Member

sawolf commented Jan 14, 2020

The fix turned out to be relatively simple, so if you're willing to compile the plugin manually, check the branch linked in the pull request above.

@log1-c
Copy link
Author

log1-c commented Jan 20, 2020

Tried it out, works.
Thanks for the quick fix!

@log1-c log1-c closed this as completed Jan 20, 2020
sawolf added a commit that referenced this issue Feb 17, 2020
Fix #510 - perfdata tags should remain the same even if packet loss is at 100%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants