patjking thx. it's work.
Ad Widget
Collapse
SNMP Builder for Zabbix
Collapse
X
-
-
JS Error
Hello all,
am a nooby at zabbix and i try to setup some devices for testing..
i have some mib files and i want to use the snmp_builder its a nice tool.
@Sire
thx for the patch file
I have just downloaded the source files from zabbix (clean installation zabbix 2.0.1)
but i get JS error (browser console) after i choose a mib in the dropdownmenu of the snmpbuilder, AND I can't see the tree on the left side..

Code:[13:01:13.365] DynTable is not defined @ http://localhost/zabbix/snmp_builder.php:83 [13:01:13.446] j("#oidtree").jstree is not a function @ http://localhost/zabbix/snmp_builder.php:72
I do not undertand how the CMS of zabbix works but the DynTable.js should be already included...
looking an the Code line of snmp_builder.php:83
how can i fix this ?Code:// ]]></script><script type="text/javascript">// <![CDATA[ var oidview = new DynTable('oidview',{'headers' : ['OID Name','Type Of Information','Value']}); var itemlist = new DynTable('itemlist',{'headers' : ['Description','Type Of Information','Data type','Units','Custom multiplier','Delta'], 'observer' : {'tr': onClickItem}}); // ]]
reg. zabbixxLast edited by zabbixx; 27-07-2012, 16:18.Comment
-
Hello patjking.
yes i change the owner of the zabbix path to www-data
DynTable.js is already in zabbix root dir, in zabbix/js dir, and in zabbix/snmp_builder dir...Code:admin@linuxBox:/usr/share/zabbix$ ls -als ./ insgesamt 1800 4 drwxr-xr-x 12 www-data root 4096 Jul 31 14:16 . 12 drwxr-xr-x 296 root root 12288 Jul 26 13:23 .. 8 -rwxr-xr-x 1 www-data root 7344 Jul 25 14:37 acknow.php 20 -rwxr-xr-x 1 www-data root 17373 Jul 25 14:37 actionconf.php 8 -rwxr-xr-x 1 www-data root 5862 Jul 25 14:37 adm.gui.php 4 -rwxr-xr-x 1 www-data root 3434 Jul 25 14:37 adm.housekeeper.php 8 -rwxr-xr-x 1 www-data root 5404 Jul 25 14:37 adm.iconmapping.php 8 -rwxr-xr-x 1 www-data root 5422 Jul 25 14:37 adm.images.php 8 -rwxr-xr-x 1 www-data root 6276 Jul 25 14:37 adm.macros.php . . .
but jsloader.php still does not load the files...
you have allready installed this plugin on zabbix 2.0.2 ))
from wicht directory do you aplay the patch? the patchfile creat this *.js files in the same directory how the patch file it self.
ok i try now the clear installation of this plugin on zabbix 2.0.2 and i hope it works ))Comment
-
hmm ok ))
i pacht after configure....
the patch file was directly in the root directory of the zabbix www.
the patch file creates some *.js. files but the location of this is wrong, a have take a look to the patchfile where the *.js files are listen... from there i got the info where to put the files
this js files will be created by this patch, you have put all this files to the right directionCode:+++ zabbix/jsLoader.php 2012-04-13 11:47:51.000000000 +0400 @@ -30,11 +30,15 @@ // available scripts 'scriptFileName' => 'path relative to js/' $availableJScripts = array( + 'snmp_builder.js' => 'snmp_builder/', + 'DynTable.js' => 'snmp_builder/', 'common.js' => '', 'menu.js' => '', 'prototype.js' => '', 'jquery.js' => 'jquery/', 'jquery-ui.js' => 'jquery/', + 'jquery.cookie.js' => 'jquery/', + 'jquery.jstree.js' => 'jquery/', 'gtlc.js' => '', 'functions.js' => '', 'main.js' => '',
so i create manualy js/snmp_builder/ path and put the to files (DynTable.js and snmp_builder.js) to it.Code:jquery.cookie.js jquery.jstree.js DynTable.js snmp_builder.js
now the tree is visible and i can load the mib. files )))
now i will test it on a device.....
@patjking
did you move this js files to?
can you write down you patch comand (sorry im using normaly windows ;-) )?Comment
-
My install notes
@zabbixx
attached are the notes I use when doing a quick install of a vm with zabbix and snmp builder, I have tried to make them human readable.
Please note this is not a guide these notes are specific to me and my environment.Attached FilesComment
-
SNMPBUILDER display problem
It's been since Monday that snmpbuilder is built into the GUI. Nevertheless, I is not the tree on the left in the GUI and I do not visualize the OIDs in the table in the center. I'm on a version of an OS 1.8.13 Open SUSE 11.4. I have installed net snmp, php-pecl-json but that does not work.
Does anyone by chance know where that could come from?
You did not make any special handling with respect to the tutorial located at http://www.zabbix.com/wiki/howto/mon...p/snmp_builder.Comment
Comment