Page 2 of 2
Re: showing remote logs in dashboard
Posted: Tue Dec 07, 2021 2:19 pm
by exp-user1
Thanks pbroste for your info.
I am still getting "root:printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/~}" " every press of enter key.
thanks,
Re: showing remote logs in dashboard
Posted: Wed Dec 08, 2021 11:32 am
by pbroste
Hello
@exp-user1
In the previous message that I posted, we moved away from
local7.notice @@Nagioslogserver-ip:5544 in our test configuration since we see that '/etc/rsyslog.conf' is already configured. In our test scenario we setup on the Log server instead of logging in '/var/log/syslog'. Went ahead and set it up so it would log to it's own log and named it: '/var/log/bash.log'. We then set up logrotation on the bash.log in ./etc/logrotation.d/.....'
Contents:
local5.info /var/log/bash.log
The
local5.info change to level of log output, here is a list of some conditions:
notice Notice: normal but significant condition
info Informational: informational messages
debug Debug: debug-level messages
On the client side we added the following to '.bash_profile':
shopt -s histappend
PROMPT_COMMAND="history -a;$PROMPT_COMMAND"
trap 'logger -p local5.info -t bash -i -- "${USER}":"$BASH_COMMAND"' DEBUG
By moving the logging off of local7 and over to local5 removed this line ("root:printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/~}") that you are seeing.
Here is the example:
syslog.png
Let us know how things look,
Perry
Re: showing remote logs in dashboard
Posted: Sat Dec 18, 2021 11:35 am
by exp-user1
Thanks Perry for your help and time.
Re: showing remote logs in dashboard
Posted: Mon Dec 20, 2021 10:15 am
by pbroste
Excellent,
@exp-user1 I will go ahead and lock this up. Please let us know if you need anything further.
Thanks,
Perry