Ad Widget

Collapse

Is there a way to monitor agent status in Linux

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • agentguerry
    Member
    • Jul 2009
    • 45

    #1

    Is there a way to monitor agent status in Linux

    Is there a way to monitor the linux agent, if say for instance if the agent does not start up? I know that through the web managment I can see if I am pinging the server and the rest of the triggers are blank, but I'm looking to see if I can monitor so that I can get an email if the agent is not running.

    I'm using an item right now (Simple check, icmpping) to monitor for connectivity.

    If the zabbix_agentd is stopped, I cannot telnet to port 10050, and if it IS running, I can telnet to port 10050. What would be the best way to utilize this to see if the agent is up or down?

    Still looking around, but figured I would go on and post the question.
    If I find the answer, I will finish the post

    Thank you
  • MrKen
    Senior Member
    • Oct 2008
    • 652

    #2
    The zabbix_agent on linux can monitor itself using 'proc.num[zabbix_agentd]'.
    This will show you the number of zabbix_agent processes running.

    A pretty standard trigger expression to notify you that it's not running could be this: {Host: proc.num[zabbix_agentd].last(0)}<1

    Now, I bet you're thinking "But if the agent is down, the data won't update so therefore the trigger will never fire!"
    In that case we could probably improve the above trigger by adding a 'nodata' expression.

    ({Host: proc.num[zabbix_agentd].last(0)}<1)&({Host: proc.num[zabbix_agentd].nodata(120)}=1)

    So if the agent can't send data back to the zabbix server (for 120 seconds) the trigger will fire.

    I hope that is what you're looking for.

    MrKen
    Last edited by MrKen; 20-11-2009, 11:42. Reason: Put a space between Host:proc otherwise there's a smiley
    Disclaimer: All of the above is pure speculation.

    Comment

    • zabbix_zen
      Senior Member
      • Jul 2009
      • 426

      #3
      ?

      Isn't proc.num[] computed by the Agent?
      How can the Agent tell the Server its own number of processes is null if it's down?

      Comment

      • agentguerry
        Member
        • Jul 2009
        • 45

        #4
        I think you're right on target.
        I understand what you're saying and i'm about to try it out!

        Thanks! I will report back.

        Comment

        • NOB
          Senior Member
          Zabbix Certified Specialist
          • Mar 2007
          • 469

          #5
          Originally posted by agentguerry
          Is there a way to monitor the linux agent, if say for instance if the agent does not start up? I know that through the web managment I can see if I am pinging the server and the rest of the triggers are blank, but I'm looking to see if I can monitor so that I can get an email if the agent is not running.

          I'm using an item right now (Simple check, icmpping) to monitor for connectivity.

          If the zabbix_agentd is stopped, I cannot telnet to port 10050, and if it IS running, I can telnet to port 10050. What would be the best way to utilize this to see if the agent is up or down?

          Still looking around, but figured I would go on and post the question.
          If I find the answer, I will finish the post

          Thank you
          Instead of using an icmpping simplecheck use agent.ping.

          item type: "agent"

          HTH,

          Norbert.

          Comment

          • agentguerry
            Member
            • Jul 2009
            • 45

            #6
            Agent.ping does not rely on the agent then, that is coming from the server side?

            Comment

            Working...