gpsmap plugin
Moderators: Developers, Moderators
gpsmap plugin
I'm trying to install gpsmap without google api key, please confirm if that can be done. plug installed and activated on the machine successfully...but when i tried to login I have below error :
[Sun Aug 21 23:10:27.092835 2022] [proxy_fcgi:error] [pid 3817532:tid 140001354438400] [client 10.200.16.166:53265] malformed header from script 'gpsmap.php': Bad header: , referer: http://10.169.28.185/cacti/
[Sun Aug 21 23:10:27.092888 2022] [proxy_fcgi:error] [pid 3817532:tid 140001354438400] [client 10.200.16.166:53265] AH01070: Error parsing script headers, referer: http://10.169.28.185/cacti/
[Sun Aug 21 23:10:27.092897 2022] [proxy_fcgi:error] [pid 3817532:tid 140001354438400] (22)Invalid argument: [client 10.200.16.166:53265] AH01075: Error dispatching request to : , referer: http://10.169.28.185/cacti/
and from GUI I have.
Sorry, we could not process your last action.
Error:
500 Internal Server Error
Reason:
The response to the last action was unexpected.
any clue how i can solve this error please
[Sun Aug 21 23:10:27.092835 2022] [proxy_fcgi:error] [pid 3817532:tid 140001354438400] [client 10.200.16.166:53265] malformed header from script 'gpsmap.php': Bad header: , referer: http://10.169.28.185/cacti/
[Sun Aug 21 23:10:27.092888 2022] [proxy_fcgi:error] [pid 3817532:tid 140001354438400] [client 10.200.16.166:53265] AH01070: Error parsing script headers, referer: http://10.169.28.185/cacti/
[Sun Aug 21 23:10:27.092897 2022] [proxy_fcgi:error] [pid 3817532:tid 140001354438400] (22)Invalid argument: [client 10.200.16.166:53265] AH01075: Error dispatching request to : , referer: http://10.169.28.185/cacti/
and from GUI I have.
Sorry, we could not process your last action.
Error:
500 Internal Server Error
Reason:
The response to the last action was unexpected.
any clue how i can solve this error please
Re: gpsmap plugin
You need to enable unsafe eval from Settings > General
Before history, there was a paradise, now dust.
Re: gpsmap plugin
already i modified below before my post earlier but still the same I'm not able to access and have the same error
Content-Security Allow Unsafe JavaScript eval() calls YES
[Mon Aug 22 11:18:23.575200 2022] [proxy_fcgi:error] [pid 3818022:tid 140001505408768] [client 10.200.16.166:60691] malformed header from script 'gpsmap.php': Bad header: , referer: http://10.169.28.185/cacti/settings.php?tab=general&
[Mon Aug 22 11:18:23.575261 2022] [proxy_fcgi:error] [pid 3818022:tid 140001505408768] [client 10.200.16.166:60691] AH01070: Error parsing script headers, referer: http://10.169.28.185/cacti/settings.php?tab=general&
[Mon Aug 22 11:18:23.575267 2022] [proxy_fcgi:error] [pid 3818022:tid 140001505408768] (22)Invalid argument: [client 10.200.16.166:60691] AH01075: Error dispatching request to : , referer: http://10.169.28.185/cacti/settings.php?tab=general&
any clue
Content-Security Allow Unsafe JavaScript eval() calls YES
[Mon Aug 22 11:18:23.575200 2022] [proxy_fcgi:error] [pid 3818022:tid 140001505408768] [client 10.200.16.166:60691] malformed header from script 'gpsmap.php': Bad header: , referer: http://10.169.28.185/cacti/settings.php?tab=general&
[Mon Aug 22 11:18:23.575261 2022] [proxy_fcgi:error] [pid 3818022:tid 140001505408768] [client 10.200.16.166:60691] AH01070: Error parsing script headers, referer: http://10.169.28.185/cacti/settings.php?tab=general&
[Mon Aug 22 11:18:23.575267 2022] [proxy_fcgi:error] [pid 3818022:tid 140001505408768] (22)Invalid argument: [client 10.200.16.166:60691] AH01075: Error dispatching request to : , referer: http://10.169.28.185/cacti/settings.php?tab=general&
any clue
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: gpsmap plugin
Anything in the Cacti log? Also, what version of PHP?
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?
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?
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: gpsmap plugin
So, had not installed it in a while: First you have to 'allow' alternate sources. Those included:
maps.googleapis.com maps.gstatic.com fonts.googleapis.com
Then, if you don't have a Google API Key, you should get directed here:
https://developers.google.com/maps/docu ... ing-errors
Google is making $$$ off of the service these days. No fun for a hobbyist. So, it's working with PHP7.4 for sure.
maps.googleapis.com maps.gstatic.com fonts.googleapis.com
Then, if you don't have a Google API Key, you should get directed here:
https://developers.google.com/maps/docu ... ing-errors
Google is making $$$ off of the service these days. No fun for a hobbyist. So, it's working with PHP7.4 for sure.
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?
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?
Re: gpsmap plugin
Cacti log doesn't show any errors, PHP Version 7.2.24
PHP Version 7.2.24
allow_url_fopen On On
allow_url_include Off Off
arg_separator.input & &
arg_separator.output & &
auto_append_file no value no value
auto_globals_jit On On
auto_prepend_file no value no value
browscap no value no value
default_charset UTF-8 UTF-8
default_mimetype text/html text/html
disable_classes no value no value
disable_functions no value no value
display_errors Off Off
display_startup_errors Off Off
doc_root no value no value
docref_ext no value no value
docref_root no value no value
enable_dl Off Off
enable_post_data_reading On On
error_append_string no value no value
error_log /var/log/php-fpm/www-error.log /var/log/php-fpm/www-error.log
error_prepend_string no value no value
error_reporting 22527 22527
expose_php On On
extension_dir /usr/lib64/php/modules /usr/lib64/php/modules
file_uploads On On
hard_timeout 2 2
highlight.comment #FF8000 #FF8000
highlight.default #0000BB #0000BB
highlight.html #000000 #000000
highlight.keyword #007700 #007700
highlight.string #DD0000 #DD0000
html_errors On On
ignore_repeated_errors Off Off
ignore_repeated_source Off Off
ignore_user_abort Off Off
implicit_flush Off Off
include_path .:/usr/share/pear:/usr/share/php .:/usr/share/pear:/usr/share/php
input_encoding no value no value
internal_encoding no value no value
log_errors On On
log_errors_max_len 1024 1024
mail.add_x_header On On
mail.force_extra_parameters no value no value
mail.log no value no value
max_execution_time 300 300
max_file_uploads 20 20
max_input_nesting_level 64 64
max_input_time 300 300
max_input_vars 1000 1000
memory_limit 512M 512M
open_basedir no value no value
output_buffering 4096 4096
output_encoding no value no value
output_handler no value no value
post_max_size 8M 8M
precision 14 14
realpath_cache_size 4096K 4096K
realpath_cache_ttl 120 120
register_argc_argv Off Off
report_memleaks On On
report_zend_debug On On
request_order GP GP
sendmail_from no value no value
sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i
serialize_precision -1 -1
short_open_tag Off Off
SMTP localhost localhost
smtp_port 25 25
sys_temp_dir no value no value
track_errors Off Off
unserialize_callback_func no value no value
upload_max_filesize 2M 2M
upload_tmp_dir no value no value
user_dir no value no value
user_ini.cache_ttl 300 300
user_ini.filename .user.ini .user.ini
variables_order GPCS GPCS
xmlrpc_error_number 0 0
xmlrpc_errors Off Off
zend.assertions -1 -1
zend.detect_unicode On On
zend.enable_gc On On
zend.multibyte Off Off
zend.script_encoding no value no value
zend.signal_check Off Off
Re: gpsmap plugin
I ahve purchased the key as attached, but still i have the issue.TheWitness wrote: ↑Mon Aug 22, 2022 5:08 am So, had not installed it in a while: First you have to 'allow' alternate sources. Those included:
maps.googleapis.com maps.gstatic.com fonts.googleapis.com
Then, if you don't have a Google API Key, you should get directed here:
https://developers.google.com/maps/docu ... ing-errors
Google is making $$$ off of the service these days. No fun for a hobbyist. So, it's working with PHP7.4 for sure.
how can i allow alternative sources as you mentioned.
- Attachments
-
- API key
- Google API Key.png (32.66 KiB) Viewed 1534 times
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: gpsmap plugin
I was referring to this. I think Apache needs to own the gpsmap directory too. Check your Cacti log for errors. I just upgraded my system to php 8.1 and it's still working fine for me.
- Attachments
-
- Alternate Sources.png (15.99 KiB) Viewed 1531 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?
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?
Re: gpsmap plugin
thanks for quick update i've tried the same but still the issue is there...i attached the file permision. but i can see now some errors in cacti.log file errors as :TheWitness wrote: ↑Mon Aug 22, 2022 5:21 am I was referring to this. I think Apache needs to own the gpsmap directory too. Check your Cacti log for errors. I just upgraded my system to php 8.1 and it's still working fine for me.
2022-08-22 14:02:54 - SPINE: Poller[1] PID[238868] PT[140289880110848] Device[6] HT[1] DS[777] WARNING: SNMP timeout detected [800 ms], ignoring host '10.100.150.133'
2022-08-22 14:02:57 - SPINE: Poller[1] PID[238868] PT[140289880110848] Device[6] HT[1] DS[777] WARNING: SNMP timeout detected [800 ms], ignoring host '10.100.150.133'
2022-08-22 14:03:01 - POLLER: Poller[1] PID[238865] Maximum runtime of 58 seconds exceeded. Exiting.
2022-08-22 14:03:01 - SYSTEM WARNING: Primary Admin account notifications disabled! Unable to send administrative Email.
2022-08-22 14:03:01 - SYSTEM STATS: Time:59.5314 Method:spine Processes:1 Threads:1 Hosts:96 HostsPerProcess:96 DataSources:677 RRDsProcessed:297
2022-08-22 14:03:01 - SNMPAGENT WARNING: No notification receivers configured for event: cactiNotifyDeviceFailedPoll (CACTI-MIB), severity: medium
2022-08-22 14:03:01 - SYSTEM DSSTATS STATS: Type:HOURLY, Time:0.1173 RRDUser:0.0000 RRDSystem:0.0000 RRDReal:0.0000
2022-08-22 14:03:02 - POLLER: Poller[1] PID[239182] WARNING: There are 1 processes detected as overrunning a polling cycle, please investigate
2022-08-22 14:03:02 - SYSTEM WARNING: Primary Admin account notifications disabled! Unable to send administrative Email.
2022-08-22 14:03:02 - SYSTEM THOLD STATS: Time:0.2604 Tholds:92 TotalDevices:96 DownDevices:1 NewDownDevices:0
2022-08-22 14:03:02 - MONITOR WARNING: No Global Notification List defined. Please set under Settings -> Thresholds
2022-08-22 14:03:02 - SYSTEM MONITOR STATS: Time:0.0036 Reboots:0 DownDevices:0 Notifications:2 Purges:0
2022-08-22 14:03:02 - SYSTEM INTROPAGE STATS: Time:0.25, Checks:13, Details:13, Trends:7
2022-08-22 14:03:04 - PHPSVR Maximum runtime of 60 seconds exceeded for the Script Server. Exiting.
2022-08-22 14:03:04 - SPINE: Poller[1] PID[238868] PT[140289880110848] ERROR: SS[0] PHP Script Server communications lost. Restarting PHP Script Server
2022-08-22 14:03:12 - SPINE: Poller[1] PID[238868] PT[140289929931648] ERROR: Device[1] polling timed out while waiting for 1 Threads to End
- Attachments
-
- gpsmap permission.png (143.62 KiB) Viewed 1529 times
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: gpsmap plugin
Can you see a map from the Map tab? Also, it looks like your spine is not running. You should run spine in debug mode to ensure that it's working
./spine -R -V 3 -S
./spine -R -V 3 -S
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?
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?
Re: gpsmap plugin
really very strange, my data collection is normal...and Map tab is highlighted as attaeched...below is my crontab details :TheWitness wrote: ↑Mon Aug 22, 2022 6:31 am Can you see a map from the Map tab? Also, it looks like your spine is not running. You should run spine in debug mode to ensure that it's working
./spine -R -V 3 -S
[root@avpr-txcacti01 bin]# crontab -l
00 01 22 * * /root/unixconfbkp/osconfbkp.sh >> /var/tmp/osbackup/confbkp.log
00 01 21 * * find /var/tmp/osbackup/`uname -n`* -type d -mtime +65 -exec rm -r {} \; > /dev/null 2>&1
0 * * * * /opt/OV/nonOV/perl/a/bin/perl /opt/perf/bin/watchhpcs.pl
* * * * * /usr/bin/php /usr/share/cacti/poller.php > /dev/null 2>/var/log/cacti/poller-error.log
[root@avpr-txcacti01 bin]#
really I'm stuck at the point for the map notopening.
- Attachments
-
- map.png (143.25 KiB) Viewed 1525 times
Re: gpsmap plugin
i have solved my spine and poller issue after utlized my process on the poller to be 4...no there is no error in cacti log...but still i have issue on gpsmap not open however the tab avilable.
I don't know where is my issue still the httpd errors as below :
[Mon Aug 22 22:28:02.903546 2022] [proxy_fcgi:error] [pid 10075:tid 139638362593024] [client 10.200.16.166:59030] malformed header from script 'gpsmap.php': Bad header: , referer: http://10.169.28.185/cacti/settings.php
[Mon Aug 22 22:28:02.903599 2022] [proxy_fcgi:error] [pid 10075:tid 139638362593024] [client 10.200.16.166:59030] AH01070: Error parsing script headers, referer: http://10.169.28.185/cacti/settings.php
[Mon Aug 22 22:28:02.903604 2022] [proxy_fcgi:error] [pid 10075:tid 139638362593024] (22)Invalid argument: [client 10.200.16.166:59030] AH01075: Error dispatching request to : , referer: http://10.169.28.185/cacti/settings.php
side node i'm not confiendt from my API key.. should be an issue if we don;t configure it, based on the cacti notifiioan it isn't required.
do we have any other plugin can be used to show the node map location.
I don't know where is my issue still the httpd errors as below :
[Mon Aug 22 22:28:02.903546 2022] [proxy_fcgi:error] [pid 10075:tid 139638362593024] [client 10.200.16.166:59030] malformed header from script 'gpsmap.php': Bad header: , referer: http://10.169.28.185/cacti/settings.php
[Mon Aug 22 22:28:02.903599 2022] [proxy_fcgi:error] [pid 10075:tid 139638362593024] [client 10.200.16.166:59030] AH01070: Error parsing script headers, referer: http://10.169.28.185/cacti/settings.php
[Mon Aug 22 22:28:02.903604 2022] [proxy_fcgi:error] [pid 10075:tid 139638362593024] (22)Invalid argument: [client 10.200.16.166:59030] AH01075: Error dispatching request to : , referer: http://10.169.28.185/cacti/settings.php
side node i'm not confiendt from my API key.. should be an issue if we don;t configure it, based on the cacti notifiioan it isn't required.
do we have any other plugin can be used to show the node map location.
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: gpsmap plugin
You might want to PM NetniV. He was working on an OpenStreetMaps version of the GPSMAP, or settings option. I don't have an API key, and the map renders just fine. I just get "Developer Mode" though.
- Attachments
-
- GPSMapsNew.png (71.71 KiB) Viewed 1511 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?
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?
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: gpsmap plugin
Looks like your proxy is not happy with you.
- Attachments
-
- ProxyMe.png (38.44 KiB) Viewed 1511 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?
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?
Re: gpsmap plugin
i had done some modification on the script of "gpsmap.php" and comment the following lines :
//set headers to NOT cache a page
//header("Cache-Control: no-cache, no-store, must-revalidate");
//header("Pragma: no-cache");
//header("0");
and after that i start normaly open the map tab ( i don't know what is the impact for this comment lines) and no error observed on the log files...but still the map is blanked as attached. any cluse to load the map
- Attachments
-
- google map.JPG (15.96 KiB) Viewed 1498 times
Who is online
Users browsing this forum: No registered users and 1 guest