|
|
| Author |
Message |
pok
Joined: 31 Mar 2008 Posts: 7
|
Posted: Mon Mar 31, 2008 6:43 am Post subject: Invalid PHP_SELF Path |
|
|
When i run this command
| Quote: | | php poller_mactrack.php |
and
| Quote: | | php mactrack-scanner.php |
i have the same message : | Quote: | Invalid PHP_SELF Path
|
My configuration is :
| Quote: | Cacti Version - 0.8.7b
Plugin Architecture - 2.0
Poller Type - CMD.php
Server Info - Linux 2.6.22-14-generic
Web Server - Apache/2.2.4 (Ubuntu) PHP/5.2.3-1ubuntu6.3
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, mcrypt, curl, gd, mysql, mysqli, PDO, pdo_mysql, snmp
MySQL - 5.0.45-Debian_1ubuntu3.1-log
RRDTool - 1.2.19
SNMP - 5.3.1
PluginsHost Info (hostinfo - v0.2)
Device Monitoring (monitor - v0.8.2)
NTop Viewer (ntop - v0.1)
Global Plugin Settings (settings - v0.3)
Thresholds (thold - v0.3.9)
Documents (docs - v0.1)
Device Tracking (mactrack - v1.1)
Network Tools (tools - v0.2)
Update Checker (update - v0.4)
PHP Network Weathermap (weathermap - v0.95a) |
Sorry for my English , i am french......
Thank you for help me
|
|
| Back to top |
|
 |
wwwdrich Cacti User
Joined: 03 Feb 2005 Posts: 59 Location: San Jose, CA
|
Posted: Mon Mar 31, 2008 1:31 pm Post subject: |
|
|
Give it the full path to the script and it should make the error go away. I my case I use:
php /var/www/html/cacti/plugins/mactrack/poller_mactrack.php
They made some security "fixes" in cacti 0.8.7 that are causing the error if it can't determine where the script is.
|
|
| Back to top |
|
 |
pok
Joined: 31 Mar 2008 Posts: 7
|
Posted: Tue Apr 01, 2008 2:30 am Post subject: |
|
|
Oki, thanks for your reply wwwdrich, the poller run.
But Now i have | Quote: | | No Mac Track Port Results |
and my devices are Unknow on | Quote: | | Device Tracking Management |
i try to change the type switch/routeur and hub/swtich but anything change
perhaps i don't known how using mactrack.
|
|
| Back to top |
|
 |
pok
Joined: 31 Mar 2008 Posts: 7
|
Posted: Wed Apr 02, 2008 6:18 am Post subject: |
|
|
| Anybody can help me ?????
|
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9671 Location: MI, USA
|
Posted: Wed Apr 02, 2008 6:48 am Post subject: |
|
|
Can you please upgrade to PIA 2.1. I think this will help.
TheWitness
|
|
| Back to top |
|
 |
pok
Joined: 31 Mar 2008 Posts: 7
|
Posted: Wed Apr 02, 2008 8:19 am Post subject: |
|
|
I upgrade with the .diff file and pa.sql but now i don't see my plugins.
My global.php have plugins list and in CACTI web page User Management/admin I don't have the list of plugins...
How I must upgrade PIA 2.1 ?
|
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9671 Location: MI, USA
|
Posted: Wed Apr 02, 2008 8:33 am Post subject: |
|
|
You the full files, and then import the pa.sql into Cacti. Your plugins will not show on the list until they are all PIA 2.x compliant. This does not mean that they are broken however.
Regards,
Larry
|
|
| Back to top |
|
 |
pok
Joined: 31 Mar 2008 Posts: 7
|
Posted: Thu Apr 03, 2008 3:12 am Post subject: |
|
|
Ok for upgrade PIA2.1 with the full files, I have my plugins but mactrack don't work, i always have my devices statu Unknown and No port result....
When I run php <path>/plugins/mactrack/poller_mactrack.php I have this :
| Quote: | Warning: reset(): Passed variable is not an array or object in /var/www/cacti/site/lib/functions.php on line 146
Warning: Variable passed to each() is not an array or object in /var/www/cacti/site/lib/functions.php on line 147
Warning: reset(): Passed variable is not an array or object in /var/www/cacti/site/lib/functions.php on line 146
Warning: Variable passed to each() is not an array or object in /var/www/cacti/site/lib/functions.php on line 147 |
I don't know any more what to make...
Thanks for help me, Mactrack seem interresting
|
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9671 Location: MI, USA
|
Posted: Thu Apr 03, 2008 7:40 am Post subject: |
|
|
Ok, I have been looking into this. I have identified a major issue with the PIA2.x associated with the latest upgrade. Many people have worked around it, but for me, I'm just starting to pull my hair out.
Attached is PIA2.2 beta that should bring Joy.
Regards,
Larry
| Description: |
|
 Download |
| Filename: |
cacti-plugin-arch-2.2-beta.zip |
| Filesize: |
174.74 KB |
| Downloaded: |
182 Time(s) |
|
|
| Back to top |
|
 |
pok
Joined: 31 Mar 2008 Posts: 7
|
Posted: Fri Apr 04, 2008 2:30 am Post subject: |
|
|
Thanks, i have no errors now but my device in Device Tracking management are always Unknown and in Management the same device is Up.Why ?
I try to create a Device type as 3com with OID but how you affect this type for the device?
|
|
| Back to top |
|
 |
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|