Ad Widget

Collapse

Host inventory as it should be (cpuz integration)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jrcorassa
    Junior Member
    Zabbix Certified Specialist
    • Feb 2011
    • 12

    #16
    Hello I am not getting solution for viewing (inv hardware / software and network) file attachment.
    The files and class.ctag.php forms.inc.php are posted by the same "tchjts1"


    What could be wrong?

    thank you

    Junior
    Last edited by jrcorassa; 18-01-2013, 16:14.

    Comment

    • mmarkwitzz
      Senior Member
      • Jan 2011
      • 106

      #17
      Originally posted by jrcorassa
      Hello I am not getting solution for viewing (inv hardware / software and network) file attachment.
      The files and class.ctag.php forms.inc.php are posted by the same "tchjts1"
      What is your problem exactly? I see the data is populated in the inventory fields so there is only the problem of displaying it (via php modifications). Is it not properly interpreted as html tables? Does it not show at all when looking at it from Inventory->Hosts screen?

      Comment

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

        #18
        My problem is I can not resolve the display of data as you see in the attached file. I left the configuration of php files the same as that shown only the data you see is not in tables. There is another setting?

        Comment

        • mmarkwitzz
          Senior Member
          • Jan 2011
          • 106

          #19
          Originally posted by jrcorassa
          My problem is I can not resolve the display of data as you see in the attached file. I left the configuration of php files the same as that shown only the data you see is not in tables. There is another setting?
          No, there is no other setting. Is the data displayed as plain text or not displayed at all? Try restoring the original php files and see if you get plain text in the inventory.

          Just a thought, but the screenshots you took were from the configuration of inventory. To display the inventory you need to access Inventory->Hosts.

          Comment

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

            #20
            Attached is the problem. I can not resolve the display of tabular data like posted by another user. In my zabbix appears as attached.

            I need to adjust to solve?
            Last edited by jrcorassa; 18-01-2013, 16:14.

            Comment

            • mmarkwitzz
              Senior Member
              • Jan 2011
              • 106

              #21
              As I said before, you're looking in the wrong screen!! That is the configuration screen, the data is in an edit control, it is not interpreted as HTML, nor should it.
              Go to Inventory->Hosts

              Edit: Also, don't use the "black and blue" theme because table text color will be the same as foreground, so the tables appear to be empty. Switch to original theme.

              Comment

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

                #22
                Hello, I understand now and is ok.

                thank you and sorry for mistake



                junior
                Last edited by jrcorassa; 06-07-2012, 01:10.

                Comment

                • guibrazlima
                  Junior Member
                  • Jul 2012
                  • 2

                  #23
                  Hello,

                  Im using zabbix 2.0.1 and i can not find the php files to modify!
                  In "/var/www" i dont have the html folder.

                  So what files i need to modify to have the correct inventory view?

                  thanks

                  Comment

                  • guibrazlima
                    Junior Member
                    • Jul 2012
                    • 2

                    #24
                    Originally posted by guibrazlima
                    Hello,

                    Im using zabbix 2.0.1 and i can not find the php files to modify!
                    In "/var/www" i dont have the html folder.

                    So what files i need to modify to have the correct inventory view?

                    thanks
                    I figured out!!!

                    The file class.ctag.php is in directory "/var/www/include/classes".
                    The file forms.inc.php is in directory "/var/www/include".

                    Thanks anyway.

                    Comment

                    • mmarkwitzz
                      Senior Member
                      • Jan 2011
                      • 106

                      #25
                      The actual path to zabbix frontend may differ depending on your particular configuration. On centos (redhat also i believe) with apache installed from repo, zabbix would go by default in /var/www/html/zabbix

                      Just search for the files in the location where you copied the frontend files when you installed zabbix

                      Comment

                      • irvined
                        Junior Member
                        Zabbix Certified Specialist
                        • Aug 2010
                        • 16

                        #26
                        Hi,

                        Thanks for this. We have just been investigating this on a couple of non production servers and now have it working fine.

                        Interestingly it won't work for us if we set the items to be active. I made sure that active checks were enabled on the client server but could not get any data back. Changed them to normal agents and things are working. Now this may be something else we are not doing correctly but I'm not sure what.

                        Thanks again.

                        Regards,

                        Doug

                        Comment

                        • Jason
                          Senior Member
                          • Nov 2007
                          • 430

                          #27
                          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

                          Comment

                          • angelhc
                            Senior Member
                            Zabbix Certified Specialist
                            • Nov 2009
                            • 226

                            #28
                            Thanks a lot for this! It's really cool and works perfect for us!
                            Number of hosts 1600,Number of items +90k,Number of triggers +22k, Number of users +100, New values per second +1270

                            http://zabbixes.wordpress.com/

                            Comment

                            • Tracs
                              Junior Member
                              • Oct 2012
                              • 9

                              #29
                              Script error

                              I am trying to run this on Windows 7 Pro but the script won't execute. When it does i get a script host error, Line 1365 char 3 invalid class. Is there an updates script? I get nothing at all in zabbix inventory.

                              Thanks for your help.

                              Comment

                              • mmarkwitzz
                                Senior Member
                                • Jan 2011
                                • 106

                                #30
                                Originally posted by Tracs
                                I am trying to run this on Windows 7 Pro but the script won't execute. When it does i get a script host error, Line 1365 char 3 invalid class. Is there an updates script? I get nothing at all in zabbix inventory.

                                Thanks for your help.
                                My Bad!
                                The script was not designed for windows 7, just windows 2008.
                                The thing is that I check for windows version 6 and, if true, I assume I'm on windows 2008. And then I try to extract the Roles/Features WMI class, which obviously does not exist on windows 7.

                                Do this for your windows 7 installation:
                                open the script in your favorite editor (I use superedi), go to line 1347, insert a new line add "On Error Resume Next"

                                Code:
                                'GET SERVER ROLES
                                Function GetServerRoles
                                On Error Resume Next
                                
                                	Set colWin = GetObject("winmgmts:").InstancesOf("Win32_OperatingSystem") 
                                	
                                	'GET WINVER
                                ...

                                Comment

                                Working...