What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

How to remove PAESSHSTART and PAESSHEND from history

Votes:

0

Reply of https://www.paessler.com/knowledgebase/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.

history paesshend paesshstart shell

Created on Oct 16, 2013 1:29:23 PM



1 Reply

Votes:

0

I posted this as well to the KB article directly.

Created on Oct 17, 2013 9:13:49 AM by  Greg Campion [Paessler Support]




Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.