Invalid PHP_SELF Path

Support questions about the MAC Track plugin

Moderators: Developers, Moderators

Post Reply
pok
Posts: 7
Joined: Mon Mar 31, 2008 6:36 am

Invalid PHP_SELF Path

Post by pok »

When i run this command
php poller_mactrack.php

and
php mactrack-scanner.php
i have the same message :
Invalid PHP_SELF Path
My configuration is :
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
Plugins
  • Host 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...... :roll:

Thank you for help me
User avatar
wwwdrich
Cacti User
Posts: 91
Joined: Thu Feb 03, 2005 5:53 pm
Location: San Jose, CA
Contact:

Post by wwwdrich »

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.
- Dan
[i] "Step up to red alert!" "Are you sure, sir?[/i]
[i] It means changing the bulb in the sign..." - Red Dwarf[/i]
pok
Posts: 7
Joined: Mon Mar 31, 2008 6:36 am

Post by pok »

Oki, thanks for your reply wwwdrich, the poller run.

But Now i have
No Mac Track Port Results
and my devices are Unknow on
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.
pok
Posts: 7
Joined: Mon Mar 31, 2008 6:36 am

Post by pok »

Anybody can help me ?????
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Can you please upgrade to PIA 2.1. I think this will help.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
pok
Posts: 7
Joined: Mon Mar 31, 2008 6:36 am

Post by pok »

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 ?
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

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
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
pok
Posts: 7
Joined: Mon Mar 31, 2008 6:36 am

Post by pok »

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 :

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
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

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
Attachments
cacti-plugin-arch-2.2-beta.zip
(174.74 KiB) Downloaded 400 times
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
pok
Posts: 7
Joined: Mon Mar 31, 2008 6:36 am

Post by pok »

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?
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests