Welcome to Pandora FMS Community!

Find answers, ask questions, and connect with our community around the world.

Welcome to Pandora FMS Community Forums Community support WOW …I am the first one to post here (^_^)

  • WOW …I am the first one to post here (^_^)

    Posted by neverland on October 17, 2007 at 06:30

    There are several servers which i am taking care of always become disk fulll oftenly. And I’d like to add some function in pandora fms to show up if there is some disk full. what function will be suit to this situation

    regard and thanks

    neverland replied 17 years, 3 months ago 4 Members · 20 Replies
  • 20 Replies
  • manu

    Member
    October 17, 2007 at 11:16
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    You should be honored to be the fist one 🙂

    Anyways, I’m supposing you’re using linux so this should do the trick:

    module_begin
    module_name disk_root_free
    module_type generic_data
    module_exec df -kh / | tail -1 | awk ‘{ print 100-$5 }’
    module_max 100
    module_min 0
    module_description Free disk Percentage of root partition
    module_end

    Now, just set up the alert with the value you’d like pandora to warn you

    Hope this helps
    Manuel

  • neverland

    Member
    October 17, 2007 at 12:23
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hello manu, really thank you for your fast reply but i still not understand about your reply
    For the below code i need to add it on server pandora or the satelite/ client pandora?.. and how?
    module_begin
    module_name disk_root_free
    module_type generic_data
    module_exec df -kh / | tail -1 | awk ‘{ print 100-$5 }’
    module_max 100
    module_min 0
    module_description Free disk Percentage of root partition
    module_end
    My version os : redhat enterprise 4

  • neverland

    Member
    October 17, 2007 at 12:30
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    now i still using beta version

  • raul

    Member
    October 17, 2007 at 13:34
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hello manu, really thank you for your fast reply but i still not understand about your reply
    For the below code i need to add it on server pandora or the satelite/ client pandora?.. and how?
    module_begin
    module_name disk_root_free
    module_type generic_data
    module_exec df -kh / | tail -1 | awk ‘{ print 100-$5 }’
    module_max 100
    module_min 0
    module_description Free disk Percentage of root partition
    module_end
    My version os : redhat enterprise 4

    Add it on the pandora_agent.conf file of the agent.

  • neverland

    Member
    October 18, 2007 at 05:54
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    hi i get confused if i want it fires alert only when the disk become full what max and min i need to identify
    thanks again

  • neverland

    Member
    October 18, 2007 at 11:02
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    anyway i would like to ask some more thing about
    how can i make it alert only when disk full

  • manu

    Member
    October 18, 2007 at 11:20
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Delete de max and min value from the pandora_agent.conf in the section of the “full disk”

    And when setting the alert just choose, if you want the alert to be fired when the 90% of the disk is full, choose min value 0 and max value 90

    Manuel.

  • neverland

    Member
    October 18, 2007 at 12:21
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    hello again i wanna ask if can i also apply “disk_root_free” as package full too?

  • neverland

    Member
    October 18, 2007 at 13:45
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    sorry for my mistake
    it is not package full but it is packet full

  • manu

    Member
    October 18, 2007 at 13:52
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    What?

  • neverland

    Member
    October 18, 2007 at 13:54
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    i am not sure if i type it wrong or not
    what i am trying to do is make the alert show in red color when the client pandora packet full.

  • manu

    Member
    October 18, 2007 at 14:45
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    I’m sorry I don’t understand you yet, “pandora client packet” ?

  • neverland

    Member
    October 18, 2007 at 20:12
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    1st: I ask u about function for disk full and u suggest me to use “module disk root free”
    2nd: and now I ask u function for packet full.

    according to last question of disk full if i set alert as enable and min0 and max90 …will the alert fire when disk full?

    thank

  • manu

    Member
    October 19, 2007 at 11:22
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    1: True
    2: I don’t know what “packet full” means

    The alert will be fired whenever the value is more than 90 (which is the % occupated in the disk)
    (I said 90% as an example)

  • neverland

    Member
    October 19, 2007 at 13:08
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    ip_conntrack: table full, dropping packet.
    ip_conntrack: table full, dropping packet.

  • manu

    Member
    October 22, 2007 at 14:07
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    You’re gonna have to to scripting and try to asing full=1 otherwise = 0 and set up that in the module.

  • neverland

    Member
    October 31, 2007 at 06:23
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    thank you for yr suggestion but can u guide me more how to script it
    and how can i put it into pandora
    thanks

  • manu

    Member
    October 31, 2007 at 12:19
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    What’s the command you use to get that?

  • Sancho

    Administrator
    November 7, 2007 at 08:57
    2321 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    ip_conntrack: table full, dropping packet.
    ip_conntrack: table full, dropping packet.

    Seems to be a problem with netfilter (too small conntable), it’s easy to increase:

    echo “40952” > /proc/net/ipv4/ip_conntrack_max

    To make it fixed on every reboot:

    /etc/sysctl.conf :

    net/ipv4/netfilter/ip_conntrack_max=40952

    Hope it helps 😉

  • neverland

    Member
    November 9, 2007 at 11:40
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    thank, but it did not work
    i prefer to something else for now what about incoming packet module
    Make it alert when the table is going to be full, can i do so ?