Ad Widget

Collapse

Host processes monitoring-graphs LLD

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • extress
    Member
    • Jul 2012
    • 32

    #16
    If I don't change a single line on the configuration file, nothing happen when I restart the agent, I know that it's not directly related to my problem.

    Nothing is disabled (have a look at my latest edit), I have a lot of data on "latest data" except for the process "mmc.exe" I'll wait to see if they are updated (each 10 minutes right ?)

    Edit : ok, since I restarted the service, everything seems okay ! Very good job ! Once again, thanks again for this template and your continuous support. I'm gonna try your second contribution with disk space
    Last edited by extress; 03-07-2012, 14:43.

    Comment

    • mmarkwitzz
      Senior Member
      • Jan 2011
      • 106

      #17
      Glad to hear its working ok!
      If the other contribution you're talking about is "Automatic graph of all LLD items per host" than you need to make your own template, discovery rules and prototype items.
      Good luck! Make a post if you need any help

      Comment

      • extress
        Member
        • Jul 2012
        • 32

        #18
        I'm trying to get it to work on windows 7 x64 but with noluck :

        the command :

        Code:
        cscript zabbix_win_process.vbs read svchost.exe
        doesn't return anything (even with an elevated prompt)

        while the command :

        Code:
        cscript zabbix_win_system_discovery.vbs processes
        return a lot of JSON things

        Comment

        • mmarkwitzz
          Senior Member
          • Jan 2011
          • 106

          #19
          @extress

          As I stated in a previous post, calling the script with "commit" parameter calculates the values for _all_ items and saves them to a file. Calling the script with "read" and all other parameters simply attempts to read a value from the file.

          Check if the zabbix_win_process.saved file exists. If it doesnt execute "cscript zabbix_win_process.vbs commit svchost.exe". The file will get created and you should return a valid value when you run the command with "read".
          Do you have any discovered items in your host, in zabbix frontend? If not, it's probably a problem with your configuration for active checks.

          Comment

          • extress
            Member
            • Jul 2012
            • 32

            #20
            okay my bad, did not understood that "read" argument should be used only when you already have the "zabbix_win_process.saved" file.

            So, manualy running the command :

            Code:
            cscript zabbix_win_process.vbs commit svchost.exe
            work, the file is created and populated with the svchost elements.

            I have nothing in the frontend, and the .pl script are not gathering anything, i'll check my active parameters but it's weird since this I use almost the same config file.

            Edit :

            So I've removed my host, added it back, now I can get the process list from the .pl script, but the .saved file is still not created on the windows side.
            Last edited by extress; 05-07-2012, 15:17.

            Comment

            • mmarkwitzz
              Senior Member
              • Jan 2011
              • 106

              #21
              Restart the agent to force refresh all items. Then check the items and triggers status in frontend. Is there an error or just "trigger just added. no value received" ?

              Comment

              • ehermouet
                Member
                • May 2011
                • 50

                #22
                hi

                i have the same bug, i have the saved file on server but no graph on frontend.. :'(

                i see that you are talking about discover rule but in the template or host i have no discovery rules about this ? is it normal ?

                when i import my template it's not import all content. i have just template without item without dscovery rule but on xml file i see all.
                Last edited by ehermouet; 06-07-2012, 15:15.

                Comment

                • mmarkwitzz
                  Senior Member
                  • Jan 2011
                  • 106

                  #23
                  Zabbix 2 has some issues with import/export on php 5.1.6. My export is made with zabbix 2.0.1 and php 5.3. Try updating your installation, download the zip again and try import again. It may also work with php 5.2.x.

                  You should have a discovery rule with item prototypes and trigger prototypes. No normal items. When the discovery rule is executed, the agent sends the json and discovered items are created in your host for each process.
                  The pl script just creates a graph with the discovered items. No doscovery = no items = no graph.

                  Comment

                  • ehermouet
                    Member
                    • May 2011
                    • 50

                    #24
                    HI,

                    tks for your reply

                    i have php 5.3.2 i don't found where it's coming :s
                    it's not work with all template type... host or others...

                    Comment

                    • ehermouet
                      Member
                      • May 2011
                      • 50

                      #25
                      Can you take screensho from item and discovery tool. like this i can do it manualy ?
                      tks advance

                      Comment

                      • mmarkwitzz
                        Senior Member
                        • Jan 2011
                        • 106

                        #26
                        Originally posted by ehermouet
                        HI,

                        tks for your reply

                        i have php 5.3.2 i don't found where it's coming :s
                        it's not work with all template type... host or others...
                        Ok, i just checked and the import function is broken. I thought updating to php5.3 solved the problem, instead it only made it worse. Now discovery rules are not imported AND there is no error message.

                        I have to go debugging phps so this might take a while, I will post back with a workaround if I find one.

                        Comment

                        • abiboba
                          Junior Member
                          • Jun 2012
                          • 4

                          #27
                          Template

                          Hello,

                          i have exactelly the same problem. Everything is working fine, since i started manually the vbs-scripts or the perl-scripts.
                          But the imported template file is empty und so no discovery rules or items are set.

                          The zabbix server 2.0.1 is running on debian squeeze 6.0.5 with php 5.3.3.

                          greets
                          abiboba

                          Comment

                          • mmarkwitzz
                            Senior Member
                            • Jan 2011
                            • 106

                            #28
                            I can confirm that importing templates with Discovery Rules is broken in zabbix 2.0.1 and will be fixed in zabbix 2.0.2.
                            A partial fix for this, until zabbix 2.0.2 is released, can be achieved by SSH to your zabbix server and making the following changes to these files:
                            • Edit /var/www/html/include/classes/import/formatters/C20ImportFormatter.php
                            • Search for getDiscoveryRules function
                            • Modify the line:
                            • if (!empty[$host['discovery_rules'])) {
                            • with:
                            • if (!empty[$template['discovery_rules'])) {


                            This will fix importing Discovery rules, item prototypes and trigger prototypes. Graph prototypes importing will still be broken, as they will get imported directly into the template, not in the discovery rules.

                            Until zabbix 2.0.2 is released, this is the best I can do for you.

                            Comment

                            • tchjts1
                              Senior Member
                              • May 2008
                              • 1605

                              #29
                              Originally posted by mmarkwitzz

                              Until zabbix 2.0.2 is released, this is the best I can do for you.
                              As I mentioned before, you are providing some long-requested functionality in Zabbix. All your work and support is much appreciated!

                              (oooh, and I spent post #500 on it)

                              Jeff

                              Comment

                              • MrSol
                                Junior Member
                                • Jul 2012
                                • 7

                                #30
                                Works on Zabbix 2.0.2rc1

                                This is awesome addon! Works on 2.0.2rc1. *.pl scripts took me couple days of TSing though. The issues was in WIN format of files, if they aren't converted properly to UNIX unpredicted results may happen. Be aware. Thanks.

                                Comment

                                Working...