Ad Widget

Collapse

zabbix agent won't report apache2

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • unclecameron
    Junior Member
    • Mar 2011
    • 3

    #1

    zabbix agent won't report apache2

    Zabbix server and agent work fine on remote host reporting (Debian Squeeze), but apache2, swap and a few others don't seem to be returning info. The servers sees the agent and it reports some info correctly (host alive, etc), how do I tweak the agent to see apache2 process is running (and others)?
  • jamied66
    Member
    • Sep 2008
    • 37

    #2
    what check are you trying to use?

    net.tcp.service[http] would look for something listening on TCP port 80
    proc.num[apache2] would return the number of "apache2" processes running. the default it looks for is a process named "httpd" in Template_Linux.

    Hope it helps.

    Comment

    • unclecameron
      Junior Member
      • Mar 2011
      • 3

      #3
      thanks @jamied66

      I guess what I'm trying to understand is HOW zabbix gets it's info. i.e. does it run a perl regex on the agent box, and what is the syntax for constructing such directives? So does net.tcp.service[whatever] uses some perl lib to find out who's listening on port 80 and what the name is? OTOH, does proc.num[apache2] just cat /proc/whatever and return a value? I'd like to experiment with commands. On Nagios nrpe server, you can run whatever command at command line and see if it's working on the agent side as a troubleshooting step. For instance, I get errors saying the remote box has low swap space, how does it query that?

      Comment

      • jamied66
        Member
        • Sep 2008
        • 37

        #4
        If you want to get that deep you should check out the agent source?

        It's written in C, not Perl. I've not looked at the bits that perform those types of checks closely in a long time, so I can't help with the technical bits, but you're probably not far off if at all.

        Comment

        Working...