Network Management Integration Plugin ( v0.3.9a Build 129 )
Moderators: Developers, Moderators
I have this error:
Warning: include_once(/var/www/html/plugins/nmid/config.php) [function.include-once]: failed to open stream: No such file or directory in /var/www/html/plugins/nmid/setup.php on line 129
Warning: include_once() [function.include]: Failed opening '/var/www/html/plugins/nmid/config.php' for inclusion (include_path='.:/usr/share/pear') in /var/www/html/plugins/nmid/setup.php on line 129
But there is no config.php file in directory nmid?
All I have done so far is copy the directories onto the plugin directory and added the plugin line in global.php
Any ideas?
Warning: include_once(/var/www/html/plugins/nmid/config.php) [function.include-once]: failed to open stream: No such file or directory in /var/www/html/plugins/nmid/setup.php on line 129
Warning: include_once() [function.include]: Failed opening '/var/www/html/plugins/nmid/config.php' for inclusion (include_path='.:/usr/share/pear') in /var/www/html/plugins/nmid/setup.php on line 129
But there is no config.php file in directory nmid?
All I have done so far is copy the directories onto the plugin directory and added the plugin line in global.php
Any ideas?
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
New version uploaded. 0.3.8i includes an import functionality. The import file needs to look like the following:
Empty fields will be filled with the comment.
Make sure to set the upload directory in the settings ! ( e.g. /tmp/ )
Code: Select all
127.0.0.5;description;;
127.0.0.6;;client;
127.0.0.7;;;notes
127.0.0.8;;;
Make sure to set the upload directory in the settings ! ( e.g. /tmp/ )
- Attachments
-
- nmid_phpIP_importForm.jpg (25.85 KiB) Viewed 5822 times
-
- Cacti Guru User
- Posts: 1884
- Joined: Mon Oct 16, 2006 5:57 am
- Location: United Kingdom
- Contact:
Hi - one thing I have noticed with the PHPIP side of things is that if a device is marked as "cacti device", you cannot amend any of the details - they are simply overwritten after the next save.
Can this be changed ?
Also found a bug when clicking "SET DEFAULT" :
DEFAULT IP SETTINGS
DEFAULT EDIT
RANGE 192.168.220
MASK Notice: Undefined variable: mask in C:\wamp\www\Cacti\plugins\nmidPhpip\display.php on line 209 --------------- 255.255.255.255 255.255.255.252 255.255.255.248 255.255.255.240 255.255.255.224 255.255.252.192 255.255.255.128 255.255.255.0 255.255.254.0 255.255.252.0 255.255.248.0 255.255.240.0 255.255.224.0 255.255.192.0 255.255.128.0 255.255.0.0 255.255.0.0 255.252.0.0 255.248.0.0 255.240.0.0 255.224.0.0 255.192.0.0 255.128.0.0 255.0.0.0
DESCRIPTION
CLIENT
CLIENT CONTACT
PHONE
EMAIL
DEVICE TYPE Notice: Undefined variable: deviceType in C:\wamp\www\Cacti\plugins\nmidPhpip\display.php on line 263 --------------- Unassigned Router Switch Access Point RAS Firewall VPN IDS, IDP Application Server Terminal Server Desktop Laptop Desktop Phone Printer NAS Other
DEVICE LOCATION
DEVICE OWNER
DEVICE MANUFACTURER
DEVICE MODEL
DEVICE CUSTOM 1
DEVICE CUSTOM 2
DEVICE CUSTOM 3
NOTES <br />
<b>Notice</b>: Undefined variable: notes in <b>C:\wamp\www\Cacti\plugins\nmidPhpip\display.php</b> on line <b>316</b><br />
Notice: Undefined variable: id in C:\wamp\www\Cacti\plugins\nmidPhpip\display.php on line 320
>
[GO BACK] [SAVE]
Can this be changed ?
Also found a bug when clicking "SET DEFAULT" :
DEFAULT IP SETTINGS
DEFAULT EDIT
RANGE 192.168.220
MASK Notice: Undefined variable: mask in C:\wamp\www\Cacti\plugins\nmidPhpip\display.php on line 209 --------------- 255.255.255.255 255.255.255.252 255.255.255.248 255.255.255.240 255.255.255.224 255.255.252.192 255.255.255.128 255.255.255.0 255.255.254.0 255.255.252.0 255.255.248.0 255.255.240.0 255.255.224.0 255.255.192.0 255.255.128.0 255.255.0.0 255.255.0.0 255.252.0.0 255.248.0.0 255.240.0.0 255.224.0.0 255.192.0.0 255.128.0.0 255.0.0.0
DESCRIPTION
CLIENT
CLIENT CONTACT
PHONE
DEVICE TYPE Notice: Undefined variable: deviceType in C:\wamp\www\Cacti\plugins\nmidPhpip\display.php on line 263 --------------- Unassigned Router Switch Access Point RAS Firewall VPN IDS, IDP Application Server Terminal Server Desktop Laptop Desktop Phone Printer NAS Other
DEVICE LOCATION
DEVICE OWNER
DEVICE MANUFACTURER
DEVICE MODEL
DEVICE CUSTOM 1
DEVICE CUSTOM 2
DEVICE CUSTOM 3
NOTES <br />
<b>Notice</b>: Undefined variable: notes in <b>C:\wamp\www\Cacti\plugins\nmidPhpip\display.php</b> on line <b>316</b><br />
Notice: Undefined variable: id in C:\wamp\www\Cacti\plugins\nmidPhpip\display.php on line 320
>
[GO BACK] [SAVE]
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
-
- Cacti Guru User
- Posts: 1884
- Joined: Mon Oct 16, 2006 5:57 am
- Location: United Kingdom
- Contact:
Thanks. The SET DEFAULT section now appears to work, however, the CACTI DEVICE still shows in CLIENT when previewing the list of used IP Addresses. When you edit a particular device, the CLIENT field is populated correctly.phalek wrote:Ok, I fixed those errors. "Set default" now also overwrites the settings. (except the client field, which still will be 'cacti device')
0.3.8j contains those fixes.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
-
- Cacti Guru User
- Posts: 1884
- Joined: Mon Oct 16, 2006 5:57 am
- Location: United Kingdom
- Contact:
Thanks - I actually wanted to change the "cacti device" part - sorry !phalek wrote:I fixed that issue and also added support to change the displayed fields ( can be changed globally in the nmid settings section )
Unless you wanted to change the "cacti device" thing, too ? I'll need to change the database design a bit for this ...
download/install 0.3.8k for the changes
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Ok, changed that, too
Just keep in mind that phpIP does use the client field to check if the IP is allocated or not, so if you "default set" an ip range with a client, all of these IP addresses become allocated.
the table phpIp_addresses should be updated with a new field "isCactiDevice". Upon first discovery the cacti devices all have "cacti device" in the client field, but you can change this after that.
By the way: The "Discovery" currently only takes place if you view the ip range. So adding a CIDR/PREFIX will not discover the cacti devices ...
0.3.8l also has a fix for the prefix removal, which prevented the re-adding of deleted pre-fixes ...
Just keep in mind that phpIP does use the client field to check if the IP is allocated or not, so if you "default set" an ip range with a client, all of these IP addresses become allocated.
the table phpIp_addresses should be updated with a new field "isCactiDevice". Upon first discovery the cacti devices all have "cacti device" in the client field, but you can change this after that.
By the way: The "Discovery" currently only takes place if you view the ip range. So adding a CIDR/PREFIX will not discover the cacti devices ...
0.3.8l also has a fix for the prefix removal, which prevented the re-adding of deleted pre-fixes ...
-
- Cacti Guru User
- Posts: 1884
- Joined: Mon Oct 16, 2006 5:57 am
- Location: United Kingdom
- Contact:
Thanks - seems ok, apart from an error when saving the device after modifying:phalek wrote:Ok, changed that, too :-)
Just keep in mind that phpIP does use the client field to check if the IP is allocated or not, so if you "default set" an ip range with a client, all of these IP addresses become allocated.
the table phpIp_addresses should be updated with a new field "isCactiDevice". Upon first discovery the cacti devices all have "cacti device" in the client field, but you can change this after that.
By the way: The "Discovery" currently only takes place if you view the ip range. So adding a CIDR/PREFIX will not discover the cacti devices ...
0.3.8l also has a fix for the prefix removal, which prevented the re-adding of deleted pre-fixes ...
Notice: Undefined index: isCactiDevice in C:\wamp\www\Cacti\plugins\nmidPhpip\display.php on line 1376
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Hm, that sounds like the plugin didn't update the table ... argh.
Nevertheless, do the following then. Go to the mysql CLI and look at the phpIP_addresses table for the isCactiDevice field:
if it is not there ( see last line) execute the following:
Edit: Just realized i actually modified the wrong table ... 0.3.8m contains the fix for that ...
Nevertheless, do the following then. Go to the mysql CLI and look at the phpIP_addresses table for the isCactiDevice field:
Code: Select all
describe phpIP_addresses;
+--------------------+---------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+--------------------+---------------+------+-----+---------+----------------+
| id | mediumint(25) | NO | PRI | NULL | auto_increment |
| groupid | mediumint(25) | NO | | 1 | |
| NetID | mediumint(25) | NO | | 0 | |
| ip | varchar(36) | YES | MUL | NULL | |
| mask | varchar(16) | YES | MUL | NULL | |
| gateway | varchar(16) | YES | MUL | NULL | |
| description | varchar(255) | YES | MUL | NULL | |
| client | text | YES | | NULL | |
| clientcontact | text | YES | | NULL | |
| phone | varchar(12) | YES | MUL | NULL | |
| email | varchar(255) | YES | MUL | NULL | |
| deviceType | varchar(255) | NO | MUL | | |
| deviceLocation | varchar(255) | NO | MUL | | |
| deviceOwner | varchar(255) | NO | MUL | | |
| deviceManufacturer | varchar(255) | NO | MUL | | |
| deviceModel | varchar(255) | NO | MUL | | |
| deviceCustom1 | varchar(255) | NO | MUL | | |
| deviceCustom2 | varchar(255) | NO | MUL | | |
| deviceCustom3 | varchar(255) | NO | MUL | | |
| notes | mediumtext | YES | | NULL | |
| isCactiDevice | varchar(2) | NO | | 0 | |
+--------------------+---------------+------+-----+---------+----------------+
21 rows in set (0.00 sec)
Code: Select all
alter table phpIP_addresses add `isCactiDevice` varchar(2) NOT NULL default '0'
I dont understand waht happend with my new install...
Hi everybody,
I have just download nmip pluging and follow the steps to add it to cacti.
I added NMID ADMINISTRATION by adding:
"$plugins[] = 'nmid';" over global.php
I also add lines:
"if (!empty($leaf_id)) {
do_hook_function('tree_after',$host_name.','.get_request_var("leaf_id"));
}" as indicates the manual...
now when i go to SETTINGS on Cacti I can see any TAB called NMID...
I checked permission for admin user (User Management) but there is no "Realm Permissions" for this plugin.
Then I checked my "Plugin Update" and I can find out that I have installed an older version of NMID....
This is the view:
Network Management Inventory Database
Directory: nmid
Version: 0.3.7g
Author: Thomas Urban
Home Page: http://www.urban-software.de
SO, My questions are:
1)WHAT HAPPEND WITH THE VERSION OF THE INSTALLATION?
I HAVE DOWNLOADED:
File: nmid_plugin_0.3.8m.tar.gz
From: this topic
2)WHY I CAN NOT SEE "NMIP" TAB?
3)I HAVE NOT CREATE ANY DATABASE YET, IT IS NOT INDICATED IN THE OFFCIAL MANUAL (NETWORKMANAGEMENTINVENTORYDATABASE
APLUGINFORCACTI,Thomas Urban,NMID Version 0.3.8,Document Version 1.0). IT IS MANDATORY?
THANKS in advance!
my server:
I have just download nmip pluging and follow the steps to add it to cacti.
I added NMID ADMINISTRATION by adding:
"$plugins[] = 'nmid';" over global.php
I also add lines:
"if (!empty($leaf_id)) {
do_hook_function('tree_after',$host_name.','.get_request_var("leaf_id"));
}" as indicates the manual...
now when i go to SETTINGS on Cacti I can see any TAB called NMID...
I checked permission for admin user (User Management) but there is no "Realm Permissions" for this plugin.
Then I checked my "Plugin Update" and I can find out that I have installed an older version of NMID....
This is the view:
Network Management Inventory Database
Directory: nmid
Version: 0.3.7g
Author: Thomas Urban
Home Page: http://www.urban-software.de
SO, My questions are:
1)WHAT HAPPEND WITH THE VERSION OF THE INSTALLATION?
I HAVE DOWNLOADED:
File: nmid_plugin_0.3.8m.tar.gz
From: this topic
2)WHY I CAN NOT SEE "NMIP" TAB?
3)I HAVE NOT CREATE ANY DATABASE YET, IT IS NOT INDICATED IN THE OFFCIAL MANUAL (NETWORKMANAGEMENTINVENTORYDATABASE
APLUGINFORCACTI,Thomas Urban,NMID Version 0.3.8,Document Version 1.0). IT IS MANDATORY?
THANKS in advance!
my server:
Cacti Version - 0.8.7b
Plugin Architecture - 2.0
Poller Type - Cactid v
Server Info - Linux 2.6.22-14-server
Web Server - Apache/2.2.4 (Ubuntu) PHP/5.2.3-1ubuntu6.3 mod_ssl/2.2.4 OpenSSL/0.9.8e
PHP - 5.2.3-1ubuntu6.3
PHP Extensions - zip, xmlwriter, libxml, dom, xmlreader, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, session, pcre, SimpleXML, sockets, soap, SPL, shmop, standard, Reflection, posix, mime_magic, mbstring, json, iconv, hash, gettext, ftp, filter, exif, dba, date, ctype, calendar, bz2, bcmath, zlib, openssl, apache2handler, imap, mcrypt, curl, gd, imagick, mhash, ming, mysql, mysqli, PDO, pdo_mysql, pdo_sqlite, ps, pspell, recode, snmp, SQLite, tidy, xmlrpc, xsl
MySQL - 5.0.45-Debian_1ubuntu3.3-log
RRDTool - 1.2.19
SNMP - 5.3.1
Plugins
- Network Discovery (discovery - v0.8.3)
Documents (docs - v0.1)
Host Info (hostinfo - v0.2)
Device Monitoring (monitor - v0.8.2)
NTop Viewer (ntop - v0.1)
Network Management Inventory Database (nmid - v0.3.7g)
Global Plugin Settings (settings - v0.3)
SSH Viewer (ssh - v1.0)
Syslog Monitoring (syslog - v0.5.2)
SuperLinks (superlinks - v0.72)
Thresholds (thold - v0.3.9)
Network Tools (tools - v0.2)
Update Checker (update - v0.4)
PHP Network Weathermap (weathermap - v0.95b)
Last edited by wmunguiam on Wed Apr 02, 2008 7:05 pm, edited 1 time in total.
Who is online
Users browsing this forum: No registered users and 4 guests