Ad Widget

Collapse

Zabbix says apache or mysql is not running

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fabWeb
    Junior Member
    • Apr 2012
    • 9

    #1

    Zabbix says apache or mysql is not running

    Zabbix-agent is ok on the host, and mysql and apache online but Zabbix-server says apache or mysql is not running

    I change “proc.num[httpd]” to “proc.num[apache2]“ into item but nothing...

    Any ideas please ?
  • fabWeb
    Junior Member
    • Apr 2012
    • 9

    #2
    the security path grsecurity block access to proc ?

    Comment

    • anoriel
      Junior Member
      • Apr 2012
      • 1

      #3
      Hi all,
      I have the same issue on a debian squeeze...
      I don't understand why...
      Did you find how to solve this problem?

      Comment

      • fabWeb
        Junior Member
        • Apr 2012
        • 9

        #4
        Originally posted by anoriel
        Hi all,
        I have the same issue on a debian squeeze...
        I don't understand why...
        Did you find how to solve this problem?
        not really...

        lookup up to zabbix page http://www.zabbix.com/documentation/...l/config/items :

        Linux-specific note. Zabbix agent must have read-only access to filesystem /proc. Kernel patches from www.grsecurity.org limit access rights of non-privileged users.

        Comment

        • gobbetto
          Junior Member
          • May 2012
          • 2

          #5
          I have the same problem on two Debian squeeze (6.0.5) servers: Zabbix says apache, mysql, inedtd, syslogd, sshd are not running on the servers...
          grsecurity kernel patch is not installed.

          Any idea?
          thank you in advance...

          Comment

          • TURIST
            Junior Member
            • May 2012
            • 1

            #6
            Originally posted by gobbetto
            I have the same problem on two Debian squeeze (6.0.5) servers: Zabbix says apache, mysql, inedtd, syslogd, sshd are not running on the servers...
            grsecurity kernel patch is not installed.

            Any idea?
            thank you in advance...
            Okay. I found the reason for message about Apache.

            Solution:
            Just go to Configuration -> Templates, then to Template Linux & Items.
            Change for Item "Number of running processes apache" in the key httpd to apache2 (so new value is proc.num[apache2]).

            Reason:
            In Debian/Ubuntu the process for apache instance is named apache2.
            I guess the same fixes are required for others keys when processes are named differently in different OS (Debian, Ubunty, CentOs...).

            Comment

            • gobbetto
              Junior Member
              • May 2012
              • 2

              #7
              Thank you very much, very helpful and probably you are right, but the problem is still there...
              I have Zabbix 1.8.2, so I do not have Configuration -> Templates menu.
              I used the Import/Export menu under "configuration" to export the Linux template, make the correction and then re-import it.
              I edited the line about Apache this way:

              <expression>{Template_Linuxroc.num[apache2].last(0)}&lt;1</expression>

              but the re-import of the corrected .xml file fails, with this error:

              No such monitored parameter (proc.num[apache2]) for host (Template_Linux)
              Trigger [Apache is not running on {HOSTNAME} ]: cannot create

              Searching in this forum I found that a solution maybe to edit /etc/zabbix/zabbix_agentd.conf and add a user-defined monitored parameter, but, if so, I can't find the right syntax...

              Comment

              Working...