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

Process name regexp with | breaks check_snmp_process perfdata output #91

Open
pboguslawski opened this issue Jan 3, 2025 · 0 comments

Comments

@pboguslawski
Copy link

When check_snmp_process.pl is executed with regexp containing pipe sign i.e. -n '^rsyslogd$|^named$', text message in output contains | and is recognized as start of perfdata which breaks processing it.

Seems pipe cannot be escaped there so consider replacing | with its HTML entity | i.e. by inserting

$o_descr =~ s/\|/|/g;

in line 847.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant