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 Trouble with agent_keepalive

  • Trouble with agent_keepalive

    Posted by SuperAl on April 23, 2007 at 20:48

    Hi everyone, I’m new in all the Pandora thing, and I’m having some trouble with the agent_keepalive module in my agents. I want to get an alert whenever an agent is not sending any data, so I assigned an alert to the agent_keepalive module in order to get that alert triggered if the agent wasn’t sending data. But it doesn’t work, I stop the agent, and it doesn’t do anything. However, if I leave the agent stopped for a whole day or more, sometimes the alert is fired, but with too much delay.
    ¿Can anyone help me?
    Alberto E.

    SuperAl replied 17 years, 9 months ago 3 Members · 8 Replies
  • 8 Replies
  • raul

    Member
    April 23, 2007 at 21:09
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi everyone, I’m new in all the Pandora thing, and I’m having some trouble with the agent_keepalive module in my agents. I want to get an alert whenever an agent is not sending any data, so I assigned an alert to the agent_keepalive module in order to get that alert triggered if the agent wasn’t sending data. But it doesn’t work, I stop the agent, and it doesn’t do anything. However, if I leave the agent stopped for a whole day or more, sometimes the alert is fired, but with too much delay.
    ¿Can anyone help me?
    Alberto E.

    Which version are you using?
    When creating the agent, did you select the “learning mode”?

    Raul

  • SuperAl

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

    First of all, thanks for answering so fast.
    I’m using Pandora FMS v1.2 Build PC061205, and yes, I selected the learning mode, and the console loaded the configuration from the agent. Afterwards I added a remote monitor to check if the machine was responding to ping, I assigned an alert to that monitor and it works fine. But then, I thougt about the possibility of the machine being up and responding to ping, but for any reason, the agent not working, so I decided to assign the second alert, the one assigned to the agent_keepalive module created by default. I’ve tried to attach two screenshots, one is of the modules, and the second is of the alert configuration, but the system won’t let me for a while, so I’ve uploaded them to this two addresses. (you have to remove the brackets in order to get there.
    Modules: itig[dot]myftp[dot]org[slash]alberto[slash]Modulos[dot]png
    Alerts: itig[dot]myftp[dot]org[slash]alberto[slash]Alertas[dot]png
    Alberto E.

  • Sancho

    Administrator
    April 24, 2007 at 17:21
    2309 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    First of all, thanks for answering so fast.
    I’m using Pandora FMS v1.2 Build PC061205, and yes, I selected the learning mode, and the console loaded the configuration from the agent. Afterwards I added a remote monitor to check if the machine was responding to ping, I assigned an alert to that monitor and it works fine. But then, I thougt about the possibility of the machine being up and responding to ping, but for any reason, the agent not working, so I decided to assign the second alert, the one assigned to the agent_keepalive module created by default. I’ve tried to attach two screenshots, one is of the modules, and the second is of the alert configuration, but the system won’t let me for a while, so I’ve uploaded them to this two addresses. (you have to remove the brackets in order to get there.
    Modules: itig[dot]myftp[dot]org[slash]alberto[slash]Modulos[dot]png
    Alerts: itig[dot]myftp[dot]org[slash]alberto[slash]Alertas[dot]png
    Alberto E.

    I’ve just test and looked in our demo database for keep_alive module data and seems to be a problem (BUG) in implementation for this special kind of module in 1.2 that also affects to upcoming 1.3 version. I’ll upload this issue to our tracker and try to make a patch for 1.2 version ASAP.

    Thanks for reporting the problem.

    SF BUG ID #1706615

    http://sourceforge.net/tracker/index.php?func=detail&aid=1706615&group_id=155200&atid=794852

  • SuperAl

    Member
    April 24, 2007 at 19:34
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Ok, then I’ll wait for the patch.
    Thanks a lot for the help.
    Alberto E.

  • Sancho

    Administrator
    April 26, 2007 at 15:21
    2309 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    Ok, then I’ll wait for the patch.
    Thanks a lot for the help.
    Alberto E.

    I think this issue is not actually a code problem but could be a documentation problem because it works but not as it should. I tested a 1.2 version (our demo) with a keepalive alert and works fine, BUT, you need to setup min value as 0 and max value as 0, not 1 / 1.

    Try again and tell us the results.

  • SuperAl

    Member
    April 30, 2007 at 20:38
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    I think this issue is not actually a code problem but could be a documentation problem because it works but not as it should. I tested a 1.2 version (our demo) with a keepalive alert and works fine, BUT, you need to setup min value as 0 and max value as 0, not 1 / 1.

    Try again and tell us the results.

    Hi there, I tried just what you told me, I configured a new keepalive alert in an agent, with max/min values both 0, and stopped the agent after a while, and again, nothing happened. In the screenshot I attach, you can see that the interval for this agent is 300 (5 min), and the last connection with the agent is about 20 minutes ago, but still, the alert doesn’t trigger. itig[dot]myftp[dot]org/alberto/Screenshot.png

  • Sancho

    Administrator
    May 2, 2007 at 19:35
    2309 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    I think this issue is not actually a code problem but could be a documentation problem because it works but not as it should. I tested a 1.2 version (our demo) with a keepalive alert and works fine, BUT, you need to setup min value as 0 and max value as 0, not 1 / 1.

    Try again and tell us the results.

    Hi there, I tried just what you told me, I configured a new keepalive alert in an agent, with max/min values both 0, and stopped the agent after a while, and again, nothing happened. In the screenshot I attach, you can see that the interval for this agent is 300 (5 min), and the last connection with the agent is about 20 minutes ago, but still, the alert doesn’t trigger. itig[dot]myftp[dot]org/alberto/Screenshot.png

    Mmm, try to delete network PING module, I suspect that keep_alive is working only if cannot contact agent by using any method, and network module is contacting regularly… If is this issue, it’s a problem, but not actually a bug, but needs to be solved in the same way, plese check it.

    Thanks for your patience 🙂

  • SuperAl

    Member
    May 2, 2007 at 20:21
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Thanks for YOUR patience, and for your help. Actually, I did what you just told me, and it WORKED!!!!:D 😀 😀 You where right, deleting the ping monitor, the keepalive alert works as it’s supposed. With just that alert, and no remote monitors, whenever the server detects that the agent is not sending data, it triggers the alert.
    Thanks so much for the help.
    Alberto E.