03-06-2017
Well, it's a bit open ended and the answer is "It depends."
Firstly, what OS and version are you using? The output from
uname -a would be very useful here.
What sort of thing are you looking for?- If you are looking for use of sudo then that should be picked up by syslog (or rsyslog)
- If you want to know who logged on and from where, that depends on the OS
- If you want to know who edited or deleted a file, it depends on who could edit or delete the file and if they had to get any elevated privileges to do so.
- etc.
- etc.
You need to be much more specific and then we can ask questions of what you might have set up that we can help you use.
Can you elaborate a little? A bit of history and context would be useful here.
Kind regards,
Robin
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Dear all,
I am writing a shell that check the java application already run. If it is not run before it will run next commands.
ps -ef | grep java
Thank you :) (3 Replies)
Discussion started by: mr_bold
3 Replies
2. AIX
hi gurus,
i have a question:
when run which javac under a user account I got the following results:
PROD DB Server: /usr/java14/bin/javac
DR DB Server: /usr/java14/bin/javac
DEV DB Server: /usr/java5_64/bin/javac
The .profile in all environments are same.
so how do know who is the... (1 Reply)
Discussion started by: lweegp
1 Replies
3. UNIX for Dummies Questions & Answers
Hi all,
Can you guys please help me with this...
I am on AIX and need to prepare a script which will
1. check for a file named do_backup in the current file system
2. If the file exists i need to run some commands and exit, if the file doesn't exist then sleep for 15 mins and try... (2 Replies)
Discussion started by: family_guy
2 Replies
4. Shell Programming and Scripting
I have one unix job which can be executed using following commands:
csh
setenv HOME /data/ftpqa/ARTQ/orascripts
sudo -u artq /apps/ralocal/bin/runscript artq ../out/art_neg_item_cost_update.csh
I want to create one more script, which checks whether art_neg_item_cost_update.csh is already... (1 Reply)
Discussion started by: amarpreetka
1 Replies
5. UNIX for Dummies Questions & Answers
Hi, I was wondering if there was any way in unix to check when a file was last run.
I'm doing a basic menu.
1. Savefile
2. Check when SaveFile was last run.
What can I use here to display when SaveFile was last run?
Coding so far is
if
then
echo Save file was last used:
... (2 Replies)
Discussion started by: Purepatch
2 Replies
6. Shell Programming and Scripting
Hello,
I'm looking for a bash script, that I will run from cron, that executes a php script. After 5 minutes that the php script is executed, the bash script, must check a value in a text file /public_html/check.txt
if check.txt = 0 the script will stop, if check.txt is not = 0 it must... (0 Replies)
Discussion started by: andymc1
0 Replies
7. Shell Programming and Scripting
Hi all,
I have a script that can be run via cron or via the command line.
Is there any way that I can place something on the script to be able to distinguish/differentiate whether the script was run via a user in the command line or whether it was run from the cron? (3 Replies)
Discussion started by: newbie_01
3 Replies
8. Shell Programming and Scripting
( sleep 3
echo ${LOGIN}
sleep 2
echo ${PSWD}
sleep 2
while read line
do
echo "$line"
PID=$?
sleep 2
kill -9 $PID
done < temp
sleep 5
echo "exit" ) | telnet ${HOST}
while is executing only command and exits. (5 Replies)
Discussion started by: sooda
5 Replies
9. UNIX for Dummies Questions & Answers
Hi All,
I have a script, I want to make sure the script should check whether the day is sunday, only then it should run, if it is run other days it should check and exit the script.
Kindly help.
Thanks in Advance !! (41 Replies)
Discussion started by: nanz143
41 Replies
10. Shell Programming and Scripting
Hey
i have problem with cut and print column
problem is i want to execute shell script to run df -h /tmp
if the result ( Use% ) was more than 50% , run rm -rf /tmp/*
any idea how cut the result of df -h /tmp ? (1 Reply)
Discussion started by: nimafire
1 Replies
LEARN ABOUT CENTOS
pmdarsyslog
PMDARSYSLOG(1) Performance Co-Pilot PMDARSYSLOG(1)
NAME
pmdarsyslog - rsyslog (reliable and extended syslog) PMDA
DESCRIPTION
pmdarsyslog is a Performance Metrics Domain Agent (PMDA) which exports metric values from the rsyslogd(8) server. Further details about
rsyslog can be found at http://www.rsyslog.com/.
INSTALLATION
If you want access to the names and values for the rsyslog performance metrics, do the following as root:
# cd $PCP_PMDAS_DIR/rsyslog
# ./Install
If you want to undo the installation, do the following as root:
# cd $PCP_PMDAS_DIR/rsyslog
# ./Remove
pmdarsyslog is launched by pmcd(1) and should never be executed directly. The Install and Remove scripts notify pmcd(1) when the agent is
installed or removed.
In order to use this agent, rsyslog stats gathering must be enabled. This is done by adding the lines:
$ModLoad impstats
$PStatsInterval 5 # log every 5 seconds
syslog.info |/var/log/pcp/rsyslog/stats
to your rsyslog.conf(5) configuration file after installing the PMDA. Take care to ensure the syslog.info messages do not get logged in
any other file, as this could unexpectedly fill your filesystem. Syntax useful for this is syslog.!=info for explicitly excluding these.
FILES
/var/log/pcp/rsyslog/stats
named pipe containing statistics exported from rsyslog, usually created by the PMDA Install script.
$PCP_PMDAS_DIR/rsyslog/Install
installation script for the pmdarsyslog agent
$PCP_PMDAS_DIR/rsyslog/Remove
undo installation script for the pmdarsyslog agent
$PCP_LOG_DIR/pmcd/rsyslog.log
default log file for error messages from pmdarsyslog
SEE ALSO
pmcd(1), rsyslog.conf(5), rsyslogd(8).
3.8.10 Performance Co-Pilot PMDARSYSLOG(1)