Ad Widget

Collapse

Processes of interpreters

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • flycat
    Member
    • May 2007
    • 30

    #1

    Processes of interpreters

    How it is possible monitorit quantity of the processes started on various interpreters, for example
    Code:
    usr/local/bin/ruby /usr/local/bin/mongrel_rails start -d -e production -p 8500 -a 212.69.109.119 -l /www/projects/announce_1/log -P /www/projects/announce_1/log/mongrel_cluster.8500.pid --user announce-www --group www
    Or quantity of identical processes with different parameters?
    Now a can monitor only `ruby' processes, not `mongrel_rails' (or other)
    Is it internal grep analog in zabbix?
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    proc.num[ruby,,,mongrel_cluster]

    The third parameter filters processes by command line parameter. See ZABBIX Manual for more details.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • flycat
      Member
      • May 2007
      • 30

      #3
      Thanx a lot!

      Comment

      • flycat
        Member
        • May 2007
        • 30

        #4
        WTH!
        We explore Zabbix don't check ruby processes. Perhaps, Zabbix use proc filesystem? But on kernels 2.6.x in SLED9,10 found:
        Code:
        cat /proc/9456/cmdline
        /usr/local/bin/ruby/usr/local/bin/mongrel_railsstart-d-eproduction-p8500-a212.69.109.119-l/www/projects/announce_1/log-P/www/projects/announce_1/log/mongrel_cluster.8500.pid--userannounce-www--groupwww
        i.e. cmdline file do not contain spaces between parameters and Zabbix don't cut command line parameters. This bug (?) found on java, python and ruby applications.

        Comment

        • Alexei
          Founder, CEO
          Zabbix Certified Trainer
          Zabbix Certified SpecialistZabbix Certified Professional
          • Sep 2004
          • 5654

          #5
          This is fixed in pre 1.4.1.
          Alexei Vladishev
          Creator of Zabbix, Product manager
          New York | Tokyo | Riga
          My Twitter

          Comment

          • flycat
            Member
            • May 2007
            • 30

            #6
            Originally posted by Alexei
            proc.num[ruby,,,mongrel_cluster]

            The third parameter filters processes by command line parameter. See ZABBIX Manual for more details.
            1. I study ZABBIX Manual (v.1.4 rev 9):
            proc.num[<name><,user><,state>]
            2. Shell script running by bash don't monitoring with proc.num[bash,,,script] Zabbix 1.4.2

            Comment

            • Alexei
              Founder, CEO
              Zabbix Certified Trainer
              Zabbix Certified SpecialistZabbix Certified Professional
              • Sep 2004
              • 5654

              #7
              The manual does contain decription of proc.num[<name><,user><,state><,cmdline>].
              Alexei Vladishev
              Creator of Zabbix, Product manager
              New York | Tokyo | Riga
              My Twitter

              Comment

              • flycat
                Member
                • May 2007
                • 30

                #8
                Originally posted by Alexei
                The manual does contain decription of proc.num[<name><,user><,state><,cmdline>].
                Yes, I got it! Thank you! And what about bash script?

                Comment

                Working...