Reply of https://www.paessler.com/en/topic/34083-remove-paesshstart-and-paesshend-from-history
To complete the proposed workaround (which worked for me with centos/bash) :
1- first, just let PRTG flood the user's bash history with PAESSHSTART...PAESSHEND entries
2- then, run in the user's command line the following : ##Back up the .bashrc file ;-) cp $HOME/.bashrc $HOME/.bashrc.`date '+%Y%m%d'`;
##add HISTIGNORE to the .bashrc file with this single line command (run it only ONE time) : grep "PAESS" $HOME/.bash_history | sort | uniq > /tmp/histignore.list && echo export HISTIGNORE=\"`sed '{:q;N;s/\n/:/g;t q}' /tmp/histignore.list `\" >> $HOME/.bashrc;
3- edit the user's .bashrc file and verify you don't have more than one declaration of HISTIGNORE... else, just merge all the existing values into a single one HISTIGNORE="...".
'hope that will work for you, best regards.
Article Comments
Attention: This article is a record of a conversation with the Paessler support team. The information in this conversation is not updated to preserve the historical record. As a result, some of the information or recommendations in this conversation might be out of date.
I posted this as well to the KB article directly.
Oct, 2013 - Permalink