Ad Widget

Collapse

Problem with ispconfig & other questions

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gwendalAdemis
    Junior Member
    • Apr 2011
    • 5

    #1

    Problem with ispconfig & other questions

    Hello,
    I use zabbix in a while but I am still a novice in its customization.

    I installed the agent on ISPConfig server is a linux with panel management on that server processes are not seen with the command proc.num template linux, then they are there with ps aux an idea?

    I also tried to soften the trigger last through SMTP (600) instead of last (0), what I want is that the trigger will fire only if the service is unavailable for more than 10 minutes, is this correct?

    (sorry for the english made by google, i'm french ;-) )
  • Rudd
    Member
    • Mar 2011
    • 69

    #2
    Can you share the actual item configuration and ps output?

    Nice job with google translate, hope the reverse works just as well

    Comment

    • gwendalAdemis
      Junior Member
      • Apr 2011
      • 5

      #3
      thanks

      the item is the default of template linux :

      proc.num[apache2]

      and the the "ps aux | grep apache2" ont the ispconfig server :

      Code:
      ks311624:~# ps aux | grep apache2
      www-data  2476  0.0  0.0  36548  9752 ?        S    10:05   0:00 /usr/sbin/apache2 -k start
      www-data  2555  0.0  0.0  36532  8820 ?        S    10:06   0:00 /usr/sbin/apache2 -k start
      www-data  2557  1.7  0.0  36652  9244 ?        S    10:06   0:04 /usr/sbin/apache2 -k start
      www-data  2561  0.0  0.0  36592  9112 ?        S    10:06   0:00 /usr/sbin/apache2 -k start
      www-data  2584  0.0  0.0  36556  9576 ?        S    10:06   0:00 /usr/sbin/apache2 -k start
      www-data  2585  0.0  0.0  36532  8996 ?        S    10:06   0:00 /usr/sbin/apache2 -k start
      www-data  2586  0.3  0.0  37040  9960 ?        S    10:06   0:00 /usr/sbin/apache2 -k start
      www-data  2587  0.0  0.0  37184  9780 ?        S    10:06   0:00 /usr/sbin/apache2 -k start
      www-data  2591  0.0  0.1  42132 15840 ?        S    10:06   0:00 /usr/sbin/apache2 -k start
      www-data  2737  0.0  0.1  44408 19116 ?        S    10:07   0:00 /usr/sbin/apache2 -k start
      www-data  2887  0.0  0.0  36556  9032 ?        S    10:08   0:00 /usr/sbin/apache2 -k start
      www-data  2889  0.0  0.1  43072 16908 ?        S    10:08   0:00 /usr/sbin/apache2 -k start
      www-data  2896  0.0  0.0  36508  9156 ?        S    10:08   0:00 /usr/sbin/apache2 -k start
      www-data  2910  0.0  0.0      0     0 ?        Z    10:08   0:00 [apache2] <defunct>
      www-data  2912  0.0  0.0  36584  9040 ?        S    10:08   0:00 /usr/sbin/apache2 -k start
      www-data  2920  0.0  0.0  36576  9148 ?        S    10:08   0:00 /usr/sbin/apache2 -k start
      www-data  2983  0.0  0.0  36556  8784 ?        S    10:09   0:00 /usr/sbin/apache2 -k start
      www-data  3022  0.0  0.0  36404  8832 ?        S    10:09   0:00 /usr/sbin/apache2 -k start
      www-data  3025  0.0  0.0  36564  8788 ?        S    10:09   0:00 /usr/sbin/apache2 -k start
      www-data  3031  0.0  0.0  36024  8328 ?        S    10:09   0:00 /usr/sbin/apache2 -k start
      www-data  3032  0.0  0.0  36164  8568 ?        S    10:09   0:00 /usr/sbin/apache2 -k start
      www-data  3144  0.0  0.0  36156  8632 ?        S    10:10   0:00 /usr/sbin/apache2 -k start
      www-data  3145  0.0  0.0  36024  7820 ?        S    10:10   0:00 /usr/sbin/apache2 -k start
      www-data  3146  0.0  0.0  36024  7820 ?        S    10:10   0:00 /usr/sbin/apache2 -k start
      root      3210  0.0  0.0   3664   624 pts/0    S+   10:10   0:00 grep apache2
      www-data 18610  0.0  0.0  26616  7460 ?        S    Apr03   0:03 /usr/sbin/apache2 -k start
      root     23427  0.0  0.1  36024 13980 ?        Ss   Mar25   0:34 /usr/sbin/apache2 -k start
      so, i don't understand, why the trigger :
      {Template_Linux:net.tcp.service[smtp].last(0)}=0

      i modify to :
      {Template_Linux:net.tcp.service[smtp].last(600)}=0

      that is the good parameter to zabbix for the trigger is fire 10 mn after service smtp is unreachable ?

      Comment

      • Rudd
        Member
        • Mar 2011
        • 69

        #4
        That should work I think. Have you looked at the server and agent log files to see if there are any hints as to why why it fails?

        You could try this although I hazard a guess it will give the same result.

        proc.num[apache2,www-data,,/usr/sbin/apache2 -k start]

        Comment

        • gwendalAdemis
          Junior Member
          • Apr 2011
          • 5

          #5
          curiously my /var/log/zabbix-agent/zabbix-agentd.log is empty ???

          effectively the suggest modify has not concluant, nothing change

          Comment

          • Rudd
            Member
            • Mar 2011
            • 69

            #6
            You can check the "LogFile" setting in zabbix_agentd.conf, if undefined the zabbix agent should use syslog.

            Did you find anything in the server logs related to the check on that host?

            Comment

            • gwendalAdemis
              Junior Member
              • Apr 2011
              • 5

              #7
              Originally posted by Rudd
              You can check the "LogFile" setting in zabbix_agentd.conf, if undefined the zabbix agent should use syslog.

              Did you find anything in the server logs related to the check on that host?
              yes & the log is in /var/lod/zabb...

              but the file exist, but is empty

              when i type, "tail -f /var/log/..." i have nothing to read.

              however it have log "zip" but i have'not success to open this

              an idea ?

              Comment

              • Rudd
                Member
                • Mar 2011
                • 69

                #8
                Interesting. Zabbix will rotate the logfile if that is defined in the configuration. But it won't compress it.

                Do you have any checks for that host that do work?

                Comment

                • gwendalAdemis
                  Junior Member
                  • Apr 2011
                  • 5

                  #9
                  with ls /var/log/zabbix-agent

                  Code:
                  zabbix_agentd.log       zabbix_agentd.log.3.gz  zabbix_agentd.log.6.gz
                  zabbix_agentd.log.1.gz  zabbix_agentd.log.4.gz  zabbix_agentd.log.7.gz
                  zabbix_agentd.log.2.gz  zabbix_agentd.log.5.gz
                  with tail -f de zabbix_agentd.log = nothing

                  in agentd.conf :
                  Code:
                  LogFile=/var/log/zabbix-agent/zabbix_agentd.log
                  this server is monitoring for all "default template linux", but i have desactivate process because my problem ;-) and so many "services" triggers because when we backup this server, zabbix do too many alert. (smtp, ftp and imap is down)

                  my agentd.conf is in folder : /etc/zabbix

                  is it correct ?

                  Comment

                  • qix
                    Senior Member
                    Zabbix Certified SpecialistZabbix Certified Professional
                    • Oct 2006
                    • 423

                    #10
                    Please note that last(600) is not valid, the last function does not accept time values.

                    Please use min(600) or max(600) according to your needs.
                    With kind regards,

                    Raymond

                    Comment

                    • Rudd
                      Member
                      • Mar 2011
                      • 69

                      #11
                      lol,.. did I miss that question :# Sorry gwendalAdemis I thought you were asking about the check, not the trigger. Thanks for jumping in Raymond.

                      Comment

                      Working...