Ad Widget

Collapse

How to monitor service httpd in RedHat?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • theocastelo
    Member
    Zabbix Certified Specialist
    • Oct 2012
    • 81

    #1

    How to monitor service httpd in RedHat?

    Hi guys,

    I have a problem that in my opinion can be very basic.

    How do I monitor the service httpd (apache) in the redhat? just, if this are up or down.

    I tried use Service_state , will not, I believe is only windows.

    I tried net.tcp.service[httpd] it says not supported.

    I tried proc.num[httpd] he brings me the value 0, but know that the service is running.

    no longer know what to try, can anyone help me?
  • gleepwurp
    Senior Member
    • Mar 2014
    • 119

    #2
    Hi

    just tried it on one of my redhat server, and it runs ok...

    can you try the following and post the result?

    This needs to be run locally on the server that should have httpd running:

    Code:
    zabbix_agent -t proc.num[httpd]
    This should give you what the agent is able to see when looking for the number of httpd process... here's how mine looks:

    Code:
    gleepwurp@whml12345 ~]$zabbix_agent -t proc.num[httpd]
    proc.num[httpd]                               [u|9]
    This basically says that it found 9 httpd process, and is returning the value as an "unsigned" number (u).

    If its says [u|0], means it didn't find the process...

    G.

    Comment

    • aib
      Senior Member
      • Jan 2014
      • 1615

      #3
      To be on safe side - before checking httpd on zabbix server, check if it exists on client side.
      Code:
      ps aux | grep httpd
      sometimes it has to be replaced to apache and in that case you should check
      Code:
      proc.num[apache]
      Sincerely yours,
      Aleksey

      Comment

      Working...