Ad Widget

Collapse

Free space on HA partition

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mschlegel
    Member
    • Oct 2008
    • 40

    #1

    Free space on HA partition

    I have a couple different pairs of Linux HA servers. One such pair is setup to have a MySQL server running on 1 and only 1 server at a time. When the MySQL server is running on a server, it will have a couple partitions mounted from a shared storage backend for the database data & transaction logs. If the server is not running, these partitions are not mounted on the host.

    The trick becomes monitoring free space on the data & log partitions. In this particular case, the data partition is more important, since the logs are static sized, however, the principle applies to both.

    My first thought is to build a trigger condition that looks to see if the size of the the data partition is different from the size of the parent partition, and if that is true, checks for a designated amount of free space. This does not seem to work though:

    {Template_HOST:vfs.fs.size[/var/lib/mysql,pfree].avg(1200)}<95 & ({Template_HOST:vfs.fs.size[/var/lib/mysql,total].last(0)} # {Template_HOST:vfs.fs.size[/,total].last(0)})

    With this setup, the triggers stay in an unknown state, even for the host with the partition mounted. Is there a relatively simple way this might be built to work?

    Thank you,
  • mschlegel
    Member
    • Oct 2008
    • 40

    #2
    Apparently I wasn't quite patient enough. The triggers transitioned to the proper state shortly after I posted. I want to say it took around 30 minutes or more for the triggers to transition though.

    In my impatience, I ended up adding an item to check for a file on the mounted filesystem to use as a flag for the trigger instead of the complicated expression. This seems to be hitting the same 'slow refresh' issue I had before though. Any idea why it takes so long for a trigger setup as follows to get an initial status?

    {Template_HA:vfs.fs.size[/var/lib/mysql,pfree].avg(1200)}<20 & {Template_HA:vfs.file.exists[/var/lib/mysql/zabbix-mounted].avg(1200)}=1

    Comment

    • tchjts1
      Senior Member
      • May 2008
      • 1605

      #3
      You using a Zabbix proxy in this mix?

      Comment

      • mschlegel
        Member
        • Oct 2008
        • 40

        #4
        These hosts are not on a proxy.

        Comment

        Working...