Ad Widget

Collapse

Host inventory as it should be (cpuz integration)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mmarkwitzz
    Senior Member
    • Jan 2011
    • 106

    #31
    Originally posted by Jason
    I've got this script working fine on Windows 2008. On Windows 2003 servers, I'm getting no data returned for hardware/software or oop.

    WMI is installed. Anything else I need to check? I'm not getting any log files generated in the zabbix folder.

    Jason
    For troubleshooting try running on the host:
    cscript zabbix_inv_inventory.vbs $ OOP

    This should get you started troubleshooting.

    Comment

    • Tracs
      Junior Member
      • Oct 2012
      • 9

      #32
      New Error

      OK that seems to have made the script go further now i am getting

      zabbix_inv_inventory.vbs(1463, 3) SWbemObjectSet: Invalid class

      Thoughts?

      I think we are getting closer

      Comment

      • Tracs
        Junior Member
        • Oct 2012
        • 9

        #33
        Script Works... Manually

        OK i have the script working now, i get the file as I am suppose to if i run it manually. It will not run through the agent tho. i see nothing at all in the log files or in zabbix itself..

        Comment

        • tchjts1
          Senior Member
          • May 2008
          • 1605

          #34
          Originally posted by Tracs
          OK i have the script working now, i get the file as I am suppose to if i run it manually. It will not run through the agent tho. i see nothing at all in the log files or in zabbix itself..
          Did you cron it?

          Comment

          • Tracs
            Junior Member
            • Oct 2012
            • 9

            #35
            ?

            I didn't see anything about a cron, what do i need to setup? What commands etc..

            Comment

            • tchjts1
              Senior Member
              • May 2008
              • 1605

              #36
              Originally posted by Tracs
              I didn't see anything about a cron, what do i need to setup? What commands etc..
              My mistake. I was thinking of his other post regarding graphing out Windows processes. Sorry.

              Comment

              • Jason
                Senior Member
                • Nov 2007
                • 430

                #37
                Originally posted by mmarkwitzz
                For troubleshooting try running on the host:
                cscript zabbix_inv_inventory.vbs $ OOP

                This should get you started troubleshooting.
                This works and produces the info when run from the command line (I see a .saved file appear and that then comes into zabbix) but the script is never run by the zabbix agent it seems...

                Comment

                • Tracs
                  Junior Member
                  • Oct 2012
                  • 9

                  #38
                  Already tried that

                  I have ran the script from the command line already, and i get all the information, however the script will not run automatically. I am getting population into zabbix now but only whern i run it manually.

                  Comment

                  • jrcorassa
                    Junior Member
                    Zabbix Certified Specialist
                    • Feb 2011
                    • 12

                    #39
                    2008 Server Inventory

                    Hello,

                    I have a problem. have attached two images. all server 2008 the inventory is incomplete fields motherboard. In 2003, the inventory lists servers without problems.

                    Can someone help?

                    Junior
                    Attached Files

                    Comment

                    • mmarkwitzz
                      Senior Member
                      • Jan 2011
                      • 106

                      #40
                      Originally posted by jrcorassa
                      Hello,

                      I have a problem. have attached two images. all server 2008 the inventory is incomplete fields motherboard. In 2003, the inventory lists servers without problems.

                      Can someone help?

                      Junior
                      One possibility is that CPUz is not compatible with your drivers or hardware or that the driver simply does not make that data available. 2008 has different drivers than 2003 so this can happen even with the same hw.
                      The other posiblity is that the script fails to parse the file that cpuz generates.

                      Run cpuz manually (the cli version) and examine the output. If you can find more info than zabbix displays, than it's an issue with the parser. I may be able to modify the script if you post the cpuz output on the forum.

                      Comment

                      • jrcorassa
                        Junior Member
                        Zabbix Certified Specialist
                        • Feb 2011
                        • 12

                        #41
                        Thanks for the reply,
                        CPUZ performed in 2003 and 2008 server. Tabs show same content. Attached is output as requested. and has analyzed the output data that are not shown in zabbix. Looking for ProLiant ML350 G6 in txt file is possible to visualize the data said. What is possible to do?
                        Attached Files

                        Comment

                        • mmarkwitzz
                          Senior Member
                          • Jan 2011
                          • 106

                          #42
                          Originally posted by jrcorassa
                          Thanks for the reply,
                          CPUZ performed in 2003 and 2008 server. Tabs show same content. Attached is output as requested. and has analyzed the output data that are not shown in zabbix. Looking for ProLiant ML350 G6 in txt file is possible to visualize the data said. What is possible to do?
                          Ok, I was wrong.
                          The script collects some data from CPUz, some from WMI. The motherboard is from WMI.

                          The thing with WMI is that it asks the driver for these details. And some manufacturers are so lazy they do not implement the functions WMI need. In this case, HP chose to return nothing when WMI asked about the motherboard (and many other). In short, there is nothing we can do to find the motherboard model, at least not the easy way.

                          In case I didn't mention, I left the company a while ago and have not worked with zabbix in over half a year, so I dont have an environment to test stuff anymore.

                          Comment

                          • Anth0ny
                            Member
                            • Nov 2009
                            • 85

                            #43
                            wow!
                            really like it!

                            voted for change.

                            Comment

                            • omidta
                              Junior Member
                              • Jan 2013
                              • 3

                              #44
                              Originally posted by mmarkwitzz
                              Ok, I was wrong.
                              The script collects some data from CPUz, some from WMI. The motherboard is from WMI.

                              The thing with WMI is that it asks the driver for these details. And some manufacturers are so lazy they do not implement the functions WMI need. In this case, HP chose to return nothing when WMI asked about the motherboard (and many other). In short, there is nothing we can do to find the motherboard model, at least not the easy way.

                              In case I didn't mention, I left the company a while ago and have not worked with zabbix in over half a year, so I dont have an environment to test stuff anymore.
                              Your solution for host inventory is amazing but for hp server it doesn't work well. For example HP DL380 G7 has 2 CPU and per each has 1 DIMM board. Unfortunately your script just find memory on once and also it can't find out server's model .Why you don't use WBEM as you did in https://www.zabbix.com/forum/showthread.php?t=27057
                              I really want do that by myself but I don't know anything about VBS
                              Last edited by omidta; 15-02-2013, 17:38.

                              Comment

                              • jvazquez
                                Junior Member
                                • Feb 2013
                                • 1

                                #45
                                Is not working for me Noobie)

                                Hi everyone,
                                First of all, I'm new on this of zabbix and there a lot of things that still gets me confused, so please easy with me . I try the steps and I have it on the frontend everything as it should. And on the host, I run the script manually and it creates the .saved file with no problems. But, I dont receive anything on the frontend, not even on the Host configuration or the Latest data.

                                Where I think there might be a problem is on the conf file of the agent. What setting should I set and how to make it an active agent? (If thats the way to say it)

                                Thanks in advance for any help...
                                Joel

                                Comment

                                Working...