System monitor for awesome

Im currently using awesome, its great except for one thing, there is no system monitor, like gnome-system-monitor for example. though I want something that dosent depend on gnome and displays remainning laptop battery time, aswell as mounted file systems, ram/cpu/network usage and a list of prosesses.

Here's what I'm using with dwm - probably good for dzen as well:
dwm-mystats.sh
#!/bin/zsh
# vim:ft=zsh ts=4
# (c) 2007 by Robert Manea
# Date format as recognized by standard system 'date'
SDATE_FORMAT='%Y-%m-%d %H:%M'
sdate() {
date +${SDATE_FORMAT}
sdfree() {
print -n `df -h / /home` | awk '{verf1=$11; part1=$13; verf2=$17; part2=$19}; END {print "["part1"] -"verf1" [~] -"verf2}'
smemused() {
awk '/MemTotal/ {t=$2}; /MemFree/ {f=$2}; END {print t-f " " t}' /proc/meminfo | dbar -w 6 -s '='
swapused() {
awk '/SwapTotal/ {t=$2}; /SwapFree/ {f=$2}; END {print t-f " " t}' /proc/meminfo | dbar -w 6 -s '='
sload() {
print -n ${(@)$(</proc/loadavg)[1,3]}
scpu() {
vmstat | awk '/0/ {print 100-$15}' | dbar -w 6 -s '='
snetabs() {
local iface
iface=`ifconfig | grep "Ethernet" | awk '{print $1}'`
if [ $iface != "" ] ; then
print -n "$iface: `mesure -l -i $iface -avK -c 2`||"
fi
snetbar() {
mesure -aK -c 2 -l -i `ifconfig | grep "Ethernet" | awk '{print $1}'` | dbar -nonl -w 6 -s '=' -min 0 -max 270
sac() {
case `awk '{print $2}' /proc/acpi/ac_adapter/AC/state` in
on-line)
print -n "yep"
print -n "no"
esac
sbatt() {
local STATE
STATE=`cat /proc/acpi/battery/BAT0/state /proc/acpi/battery/BAT0/info`
case `echo $STATE | awk '/present:/{print $2}' - | tail -n 1` in
no)
print -n "no"
echo $STATE | awk '/design capacity:/ {f=$3}; /remaining capacity:/ {r=$3}; END {print 100*r/f"%"}' -
esac
sgov() {
< /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
sfreq() {
awk '{print $1/1000}' /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
stemp() {
awk '{print $2}' /proc/acpi/thermal_zone/THRC/temperature
supdates() {
grep pkg.tar.gz /var/log/updates.log | wc -l
# Main
while true; do
upd=$(supdates)
if [ $upd = 0 ] ; then
print " AC: $(sac) | Batt: $(sbatt) || $(sdfree) || CPU:$(scpu) ($(sload)) | $(sgov) / $(sfreq) MHz -> $(stemp)° || $(sdate)"
else
print " AC: $(sac) | Batt: $(sbatt) || $(sdfree) || CPU:$(scpu) ($(sload)) | $(sgov) / $(sfreq) MHz -> $(stemp)° || $upd UPD. || $(sdate)"
fi
# change polling frequency in AC/BATT mode
case $(sac) in
yep)
sleep 8
no)
sleep 1m
esac
done
You can play around a bit with the functions that get called/displayed in the main loop. It depends on zsh and makes use of this cronjob (in /etc/cron.hourly/pacsync):
#!/bin/dash
pacman -Syup --noprogressbar > /var/log/updates.log

Similar Messages

  • System Monitoring for Satellite System in Solution Manager

    Hi,
      I configured satellite system in solution manager through SMSY,and i created solution in dswp.I want to configure system monitoring through ccms agent,how to install ccms agent,how to configure system monitoring for satellite system in solution manager .Please guide me.
    Thanku

    Hi,
    In Solution manager I did below steps. :
    1)  Activated background dispatching in Rz21 (Client : 000).
    2)  Created CSMREG user (In RZ21)
    3)  Generated the configuration file for agent (CSMCONF).
    I down loaded the ccmagent_35-20001346.sar file.
    What are the steps i have to do in satellite system.
    Thanku

  • Solution Manager System Monitoring for non SAP system

    Dear Support,
    I have configured the CCMS Agent (SAPCCMSR) for non-SAP system (Windows 2008R2).
    The system information (e.g. CPU, Memory, Disks etc) has already showed in RZ20 of Central Monitoring system (e.g. Solution Manager).
    How can I do to configure to display these information in the Alert Inbox tab on System Monitoring Workcenter?
    Best regards,
    Fan Hung

    Hi,
    Have you defined and added corresponding logical systems for the respective satellite systems?
    Here is the sequence of steps you've to do:
    in SMSY:
    1) Define server, DB, Systems
    2) Generate READ, TMW, TRUSTED RFCs to the satellite systems
    3) define logical systems and assign the satellite system to it
    in Solution_Manager:
    1) define new solution
    2) add the logical system into the solution
    If these steps are successful, you should be able to see the satellite system in SYSTEM MONITORING in Solution_Manager.
    Have you already done these steps?
    After performing these steps:
    Solution_Manager>choose relevant solution>operations setup>Solution Monitoring>System monitoring>Activate monitoring> choose the system and activate monitoring.
    Your system will then appear.
    Does this help any way?

  • System Monitor for PXI 4-Slot Chassis

    Hi all,
    I have PXI 4-Slot and PXIe 5-Slot system, which are currently being used for continuous monitoring of some power parameters. Recently, there's a requirement for us to actually monitor the status and health of these PXI systems. I was told that PXI-8250 and NI System Monitor can only work with 8-Slot chassis. Is there a solution smaller chassis? Please advice.
    Shazlan

    I got the same problem and started a thread in the Idea Exchange:
    http://forums.ni.com/t5/LabVIEW-Real-Time-Idea-Exchange/Update-and-extend-NI-System-Monitor/idi-p/17...
    Hopefully NI will update the System Monitor soon.

  • SM: System Monitoring for PI7.0

    Now,I'm implemente a Solution Manager project for System monitoring module.who could tell me about how to collect data on part of Java via CCMS?
    if need to configure CCMS Agent,then how to do it?
    thanks a lot.

    Hi,
    As far as configuring CCMS is condisdered.
    1. Create the CSMREG User
    2. Activate Background Dispatching
    3. Activate the Internet Communication Manager (ICM)
    4. Activate Central System Dispatching
    5. Monitor Remote ABAP Systems
         By default, the monitoring architecture monitors only the local ABAP system. You
         must perform the following steps to monitor remote systems:
          a. First define RFC connections from the CEN to the respective monitored ABAP
             system (see Monitoring Multiple Systems: Defining RFC Connections).
          b. Make the monitoring architecture aware of these RFC connections (see
          monitoring Multiple Systems).
    6. Prepare the Registration of the CCMS Agents
    This SAP Help link really explained beautifully to monitor CCMS.
    http://help.sap.com/saphelp_sm40/helpdata/en/49/6272376d3bfa2be10000009b38f8cf/content.htm
    i) Please let me know the systems in your landscape that you want ot monitor, so that i could help you.
    ii) Do you have an ABAP Instance or Java Instance?
    iii) What are the alerts you would like to configure?
    Incase you require more details revert back.
    --Ragu

  • Maown - file system monitor for shared group directories

    Maown Info Page
    I needed a way to manage ownership and permissions of files in a shared directory. ACLs and "chmod g+s" alone were not enough so I wrote maown.
    Maown is a file system monitor written in C. It uses inotify to recursively watch a directory tree for file creation and attribute modification. It automatically chowns files to user:group and adjusts group permissions to match user permissions.
    The package includes a daemon with a simple configuration file. Each line in the configuration file specifies a user, a group and a list of directories to monitor:
    <user> <group> <directory> [<directory>...]
    Last edited by Xyne (2012-05-21 02:35:24)

    Maown has been replaced with Autochown.

  • [Solved] System Monitoring for SSH

    Hi all,
    Am on the lookout for a system monitoring tool that doesn't require X/KDE/GNOME etc. - ideally something like htop but with the functionality of something like conky ie. can also show temperatures (from lm-sensors etc.) etc.
    I'm running a basic no-frills Storage box that hosts subsonic and via SSH I would like to have a tool i can quickly call upon and give me live feedback on my CPU usage etc. as well as temps. - A colourful interface would be nice too
    Any recommendations?
    Thanks in advance!
    Last edited by killercow (2011-07-29 18:25:53)

    Thanks for your recommendations:
    graysky: wanted to avoid running a webserver so gave monitorix a miss - though looks like a brilliant monitoring tool.
    ChoK - thanks for putting me back on this path. I had an initial look and kind of gave up on conky being able to do this (especially since it explicitly advertises itself as a program that requires X) - however!!...
    Found these options for conky.conf:
    out_to_console
        Print text to stdout.
    out_to_ncurses
        Print text in the console, but use ncurses so that conky can print the text of a new update over the old text. (In the future this will provide more useful things)
    out_to_stderr
        Print text to stderr.
    out_to_x
        When set to no, there will be no output in X (useful when you also use things like out_to_console). If you set it to no, make sure that it's placed before all other X-related setting (take the first line of your configfile to be sure). Default value is yes
    Added
    out_to_ncurses yes
    out_to_x no
    Commented out (to get rid of little warning message that appears otherwise):
    #out_to_console no
    ..and voila! Conky a la console! Thanks a million! Time to play with my conky.conf file further

  • System monitoring setup for j2ee

    Hello,
    I am seeting up system monitoring in my solution manager7.0 for XI systems. I am able to configure abap engine but not j2ee. whenver i clicked on active check mark for dispatcher and server hearbeat it is turning to red colour where as user defined alert i am able to configure. When i click on dispatcher heart beat and try to open properties it is telling you cann ot maintain properties. Could someone guide me to setup system monitoring for j2ee.
    Thanks,
    Kiran.

    Check
    http://service.sap.com/diagnostics
    Did you set up the SMD agent on your XI system?
    Markus

  • Competitors for SAP Solution Manager within central system monitoring

    Hello!
    We currently use SAP Solution Manager (CCMS monitors from RZ20) for the central system monitoring for several SAP systems.
    Are there some other tools/competitors that can also serve as central platform for system monitoring of several SAP systems?
    (e.g. HP OpenView).
    Many thanks!

    Hello,
    You may want to take a look into the EarlyWatch Alert report.
    It's a weekly report that gives information about many different areas of your systems and helps you to maintain them. It helps to detect problems before they occur by analysing trends on your systems and alerting about it. It definitely may work taking a look into it: service.sap.com/ewa.
    It does not have an additional cost, all you need is a solution manager.
    Regards,
    Daniel.
    Edited by: Daniel Nicol on Apr 11, 2011 8:04 PM

  • Copy Customizing for System Monitoring

    Hello!
    I am about to set up the system Monitoring for the different business systems.
    I have seen there in Setup System Monitoring function "Copy Customizing"...
    Can I copy the predefined Alerts or also the user defined such as from Tcode RZ20?
    What is the procedure to copy the alerts from one system to the another?
    Thank you very much!
    regards!
    Thom

    Thank you!
    I have got a realy good SAP Tutot regarding this issue..
    regards

  • System Monitoring in Solution Manager

    Friends
    1.System monitoring for one of the satellite systems has been configured in solution manager (through DSWP - Setup system monitoring) using RFC connections(Read and Trusted RFCs generated in SMSY).
    2.Installed CCMS Agent on the satellite system and registered to solution manager system.
    RZ21 -> Remote Agent Status shows online.
    Should something else to be done (settings, background jobs, configuration )in Solman or satellite system to make  communication to satellite via CCMS agent primary for system monitoring?
    How do i get to see the satellite system's monitoring context in Solution manager?
    Please help me out
    Thanks
    Gnana

    Friends
    1.System monitoring for one of the satellite systems has been configured in solution manager (through DSWP - Setup system monitoring) using RFC connections(Read and Trusted RFCs generated in SMSY).
    2.Installed CCMS Agent on the satellite system and registered to solution manager system.
    RZ21 -> Remote Agent Status shows online.
    Should something else to be done (settings, background jobs, configuration )in Solman or satellite system to make  communication to satellite via CCMS agent primary for system monitoring?
    How do i get to see the satellite system's monitoring context in Solution manager?
    Please help me out
    Thanks
    Gnana

  • System Monitoring in Solution Manager 4.0

    Hi all,
    I want to set up system monitoring for landscape BW, ECC and SCM systems using Solution Manager 4.0 and am new to Sol Man.
    So could anyone please help me with the steps.
    Thanks in advance,
    Sandeep.

    Sandeep,
    Trust me, there is no one resource that you can refer to and complete this system monitoring project. I recently configured this a couple of days ago. I can tell you that I haven't completed it yet. I have only completed the configuring the 'System Monitoring' part of it. I am yet to define monitors so that, I can monitor what I want of the satellite systems. So far, it took me about 4 days. Let me point out the basic steps you need to follow. Beyond that, please refer to the links I paste below:
    Steps to configure 'System Monitoring' in Solution Manager:
    1. Follow the 'Solution Manager Preparation' found under SPRO --> Solution Manager --> Read Me.
    2. Make sure you have the latest ST-ICO and ST-SER installed in your Solution Manager (Note: 892412).
    3. Make sure the Solution Manager has the latest support packages applied.
    4. Prepare the 'Satellite Systems' as per note 455356:
         a. Create the role 'SAP_BC_CSMREG' (if it doesn't exist) with the following authorization objects
              --> S_CCM_RECV (with the objects and values mentioned in the above note)
              --> S_RFC (with the objects and values mentioned in the above note)
              --> S_RZL_ADM (with the objects and values mentioned in the above note)
              --> S_CUS_CMP (with the objects and values mentioned in the above note)
         b. Create a 'communication' user CSMREG (if it doesn't exist) and assign the profile S_CSMREG
    5. Create the user CSMREG in Solution Manager using RZ21 transaction
              -->RZ21 --> Technical Infrastructure --> Configure Central System --> Create CSMREG user (Provide the required password and confirm).
    6. An agent needs to be registered in all the satellite systems that collects the monitor statistics and pass on to the Solution Manager. Before registering the agent in the satellite system, a 'CSMCONF' file has to be generated in the Solution Manager and store it in a central location which, will be used by the CCMS agent while registration. This CSMCONF file holds the communication details for the agent to talk to the Solution Manager. To create CSMCONF file, proceed as follows:
              --> RZ21 --> Technical Infrastructure --> Configure Central System --> Create Start CSMCONF for Agents
              --> Store the file in a central location that can be accessed by the satellite system/s.
    7. In the satellite system, copy the file 'CSMCONF' to the working directory of SAPCCM4X (F:\usr\sap\PD1\SYS\DVEBMGS01\log\sapccm4x - for example. If the 'sapccm4x' folder does not exist, create one).
    8. Copy the downloaded 'SAPCCM4X.exe' file to the kernel directory on the satellite system.
    9. Execute "sapccm4x -R pf=<path of the instance profile>". This should ask for the 'CSMREG' password and the admin user password on the solution manager system. Please input the same and confirm other questions. Upon confirmation, the CCMS agent should be registered in the satellite system.
    10.Make sure you establish the trusted RFC connection on the Solution Manager to the satellite system you would want to monitor. This you can do from 'SMSY' transaction.
    11.After successfully creating the RFC connections, and assigning the system to a logical component, please go to transaction, 'SOLUTION_MANAGER'. You can see the monitored system in the System Overview.
    Below are the reference links:
    Weblogs Related to Solution Manager
    Hope this helps. Award with relevant points if my response is helpful.
    Thank you.

  • System Monitoring Issue.

    Dears ,
    We are using Solman 7.0,SP16 on Oracle 10.2.0.2.
    We are configuring System Monitoring for our ECC5(DEV,QAS,PRD) landscape on it.
    Now for it I added system in SMSY then assigned them in logical comp as per their role and then assigned that log comp to a solution.
    Now when I goto DSWP->setup system monitoring...
    It only show me producation server and its dialog instances there not my DEV and QAS server.
    So my first question is
    1--Do I have to create seprate solutions and seprate log comp to configure system monotoring for all servers.
    2-In configuration there are some parameters like programme buffer whose threshold value it is not picking by defualt so when I go to metion in RZ21 there are some option like message class,method assignment about which I am not aware so please suggest how can I configure such type of parameters.
    Shivam

    Go to tx DSWP
    Choose your solution
    Go to Operation Setup (in left screen)
    Go to Solution Settings (in right screen)
    Choose tab "System Group"
    You'll find your logical component with in it your systems, probably only your PRD is highlighted in green.
    Go to change mode, right click the systems you want to add (QAS & DEV) and choose "put in solution".
    Don't forget to save!
    If all is well, all your systems should be visible when you want to setup system monitoring now.

  • 'Setup System Monitoring' option  is disabled in solution manager

    Hello,
    I am trying to setup system monitoring for different systems in solution manager but the 'Setup System Monitoring' is disabled.
    In solman I go to Solution_manager --> Operations Setup --> on the right side pane 'Setup System Monitoring' is disabled. How can you change this to change mode so that you can configure monitoring for different systems? Any idea, please help.
    Thank you in advance.
    Sameer
    Edited by: Sameer Pant on Mar 19, 2011 1:07 AM

    Hi Lakshmi,
    But when i right click on the qualifier
    No u hv to right click on a field to which Compound field is mapped ( Ur Main Table Field)
    Right Click on Compound field & choose option Set Qualified Update.
    New Links: Create
    Existing Links: Update (All Mapped Qualifiers)
    Thanks,
    Maheshwari

  • Automatic System Monitoring Reports

    Hello Solution Manager Experts!
    We already successfully set up System Monitoring for several SAP ERP and NetWeaver systems on SAP Solution Manager 7.1.
    Now we would like to automatically send system monitoring/ IT Performance reports by e-mail to all the System Administrators. This should be done daily. 
    Does the new SAP Solution Manager 7.1 provide this function (generation of daily automatic Reports in background and sending these reports by e-mail)?
    Any helpful information will be very appreciated
    Kind regards

    Hello,
    You're welcome.
    The prerequisites are: execute solman_setup entirely and execute the managed system configuration for the monitored host. These tasks includes the SMD Agent, which will communicate the system with Solution Manager.
    Regarding RZ20 reports, as far as I know you have the actual IT performance reporting and, in a top level, the EarlyWatch  Report.
    As you may know, 7.1 presents a new infrastructure for Technical Monitoring and Alerting
    It is the SAPu2019s new standard for central Monitoring and Alerting . The u201COldu201D System Monitoring work center based on central CCMS still available. You can do what you used to do with CCMS and also do even more with it, in a simpler way.
    Best regards,
    Guilherme
    Edited by: Guilherme Balbinot on Oct 18, 2011 10:11 AM

Maybe you are looking for