Re: Trailing slash n removal...
Posted: Tue Mar 07, 2017 1:37 pm
That doc you referred me to was what I was thinking about in my original post. Turns out I already have that defined for the perfdata. Note: Perf Data and not Nagios Status data.
This is how I have that set, and I did verify that it is still required as the initial data does have /nSo this is still required. Also note: Change was required for ramdisk.
So, that is not a solution to this problem. It is a solution and is needed, but for something else.
I do wonder if you really intended me to comment out livestatus temporarily. That is only used for NagVis to read from. I will humor you though just because. I will have a chance to do that test later today.
This is how I have that set, and I did verify that it is still required as the initial data does have /n
Code: Select all
process-host-perfdata-file-bulk
/bin/sed -i 's/\\n//g' /var/nagiosramdisk/host-perfdata &&
/bin/mv /var/nagiosramdisk/host-perfdata /var/nagiosramdisk/spool/xidpe/$TIMET$.perfdata.host
process-service-perfdata-file-bulk
/bin/sed -i 's/\\n//g' /var/nagiosramdisk/service-perfdata &&
/bin/mv /var/nagiosramdisk/service-perfdata /var/nagiosramdisk/spool/xidpe/$TIMET$.perfdata.service
So, that is not a solution to this problem. It is a solution and is needed, but for something else.
I do wonder if you really intended me to comment out livestatus temporarily. That is only used for NagVis to read from. I will humor you though just because. I will have a chance to do that test later today.