Tag Info

New answers tagged

0

Here's my oneliner grep -i 'runlevel' /etc/init/* | awk '!/#/ && /start on/ && /2/ {gsub("/"," "); print $0 }' | cut -d ' ' -f4- A bit cleaner output can be achieved with grep -i 'runlevel' /etc/init/* | awk '/start on/ && /2/ {gsub("/"," "); gsub(":", " ");gsub(".conf"," "); print $3 }' Now lets get into details. Upstart jobs ...


0

at first delete zabbix.list sudo rm /etc/apt/sources.list.d/zabbix.list and then run commands from in documentation (Answer Y or I when you run dpkg -i .....): # wget http://repo.zabbix.com/zabbix/2.2/ubuntu/pool/main/z/zabbix-release/zabbix-release_2.2-1+precise_all.deb # sudo dpkg -i zabbix-release_2.2-1+precise_all.deb # sudo apt-get update


0

You can choose tripwire file integrity manager. http://www.tripwire.com/register/tripwire-enterprise-file-integrity-manager/ http://www.thegeekstuff.com/2008/12/tripwire-tutorial-linux-host-based-intrusion-detection-system/


3

require authentication for all changes to that file (even as root) I have a feeling that this is not possible. Definitely not completely waterproof. The superuser is God on the system. To monitor a file or folder, you can use the following command: sudo apt-get install auditd # if not already installed sudo auditctl -w <path_to_file> -p w ...


1

Setting immutable attribute on the file would help preventing any changes to it. As for monitoring - you can probably achieve it in many ways starting with some shell script verifying size, checksum, modification time or whatever else you find useful, ending on some more sophisticated integrity checking solutions like tripwire or whatever currently is ...


0

I create some custom script. Is not complete solution for you but maybe help. #!/bin/bash #we use output from "uptime" and "w" on every 5 min UPTIME=`uptime`; W=`w`; RAM=`free -m`; PS=`ps auxf | sort -nr -k 4 | head -15` DATUM=`date`; sleep 3 MYSQL=`mysqladmin -u root -pmz567sQld processlist;` sleep 3 SYN=`netstat -natp | grep SYN` sleep 3 HTTPD=`pgrep ...


0

Are you familiar with top? Shows you CPU and RAM usage (and more) for each process and also the total sum. you can also run top -u USER to only see a specific user's processes. just start with running top with no arguments. press q in order to quit. EDIT and for using within a script: try top -b -n1 for running in non interactive mode. you can then parse ...


0

I don't known what you exactly wont ..., iptarf is nice network monitor tool With iptraf you can see general statistic per interface, sessions, traffic per protocol/port ... Also bmon is good tool to see curent traffic load and basic graphic and can record history. slurm is also nice All cen be install with apt-get sudo apt-get install bmon sudo apr-get ...


-1

jnettop might be the tool you are looking for


1

Step one: make pm-suspend accessible to all users, no password asked Do sudo visudo and add this line at the end of the file: yourusername ALL=NOPASSWD: /usr/sbin/pm-suspend Source: How do I run specific sudo commands without a password? Step two: create batwatch.desktop file: This is the file that will launch automatically the monitoring script. The ...



Top 50 recent answers are included