Conky to monitor disk space.

Okay, I'm trying to modify Southie75's conky config for my own use, and running into some problems.
Here is the disk part of the config:
${alignc}Disks
${alignr}Writes/Reads
Root ($color${fs_type /}${color0}) ${alignr}$color${diskio_write /dev/sda2}${color0}/$color${diskio_read /dev/sda2}
${fs_used /}${color0}/$color${fs_size /} ${alignr}$color${fs_used_perc /}% ${color0}${fs_bar 8,100 /}
Vista ($color${fs_type /home/southie/vista}${color0}) ${alignr}$color${diskio_write /dev/sda1}${color0}/$color${diskio_read /dev/sda1}
${fs_used /home/southie/vista}${color0}/$color${fs_size /home/southie/vista} ${alignr}$color${fs_used_perc /home/southie/vista}% ${color0}${fs_bar 8,100 /home/southie/vista}
Backup ($color${fs_type /home/southie/mnt}${color0}) ${alignr}$color${diskio_write /dev/sdb2}${color0}/$color${diskio_read /dev/sdb2}
${fs_used /home/southie/mnt}${color0}/$color${fs_size /home/southie/mnt} ${alignr}$color${fs_used_perc /home/southie/mnt}% ${color0}${fs_bar 8,100 /home/southie/mnt}
Now, my version:
${alignc}Disks
${alignr}Writes/Reads
Root ($color${fs_type /}${color0}) ${alignr}$color${diskio_write /dev/sda2}${color0}/$color${diskio_read /dev/sda2}
${fs_used /}${color0}/$color${fs_size /} ${alignr}$color${fs_used_perc /}% ${color0}${fs_bar 8,100 /}
Home ($color${fs_type /}${color0}) ${alignr}$color${diskio_write /dev/sdd4}${color0}/$color${diskio_read /dev/sdd4}
${fs_used /}${color0}/$color${fs_size /} ${alignr}$color${fs_used_perc /}% ${color0}${fs_bar 8,100 /}
Anime ($color${fs_type /media/Anime}${color0}) ${alignr}$color${diskio_write /dev/sda1}${color0}/$color${diskio_read /dev/sda1}
${fs_used /media/Anime}${color0}/$color${fs_size /media/Anime} ${alignr}$color${fs_used_perc /media/Anime}% ${color0}${fs_bar 8,100 /media/Anime}
Storage ($color${fs_type /media/Storage}${color0}) ${alignr}$color${diskio_write /dev/sdc1}${color0}/$color${diskio_read /dev/sdc1}
${fs_used /media/Storage}${color0}/$color${fs_size /media/Storage} ${alignr}$color${fs_used_perc /media/Storage}% ${color0}${fs_bar 8,100 /media/Storage}
It seems to work, but the probem is that every time I show down my computer and boot it up again, conky will not start because the /dev/XXX has changed. I asked about this on IRC, and was linked to the wiki about persistent block device naming (http://wiki.archlinux.org/index.php/Per … ice_naming), but I don't really understand how to make it work with the conky config.

$ /bin/ls -lF /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 2009-07-21 14:41 086015D76015CBF6 -> ../../sdc1
lrwxrwxrwx 1 root root 10 2009-07-21 14:41 1FCE38490AF84BBA -> ../../sda1
lrwxrwxrwx 1 root root 10 2009-07-21 14:41 3C693BB801316E01 -> ../../sdb1
lrwxrwxrwx 1 root root 10 2009-07-21 14:41 6A55ED1A765187B7 -> ../../sdb2
lrwxrwxrwx 1 root root 10 2009-07-21 14:41 6e24d1db-3363-4261-bac4-45e10a39c5a2 -> ../../sdd4
lrwxrwxrwx 1 root root 10 2009-07-21 14:41 ad6e5ae5-1ea6-49ca-b45d-ca9fcdfdb618 -> ../../sdd1
lrwxrwxrwx 1 root root 10 2009-07-21 14:41 d1c3bf9f-3554-4d6a-aafd-e3bf719ae255 -> ../../sda2
lrwxrwxrwx 1 root root 10 2009-07-21 14:41 e2ada9b5-0d59-46aa-a5a5-e46089eeaa44 -> ../../sdd2
lrwxrwxrwx 1 root root 10 2009-07-21 14:41 eeb92087-e378-452e-8cbb-47541961cf65 -> ../../sdd3
Then I ran
df -l
and saw that the drive I wanted was:
/dev/sda1 576717400 457374532 119342868 80% /media/Anime
so I tried:
Anime ($color${fs_type /dev/disk/by-uuid/1FCE38490AF84BBA}${color0}) ${alignr}$color${diskio_write /dev/disk/by-uuid/1FCE38490AF84BBA}${color0}/$color${diskio_read /dev/disk/by-uuid/1FCE38490AF84BBA}
${fs_used /dev/disk/by-uuid/1FCE38490AF84BBA}${color0}/$color${fs_size /dev/disk/by-uuid/1FCE38490AF84BBA} ${alignr}$color${fs_used_perc /dev/disk/by-uuid/1FCE38490AF84BBA}% ${color0}${fs_bar 8,100 /dev/dis$y-uuid/1FCE38490AF84BBA}% ${color0}${fs_bar 8,100 /dev/disk/by-uuid/1FCE38490AF84BBA}
and conky says
Conky: diskio device '../../sda1' does not exist
Conky: diskio device '../../sda1' does not exist
What did I miss? Do I need to include that whole first part too?
Last edited by murderbymodem (2009-07-22 00:17:22)

Similar Messages

  • How to monitor disk space in BW

    can some body help me out on the following issues.
    1)How to monitor disk space in BW?
    2)How can I delete Application logs in BW?

    When I research with DB02 transaction code in BW, I encountered following tables having lot of log , please some body can help me, how to delete the following log data?
    ARFCSDATA     ARFC Call Data (Callers)          
    BALDAT          Application Log: Log data     
    BSRWBSTORE     Storage for binary large objects (Excel)

  • Agentless Mode - Monitor Disk Space

    Hi guys, I have 100 VMs running Windows 7. All I wish to do is monitor the free space on them so I installed the agent on a server VMand I'm trying to use it as a proxy to agentless monitor disk space on them. I can't figure out though how to get the disk
    space monitor to fire against them agentless. It doesn't seem to discover the disk instances against them. Is there a guide for this somewhere?  

    I should have been more specific.
    There are no internal firewalls software or hardware based
    Remote registry is ruing on all machines.
    The SCOM action account is a full admin on al client machines
    The issue is that the logical disk are simply not being discovered agentlessly. How to troubleshoot this? I see messages like this on my Proxy agent:
    The Registry Probe could not collect the following attributes from the registry of the computer 'myvm.mydomain.com'.
    AdvisorConnectorActivated: 0x80070005 (Access is denied.
    Version: 0x80070005 (Access is denied.
    RegisterToManagementGroup: 0x80070005 (Access is denied.

  • SCOM only monitoring disk space of a group of servers

    I have been looking for a way to setup SCOM to ONLY monitor the disk space on a specific group of servers. 
    We have a sandbox environment that consists of approximately 100 servers.  The only responsibility we have is to make sure these machines are patched.  Everything else related to the OS and Software is handled by the developers who own the sandbox,
    so no other monitors are needed.  Microsoft patches are failing because some of the C drives do not have enough disk space.  Is there a way to discover these servers and only have the disk monitored? All other monitors in SCOM can be ignored on these
    servers.
    Thanks for any assistance that can be provided.

    Without knowing what else you have in your SCOM environment, it could be a lot of work to start excluding this group of servers from all the other monitoring you have. 
    Other options you could consider are to allow the servers to be monitored, but somehow exclude those alerts from being sent in any subscriptions, or putting the components of those servers into Maintenance Mode other than the C: drives, but both of these
    options will still collect information on these 100 servers and take space in your SCOM DBs.
    You can refer to this page for how to use the free space monitor and override it for a group that will target your 100 servers. http://blogs.technet.com/b/jonathanalmquist/archive/2009/04/04/logical-disk-free-space-monitor.aspx

  • Monitor disk space using alerts

    I need to receive an email when a disk space on a given drive (which has SQL DB files) falls below 3 GB:
    - I need to use alerts (I don't want to use a SQL job to run some SP every x mins).
    - SQL Server performance condition alert cannot be used, because SQL cannot access non-SQL performance counters
    - if you use WMI event alert, please provide a query
    - registry cannot be modified (I know what you were thinking)
    Seems like a rather common DBA need, and I can't find a solution.  Thanks in advance.

    Try this SQL Server alert .You need to use database mail and then the operator to send the mail ..Modify it as I have kept the > 800 value and you need to use < sign ...
    USE
    [msdb]
    GO
    /****** Object: Alert [Low disk] Script Date: 07/12/2011 13:57:50 ******/
    EXEC
    msdb.dbo.sp_add_alert
    @name=N'Low
    disk',
    @message_id
    @severity
    =0,
    @enabled
    =0,
    @delay_between_responses
    =0,
    @include_event_description_in
    =0,
    @category_name
    =N'[Uncategorized]',
    @wmi_namespace
    =N'\\.\root\CIMV2',
    @wmi_query
    =N'select * from __instancemodificationevent within
    1 where targetinstance isa ''CIM_LogicalDisk'' and targetinstance.freespace > 800',
    @job_id
    =N'00000000-0000-0000-0000-000000000000' 
    GO
    Abhay Chaudhary OCP 9i, MCTS/MCITP (SQL Server 2005, 2008, 2005 BI) ms-abhay.blogspot.com/
    =0,

  • Activity Monitor - Disk Space Pie Chart

    Anyone else miss it? I propose asking apple to bring it back in Mavericks!

    Posting this here might make you feel better, but other than that, it won't do much good. This is a user-to-user forum and is not usually monitored by Apple for the purposes of feedback. If you want Apple to change something, you can give your feedback here: Apple - Mac OS X - Feedback

  • Alert on Low disk space

    Hi  All
    I have created an alert of WMI event in sql server  which send mail if disk space on D drive is less than 10GB
    Query :
    SELECT * from __InstanceModificationEvent
    WITHIN 60
    WHERE
    TargetInstance ISA 'CIM_LogicalDisk'
    AND
    TargetInstance.FreeSpace < 10000000000
    AND
    TargetInstance.DeviceID = 'D:'
    when I enable this alert It sends alert for low disk space
    but some time it does'nt send alerts. I am not sure when this __InstanceModificationEvent   occure
    and is there any another way to alert low disk space in my mailbox

    Take a look on link:
    http://blogs.technet.com/b/fort_sql/archive/2012/08/01/alert-on-low-disk-space-including-mount-points.aspx
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/7a750515-8e82-425d-9c97-f37aac8e149a/monitor-disk-space-using-alerts?forum=sqldatabaseengine
    --Please click "Propose As Answer"
    if a post solves your problem, or "Vote As Helpful" if a post has been useful to you

  • How to monitor available disk space in archive directory

    I need to monitor the available disk space of the archive directory during a long running PL/SQL program which does a lot of inserts and updates. This program is running in a background session and should regularly check for the available space. If there is less then a customizable number of MBs free the program must terminate itself. How can I access this information from the file system? (I'm using 8.1.6 and the application will run on both AIX and NT)

    The directory itself is not taking space (It actually does but in most cases you can neglect its size). It is files that it has that take space. Also, the more files you create the more space gets allocates from the media that holds them. And the last, the media (Hard Drive, Floppy, or other) has free space, not directory. That is how all OS's that I know about work.

  • Operations Manager log flooded with 11903 errors due to "Virtual Hard Disk free disk space" monitor

    Management Pack: Microsoft Windows Hyper-V 2012 R2 Monitoring (7.1.10104.0)
    Monitor: Virtual Hard Disk free disk space
    There appears to be an issue with this monitor. Every hour, each of my Hyper-V servers is reporting dozens of errors similar to the following. It seems like there is a disconnect between the expected return type (integer) and the actual type (decimal) when
    checking the free space on VHDX files.
    Log Name:      Operations Manager
    Source:        Health Service Modules
    Date:          2/5/2014 7:59:47 AM
    Event ID:      11903
    Task Category: None
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      BEAST.corp.technologytoolbox.com
    Description:
    The Microsoft Operations Manager Expression Filter Module could not convert the received value to the requested type.
    Property Expression: Property[@Name='Microsoft:9AC8FCAB-800D-424F-ABCB-747063E5FCF1\559D22F4-A565-4AD4-9B71-44FC5D815C0C\0\0\L.FreeSpace']
    Property Value: 488033.99609375
    Conversion Type: DataItemElementTypeInteger(5)
    Original Error: 0x80FF005A
    One or more workflows were affected by this. 
    Workflow name: Microsoft.Windows.HyperV.2012.R2.VirtualDrive.FreeSpaceMonitor
    Instance name: Hard Disk
    Instance ID: {0C0E0759-D846-963C-21E6-3C1A1C096D5F}
    Management group: HQ
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Health Service Modules" />
        <EventID Qualifiers="49152">11903</EventID>
        <Level>2</Level>
        <Task>0</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2014-02-05T14:59:47.000000000Z" />
        <EventRecordID>32395</EventRecordID>
        <Channel>Operations Manager</Channel>
        <Computer>BEAST.corp.technologytoolbox.com</Computer>
        <Security />
      </System>
      <EventData>
        <Data>HQ</Data>
        <Data>Microsoft.Windows.HyperV.2012.R2.VirtualDrive.FreeSpaceMonitor</Data>
        <Data>Hard Disk</Data>
        <Data>{0C0E0759-D846-963C-21E6-3C1A1C096D5F}</Data>
        <Data>Property[@Name='Microsoft:9AC8FCAB-800D-424F-ABCB-747063E5FCF1\559D22F4-A565-4AD4-9B71-44FC5D815C0C\0\0\L.FreeSpace']</Data>
        <Data>488033.99609375</Data>
        <Data>DataItemElementTypeInteger(5)</Data>
        <Data>0x80FF005A</Data>
      </EventData>
    </Event>

    SCOM agent is running as SYSTEM. (I used to run SCOM agents as a low-privilege domain account but eventually surrendered to "The Dark Side" due to the number of issues encountered with that approach.)
    PS HKU:\.DEFAULT\Control Panel\International> dir
    Hive: HKEY_USERS\.DEFAULT\Control Panel\International
    Name Property
    Geo Nation : 244
    User Profile Languages : {en-US}
    ShowAutoCorrection : 1
    ShowTextPrediction : 1
    ShowCasing : 1
    ShowShiftLock : 1
    User Profile System Backup Languages : {en-US}
    ShowAutoCorrection : 1
    ShowTextPrediction : 1
    ShowCasing : 1
    ShowShiftLock : 1

  • Disk Space Monitor

    hi
    I have set up a logical disk space monitor for windows 2012 servers on my Operations manager 2012. The threshold value is 500MB. However, No alert is generated even when my disk has exceeded 500MB. It works when i set the threshold below 100 MB. Can you
    please help out on this?  Is it because of the wrong instance ?
    The object has been specified as "Logical Disk"
    Counter is %free space and the instance is the C:\ drive. 

    Does you using Logical Disk Free Space, from Windows Server OS Management  Pack, in monitoring the free disk space?
    Case 1 Logical disk Free Space Monitor:
    It will generate alert if both the conditions, disk free space and % of free disk space, are below threshold.
    Recommendation: You may enable another monitor ,Disk Free Space (MB) Low, which is disable by default.
    Case 2 you own custom monitor:
    Please dump your setting for troubleshooting
    Roger

  • Disk Space Monitoring Tools

    I'm looking for a tool that will monitor all of my X-Servers and display the disk space for all of them within one application. If anyone knows of one, please let me know.
    Thanks,
    Peter

    I use [cacti|http://cacti.net> for this

  • Disk Space Monitors

    If you can't get the customization for space alerts with SW you can always use one of many free utilities:
    http://community.spiceworks.com/product/47308-disk-space-monitor
    

    We have quiet a few servers on our network. 
    I want to be alerted and have a ticket created for when their disk space is at a certain point. 
    Spiceworks notified us when there was less than 10% space free which is great. But we then realized that we would like to be notified at different percentages and also notified for how many GB are left instead of a percent. Sadly, There are only a few options and we would like to have a monitor that tells us less than 50 GB or less than 20 GB, but we can't seem to figure out how to add more options that it offers.
    HELP WITH THIS ASAP, would be greatly appreciated. 
    This topic first appeared in the Spiceworks Community

  • SCOM cluster disk space monitor

    Hi Guys,
    Can we monitor the cluster disks thresholds by taking the samples as we do in the logical disks??
    Because i cannot see that option coming in the cluster disk space monitor when i am overriding the monitor.There is no option for the number of samples coming in that. I want the monitor to check the utilization three times and if it exceeds then generate
    an alert.
    Thanks
    Ashish

    Hi,
    As you mentioned, threre is no option for the number of samples, you may need to rewrite the MP.
    Please refer to the following links which should be helpful for our question.
    Management Pack Authoring Options
    http://www.code4ward.net/2012/07/06/system-center-2012-operations-manager-authoring-options/
    OpsMgr: MP Update: New Base OS MP 6.0.6972.0 Adds new cluster disks, changes free space monitoring, other fixes
    http://blogs.technet.com/b/kevinholman/archive/2012/06/14/opsmgr-mpupdate-new-base-os-mp-6-0-6972-0-adds-new-cluster-disks-changes-free-space-monitoring-other-fixes.aspx
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • Maverick free disk space activity monitor

    Activity Monitor in 10.9 does not display free disk space any more. What was the idea behind that?

    Additional question related to Actvity Monitor:  In 10.9, was the capability to monitor the disk activity of an external disk also removed?    I have had some problems with an external disk; the old activity monitor gave me some indication whether it was functioning normally or not.  I also used the Activity Monitor to watch the disk activity during backups in the event of disruption of some kind; could be, for example, a loose FireWire cable. A third part app is ok, but I have the sense that useful capability has been removed.  -j

  • Difference between Available and Used in Info for MacIntosh HD and Space Free and Space Utilised under Activity Monitor, Disk Usage?

    I have a MacBook Air 2010, upgraded to OSX Version 10.8.4.  When I click the Macintosh HD and then look under Info, it says I have 120.47GB capacity, Available 60.97GB, Used 59.5GB.  However when I look under Activity Monitor, Disk Usage it says Space Utilised 92.18GB, Space free: 28.29GB.  Questions:
    Why the difference?
    Which is more important for computer speed?
    How to I reduce "Space Utlised" to closer to "Used"?  (I've already moved 25GB of the more bulky, less immediate data to external storage from the computer, including emptying IPhoto Trash and the main Trash.  The Space Utilised dropped only from 95GB to 92GB--while the Used space dropped from 85GB to 60GB.)

    Iheartapple1970
    Just to let you I tried the reindexing before the Mendes advice and it had no effect.  Of course, I may have done it wrong. It was the HD icon from the desktop which I dragged into the Privacy window of Spotlight (and then did the +, OK, - and close Spotlight).  Should I have dragged in something else?  Or opened up the HD and dragged in all the contents?
    Also, there is a small section in my HD which is for my wife's account which has a separate user name and password, although it has no data in it and I set it up while under my administrator account original, so my MacAir may think I still "own" it; in any case, I did not get any sort of error message saying I did not have ownership of the entire HD.

Maybe you are looking for