Vertical Bar in Plugin Output Text

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
grenley
Posts: 96
Joined: Tue May 13, 2014 6:06 pm

Vertical Bar in Plugin Output Text

Post by grenley »

From searching the forum, this topic was last addressed three years ago and I'm hoping progress has been made since.
We have log text that contains vertical bars in the output text.
Obviously, this has been an issue for some time where anything to the right of the vertical bar is stripped and treated as metrics.
Has this been addressed in XI 5?
Big issue for our users.
Thanks, Rick
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Vertical Bar in Plugin Output Text

Post by ssax »

Unfortunately not, you would need to convert them into something else to get the data into XI. What plugin are you using that is sending them in?
grenley
Posts: 96
Joined: Tue May 13, 2014 6:06 pm

Re: Vertical Bar in Plugin Output Text

Post by grenley »

Bummer. I was afraid of that.
We use a custom logfile plugin
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Vertical Bar in Plugin Output Text

Post by mcapra »

The plugin development guidelines for reference:
https://nagios-plugins.org/doc/guidelines.html

Section pertaining to performance data and the | character:
https://nagios-plugins.org/doc/guidelines.html#AEN200

Substituting this character within the plugin itself is probably your best option.
Former Nagios employee
https://www.mcapra.com/
grenley
Posts: 96
Joined: Tue May 13, 2014 6:06 pm

Re: Vertical Bar in Plugin Output Text

Post by grenley »

ok. thanks
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Vertical Bar in Plugin Output Text

Post by mcapra »

Since the original question was answered, is it alright if we lock this thread?
Former Nagios employee
https://www.mcapra.com/
Locked