Error 500 when I try to add a first or any map

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
acollantes
Posts: 3
Joined: Fri Jun 15, 2018 3:07 pm

Error 500 when I try to add a first or any map

Post by acollantes »

Hi everyone,

I need your help with this problem:

I installed for first time weathermap, but when I tried to add "simple.conf", cacti display the message:

This page does not work
Page 192.168.10.195 can not process this request now
HTTP ERROR 500

But, when I clicked the "View" button, works fine.

Thanks for your answers

Cacti Version: 0.8.8f
Weathermap 0.98
PHP: 5.6
Path of configs: /usr/share/cacti/site/plugins/weathermap/configs
Path of weathermap: /usr/share/cacti/site/plugins/weathermap
Linux's User:
root@nfsen:/usr/share/cacti/site/plugins/weathermap#
root@nfsen:/usr/share/cacti/site/plugins/weathermap# cat /etc/passwd
root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
bin:x:2:2:bin:/bin:/usr/sbin/nologin
sys:x:3:3:sys:/dev:/usr/sbin/nologin
sync:x:4:65534:sync:/bin:/bin/sync
games:x:5:60:games:/usr/games:/usr/sbin/nologin
man:x:6:12:man:/var/cache/man:/usr/sbin/nologin
lp:x:7:7:lp:/var/spool/lpd:/usr/sbin/nologin
mail:x:8:8:mail:/var/mail:/usr/sbin/nologin
news:x:9:9:news:/var/spool/news:/usr/sbin/nologin
uucp:x:10:10:uucp:/var/spool/uucp:/usr/sbin/nologin
proxy:x:13:13:proxy:/bin:/usr/sbin/nologin
www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin
backup:x:34:34:backup:/var/backups:/usr/sbin/nologin
list:x:38:38:Mailing List Manager:/var/list:/usr/sbin/nologin
irc:x:39:39:ircd:/var/run/ircd:/usr/sbin/nologin
gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/usr/sbin/nologin
nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin
systemd-timesync:x:100:102:systemd Time Synchronization,,,:/run/systemd:/bin/false
systemd-network:x:101:103:systemd Network Management,,,:/run/systemd/netif:/bin/false
systemd-resolve:x:102:104:systemd Resolver,,,:/run/systemd/resolve:/bin/false
systemd-bus-proxy:x:103:105:systemd Bus Proxy,,,:/run/systemd:/bin/false
syslog:x:104:108::/home/syslog:/bin/false
_apt:x:105:65534::/nonexistent:/bin/false
lxd:x:106:65534::/var/lib/lxd/:/bin/false
messagebus:x:107:111::/var/run/dbus:/bin/false
uuidd:x:108:112::/run/uuidd:/bin/false
dnsmasq:x:109:65534:dnsmasq,,,:/var/lib/misc:/bin/false
sshd:x:110:65534::/var/run/sshd:/usr/sbin/nologin
lmorales:x:1000:1000:Luis Morales,,,:/home/lmorales:/bin/bash
mysql:x:111:117:MySQL Server,,,:/nonexistent:/bin/false
snmp:x:112:119::/var/lib/snmp:/usr/sbin/nologin



Permissions:
drwxrwxr-- 11 www-data root 4096 Jun 15 15:01 .
drwxr-xr-x 3 www-data root 4096 Jun 15 12:00 ..
-rwxrwxr-x 1 www-data root 13842 May 26 2016 cacti-pick.php
drwxrwxr-x 3 www-data root 4096 May 29 2016 cacti-resources
-rwxrwxr-x 1 www-data root 38416 May 29 2016 CHANGES
-rwxrwxr-x 1 www-data root 1631 May 24 2016 check-gdbug.php
-rwxrwxr-x 1 www-data root 13111 May 29 2016 check.php
drwxrwxr-x 2 www-data www-data 4096 May 29 2016 configs
-rwxrwxr-x 1 www-data root 18011 May 24 2016 COPYING
drwxrwxr-x 7 www-data root 4096 May 29 2016 docs
-rwxrwxr-x 1 www-data root 49796 Jun 15 15:01 editor.php
drwxrwxr-x 2 www-data root 4096 May 29 2016 editor-resources
drwxrwxr-x 2 www-data root 4096 May 29 2016 images
-rwxrwxr-x 1 www-data root 59 May 24 2016 index.php
drwxrwxr-x 5 www-data root 4096 May 29 2016 lib
-rwxrwxr-x 1 www-data root 62 May 24 2016 logout.php
-rwxrwxr-x 1 www-data root 38 May 24 2016 net-data.txt
drwxrwxr-x 2 www-data root 4096 May 29 2016 output
-rwxrwxr-x 1 www-data root 50734 May 24 2016 overlib.js
drwxrwxr-x 2 www-data root 4096 May 29 2016 random-bits
-rwxrwxr-x 1 www-data root 1379 May 24 2016 README.md
-rwxrwxr-x 1 www-data root 35785 May 29 2016 setup.php
drwxrwxr-x 2 www-data root 4096 May 29 2016 vendor
-rwxrwxr-x 1 www-data root 9122 May 29 2016 weathermap
-rwxrwxr-x 1 www-data root 149 May 24 2016 weathermap-cacti-plugin.css
-rwxrwxr-x 1 www-data root 648 May 29 2016 weathermap-cacti-plugin-editor.php
-rwxrwxr-x 1 www-data root 44377 May 29 2016 weathermap-cacti-plugin-mgmt.php
-rwxrwxr-x 1 www-data root 27882 May 29 2016 weathermap-cacti-plugin.php
-rwxrwxr-x 1 www-data root 1049 May 24 2016 weathermap-cacti-rebuild.php
-rwxrwxr-x 1 www-data root 370 May 24 2016 weathermap.conf
Attachments
error 500.jpg
error 500.jpg (14.78 KiB) Viewed 3457 times
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Error 500 when I try to add a first or any map

Post by Howie »

What does it say in your httpd error.log?
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
acollantes
Posts: 3
Joined: Fri Jun 15, 2018 3:07 pm

Re: Error 500 when I try to add a first or any map

Post by acollantes »

Howie wrote:What does it say in your httpd error.log?

Hi Howie, thanks for your response, the error.log was captured in the attachment.

Have a good day.
error_log.jpg
error_log.jpg (126.63 KiB) Viewed 3416 times
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Error 500 when I try to add a first or any map

Post by Howie »

It looks like the php MySQL module is missing.

If you have php 7 (you said 5.6, but just checking), then there is no MySQL module anymore and you’ll need a different weathermap version.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
acollantes
Posts: 3
Joined: Fri Jun 15, 2018 3:07 pm

Re: Error 500 when I try to add a first or any map

Post by acollantes »

Dear Howie,

You absolutely right (u r genius), but, despite applying "apt-get install php5.6", when run the command "php -v", the system show me php7.0, and I can't install version 5.6, and I can't find a version of weathermaps for php7

Thank you for your help
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Error 500 when I try to add a first or any map

Post by Howie »

In Ubuntu you can switch between php versions like this: https://tecadmin.net/switch-between-mul ... on-ubuntu/
Just installing the package doesn't automatically switch to it.

But for weathermap 0.98 with Cacti 0.8.8 and PHP 7.0, try this:

http://network-weathermap.com/files/php ... -test3.zip

I made it a little while ago, but haven't really had any feedback that it works.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest