Ad Widget

Collapse

Zabbix and IIS pool monitoring

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • emailua
    Junior Member
    • Jan 2012
    • 9

    #1

    Zabbix and IIS pool monitoring

    Hello Zabbix guru,
    Could you please give some advices about subj.
    I need to monitor multiple distributed IIS worker processes and their mem\cpu\disk usage.
    As I know IIS command appcmd list wp return all runnig workers with their current PID's.
    How do you think what is the best way to organize full monitoring of all IIS workers?
  • emailua
    Junior Member
    • Jan 2012
    • 9

    #2
    Originally posted by emailua
    Hello Zabbix guru,
    Could you please give some advices about subj.
    I need to monitor multiple distributed IIS worker processes and their mem\cpu\disk usage.
    As I know IIS command appcmd list wp return all runnig workers with their current PID's.
    How do you think what is the best way to organize full monitoring of all IIS workers?
    Up.
    As I understand I need to use external script with zabbix_sender which allow to send multiple values to zabbix trapper.

    Maybe somebody already solved such task?

    Comment

    • eskytthe
      Senior Member
      Zabbix Certified Specialist
      • May 2011
      • 363

      #3
      You may also use the build-in perf_conter funtion:
      http://www.zabbix.com/documentation/...fic_parameters
      or
      Userparameters in local agent config file.
      Br
      Erik

      Comment

      • emailua
        Junior Member
        • Jan 2012
        • 9

        #4
        Originally posted by eskytthe
        You may also use the build-in perf_conter funtion:
        http://www.zabbix.com/documentation/...fic_parameters
        or
        Userparameters in local agent config file.
        Br
        Erik
        Ok, but as I know each IIS process have the same name - w3wp.exe
        Command "appcmd list wp" show all workers with their pid's.
        So how I can get cpu and mem usage for specified worker?
        Does such perf counter (PID CPU usage, mem PID usage) exist?

        Comment

        • emailua
          Junior Member
          • Jan 2012
          • 9

          #5
          Originally posted by emailua
          Ok, but as I know each IIS process have the same name - w3wp.exe
          Command "appcmd list wp" show all workers with their pid's.
          So how I can get cpu and mem usage for specified worker?
          Does such perf counter (PID CPU usage, mem PID usage) exist?
          Image below show what exactly i mean

          Comment

          • eskytthe
            Senior Member
            Zabbix Certified Specialist
            • May 2011
            • 363

            #6
            I can only advise you how to send/poll the information to/from zabbix server.

            Re. perfconter you have to check that with your perfmonitor on your IIS hosts.

            If that do not give you enough info, you have to get it from commands or homemade scripts.
            You can then transfere that infomation to the zabbix server with userparameters (most simple solution) or zabbix_send.
            Br
            Erik

            Comment

            • emailua
              Junior Member
              • Jan 2012
              • 9

              #7
              Originally posted by eskytthe
              I can only advise you how to send/poll the information to/from zabbix server.

              Re. perfconter you have to check that with your perfmonitor on your IIS hosts.

              If that do not give you enough info, you have to get it from commands or homemade scripts.
              You can then transfere that infomation to the zabbix server with userparameters (most simple solution) or zabbix_send.
              Br
              Erik
              Tnx for the info.
              I will post complete solution when I find It.
              As i see a lot of questions about IIS\distributed IIS workers monitoring posted around the web. And no one is fully answered
              Update:
              As I anderstand there is no simple way to get IIS workers counters?
              At this moment Zabbix Agent does not support WMI, this functionality planned:

              And also - no information about x64 support.
              When such support will be released we can got a lot of information without problems.
              I think at present moment such problem can be solved by custom external script - powershell + WMI (Win32_PerfFormattedData_PerfProc_Process) and than processing output data to zabbix server with zabbix sender.

              Please correct me if i'm wrong - my experience with zabbix is about one week.
              Last edited by emailua; 02-02-2012, 15:41.

              Comment

              • eskytthe
                Senior Member
                Zabbix Certified Specialist
                • May 2011
                • 363

                #8
                Btw - you may check Cacti og even Nagios forums for good scripts. I use to steal from there if I cannot find something usefull here

                Comment

                • emailua
                  Junior Member
                  • Jan 2012
                  • 9

                  #9
                  Originally posted by eskytthe
                  Btw - you may check Cacti og even Nagios forums for good scripts. I use to steal from there if I cannot find something usefull here
                  Tnx a lot!
                  I think it's a very good idea
                  Will try to find something.

                  Comment

                  • emailua
                    Junior Member
                    • Jan 2012
                    • 9

                    #10
                    And one more assumption:


                    User parameter + wmic.

                    Comment

                    • emailua
                      Junior Member
                      • Jan 2012
                      • 9

                      #11
                      Update -
                      I've found a solution to get perf counters from specific IIS workers.
                      There is a special WMI class - Win32_PerfFormattedData_WASW3WPCounterProvider_WAS W3WP
                      it's better then just
                      Win32_PerfFormattedData_PerfProc_Process

                      Comment

                      • rmsys
                        Junior Member
                        • Jul 2013
                        • 13

                        #12
                        You can complete this monitoring IIS?

                        I'm going through the same problem and so far nothing satisfactory.

                        I'm trying to use the new Zabbix 2.1.6 ALPHA, but so far without much success.

                        I accept suggestions.

                        Comment

                        • eskytthe
                          Senior Member
                          Zabbix Certified Specialist
                          • May 2011
                          • 363

                          #13
                          I ended up using this solution:
                          Zabbix IIS 7 Worker Process Template. Contribute to vavere/zabbix-w3wp development by creating an account on GitHub.

                          Works fine on zabbix 2.0.5.
                          BR
                          Erik

                          Comment

                          • cr@sh
                            Junior Member
                            • Nov 2013
                            • 15

                            #14
                            Hello all,
                            does anyone solved this kind of monitoring problems?
                            I should monitor on some IIS 6 servers the application pools in order to know the performances and the restart of each one (getting the allert by email with the application pool name that having trouble).

                            I have a Zabbix 2.2.2 with client agent Zabbix 2.2.0 (revision 40147)...could somebody help me to achieve this goal?

                            I used the solution mentioned above (hips://github.com/vavere/zabbix-w3wp) and it's work fine but I'm not able to set the trigger by email every time an application pool reboot with the details of the rebooted application pool...

                            Many thanks in advance
                            Dario
                            Last edited by cr@sh; 26-02-2014, 16:48.

                            Comment

                            • rcaballero
                              Junior Member
                              • Aug 2015
                              • 3

                              #15
                              Originally posted by emailua
                              Update -
                              I've found a solution to get perf counters from specific IIS workers.
                              There is a special WMI class - Win32_PerfFormattedData_WASW3WPCounterProvider_WAS W3WP
                              it's better then just
                              Win32_PerfFormattedData_PerfProc_Process

                              Hi emailua,

                              I know this post is quite old, I hope you can see my comment and be able to share the actual solution that you used. I am new with Zabbix and with very little programming skills.

                              Comment

                              Working...