Welcome to Pandora FMS Community!

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

  • emilio

    Member
    December 17, 2015 at 12:09
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hello Franklin Harry,

    Do you have any server down? (You’ll see a red ‘X’ at the right-top of the pandora if that’s the case).
    Maybe server hostname has been changed from localhost to something else?

    Regards,
    Emilio.

  • franklin-harry

    Member
    December 17, 2015 at 12:20
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    I didn’t change any host name and all hosts are connected well.Please check following screen shot.

  • emilio

    Member
    December 17, 2015 at 13:00
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hello Franklin Harry,

    Yeah, I see… Have you tried to force the page to be refreshed?
    When a module is not giving any data back is probably because there’s a problem with the module itself, like not being correctly defined or something.
    Remember to always force and refresh the agent by going to “View”, and then pressing “Force” and “Refresh” repetely.
    Hope this helps šŸ˜‰ If not, send me back a screenshot of the module itself.

    Regards,
    Emilio.

  • franklin-harry

    Member
    December 17, 2015 at 13:18
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi,

    here my custom module which I was configured

    module_begin
    module_name REDIS_Daemon
    module_type generic_proc
    module_exec ps -Af | grep redis
    module_end

    and

    module_begin
    module_name WEB_Hits
    module_type generic_data_inc
    module_exec cat /var/log/httpd/access_log
    module_end

    so please suggest me how to correctly configure.

  • emilio

    Member
    December 17, 2015 at 15:02
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi Franklin,

    You’re facing a problem with the outcome there!
    I mean, have you tried the execution of the “exec” line at the command line?
    For example, if you try “ps -Af | grep redis” it will probably throw some lines to you, string data, and when monitoring you’re giving it the “generic_proc” type of data, string would be better, that way, you’ll be able to read those lines. Same goes for the second one, “WEB_hits”.

    Anyway, what are you trying to monitor?
    I’m talking about what kind of information do you want to control?
    Modules are created so they go to criticial or warning when something happens, like for example the number value of the ram that’s free at the very moment, goes higher than limit.
    I think that there’s no point of creating modules such the ones that you attached, so I think it’ll be better for me if you could tell me what you want to monitor šŸ˜‰

    Sorry about the rock that I throw at you, this post took longer than it should xD

    Regards,
    Emilio.

  • franklin-harry

    Member
    December 17, 2015 at 15:12
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi,

    I planning to monitor running processes so what can I give input there? please can you guide me.

  • emilio

    Member
    December 17, 2015 at 15:55
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi Franklin,

    You were doing it right about the module type, it may be “generic_proc”.
    To check if a service is up or down, you must know the output in advantage, the best way of doing so would be something like this:
    “ps aux | grep mysql | grep -v grep | wc -l” (given the case of mysql). If the number given is higher than 0, nothing will happen (because is up).

    Regards,
    Emilio.

  • franklin-harry

    Member
    December 17, 2015 at 16:10
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi,

    How to setup alerts with custom alert template or clear alert email. I attached screen shot for your reference so please guide me.

  • emilio

    Member
    December 17, 2015 at 17:32
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi Franklin,

    It’ll be as easy as following this path: Alerts > Actions and creating one of your own (or using the one already given, “Mail to XXX”).
    I highly recommend you to use the Wiki for further information: http://wiki.pandorafms.com/index.php?title=Pandora:Documentation_en:Alerts

    Regards,
    Emilio.