[SOLVED] URL /plugins/thold/plugins/thold/

Support questions about the Threshold plugin

Moderators: Moderators, Developers

Post Reply
Author
Message
lafralle
Posts: 10
Joined: Sun Nov 11, 2018 12:20 pm

[SOLVED] URL /plugins/thold/plugins/thold/

#1 Post by lafralle » Sun Nov 11, 2018 12:30 pm

HI

i'm newbie on cacti.
i have installed Cacti 1.1.38 and threshold 1.0.6 plugin
plugin is enable and installed from plugin management menu

but when i will entered into threshold template setting, i have popup
Error: 404 Not Found
Reason: The requested URL /plugins/thold/plugins/thold/thold_templates.php was not found on this server.

and when i will entered into menu thold, i have message
Not Found
The requested URL /plugins/thold/plugins/thold/thold_graph.php was not found on this server.


i don't know, why in url is double name plugin/thold
/plugins/thold/plugins/thold/

anyone can help me ?


ps: sorry for my english.

Regards
Attachments
Thold1.jpg
Thold1.jpg (109.08 KiB) Viewed 866 times
Thold2.jpg
Thold2.jpg (51.57 KiB) Viewed 866 times
Last edited by lafralle on Thu Nov 15, 2018 9:03 am, edited 1 time in total.

netniV
Cacti Guru User
Posts: 2885
Joined: Sun Aug 27, 2017 12:05 am

Re: URL /plugins/thold/plugins/thold/

#2 Post by netniV » Mon Nov 12, 2018 5:22 am

Try doing this for me:

SQL:

Code: Select all

select * from plugin_config;
shell:

Code: Select all

cd <cacti>/plugins/thold
ls -lR

lafralle
Posts: 10
Joined: Sun Nov 11, 2018 12:20 pm

Re: URL /plugins/thold/plugins/thold/

#3 Post by lafralle » Mon Nov 12, 2018 5:47 am

Hi

thanks for your help

for Sql command, i have this

mysql> select * from plugin_config;
ERROR 1146 (42S02): Table 'mysql.plugin_config' doesn't exist
mysql>


and for listing directory of thold

[email protected]:/opt/cacti/plugins/thold# ls -lr
total 628
-rw-rw-r-- 1 www-data www-data 18276 nov. 8 11:00 thold_webapi.php
-rw-rw-r-- 1 www-data www-data 71539 nov. 8 11:00 thold_templates.php
-rw-rw-r-- 1 www-data www-data 10452 nov. 8 11:00 thold_process.php
-rw-rw-r-- 1 www-data www-data 72612 nov. 8 11:00 thold.php
-rw-rw-r-- 1 www-data www-data 47823 nov. 8 11:00 thold_graph.php
-rw-rw-r-- 1 www-data www-data 160055 nov. 8 11:00 thold_functions.php
-rw-rw-r-- 1 www-data www-data 277 nov. 8 11:00 thold_daemon.service
-rw-rw-r-- 1 www-data www-data 11298 nov. 8 11:00 thold_daemon.php
drwxrwxr-x 5 www-data www-data 4096 nov. 11 12:07 themes
-rw-rw-r-- 1 www-data www-data 54981 nov. 8 11:00 setup.php
drwxrwxr-x 3 www-data www-data 4096 nov. 11 12:07 service
-rw-rw-r-- 1 www-data www-data 23380 nov. 8 11:00 README.md
-rw-rw-r-- 1 www-data www-data 65054 nov. 8 11:00 notify_lists.php
drwxrwxr-x 4 www-data www-data 4096 nov. 11 12:07 locales
-rw-rw-r-- 1 www-data www-data 26421 nov. 8 11:00 LICENSE
-rw-rw-r-- 1 www-data www-data 234 nov. 8 11:00 INFO
-rw-rw-r-- 1 www-data www-data 41 nov. 8 11:00 index.php
drwxrwxr-x 2 www-data www-data 4096 nov. 12 00:10 includes
drwxrwxr-x 2 www-data www-data 4096 nov. 11 12:07 images
drwxrwxr-x 2 www-data www-data 4096 nov. 11 12:07 extras
-rw-rw-r-- 1 www-data www-data 5748 nov. 8 11:00 cli_thresholds.php
-rw-rw-r-- 1 www-data www-data 16196 nov. 8 11:00 CACTI-THOLD-MIB



regards

netniV
Cacti Guru User
Posts: 2885
Joined: Sun Aug 27, 2017 12:05 am

Re: URL /plugins/thold/plugins/thold/

#4 Post by netniV » Mon Nov 12, 2018 8:26 am

Make sure that you are in the correct cacti database. You can't be running plugins with that table.

lafralle
Posts: 10
Joined: Sun Nov 11, 2018 12:20 pm

Re: URL /plugins/thold/plugins/thold/

#5 Post by lafralle » Mon Nov 12, 2018 9:30 am

Hi

yes you're right sorry
please look now the correct sql result from command select * from plugin_config;

mysql> select * from plugin_config;
+----+---------------+------------------------+--------+----------------------------------------+--------------------------------------------+---------+
| id | directory | name | status | author | webpage | version |
+----+---------------+------------------------+--------+----------------------------------------+--------------------------------------------+---------+
| 3 | thold | Thresholds | 1 | The Cacti Group | http://www.cacti.net | 1.0.6 |
| 4 | routerconfigs | Router Configs | 1 | The Cacti Group | http://www.cacti.net | 1.4.0 |
| 5 | flowview | FlowView | 1 | The Cacti Group | http://www.cacti.net | 2.1 |
| 6 | intropage | Intropage/Dashboard | 1 | Petr Macek | https://github.com/xmacan/plugin_intropage | 1.7 |
| 7 | topx | TopX | 1 | Petr Macek | http://www.cacti.net | 0.4 |
| 9 | audit | Audit Plugin for Cacti | 1 | The Cacti Group | http://www.cacti.net | 1.0 |
| 10 | gpsmap | Maps Plugin | 1 | Andrew Aloia, Wixiweb, The Cacti Group | http://www.cacti.net | 2.1 |
| 11 | maint | Maintenance Scheduler | 1 | The Cacti Group | http://cacti.net | 1.1 |
| 12 | webseer | Web Service Monitor | 1 | The Cacti Group | http://cactiusers.org | 2.0 |
| 15 | syslog | Syslog Monitoring | 0 | The Cacti Group | http://www.cacti.net | 2.1 |
| 16 | mikrotik | MikroTik Switch Tool | 1 | The Cacti Group | http://www.cacti.net | 2.3 |
+----+---------------+------------------------+--------+----------------------------------------+--------------------------------------------+---------+
11 rows in set (0,00 sec)

mysql>


regards

netniV
Cacti Guru User
Posts: 2885
Joined: Sun Aug 27, 2017 12:05 am

Re: URL /plugins/thold/plugins/thold/

#6 Post by netniV » Mon Nov 12, 2018 11:43 am

Your setup looks OK, can you provide the exact steps you are taking that lead to this issue? Start from the console page to ensure you cover everything.

lafralle
Posts: 10
Joined: Sun Nov 11, 2018 12:20 pm

Re: URL /plugins/thold/plugins/thold/

#7 Post by lafralle » Mon Nov 12, 2018 1:10 pm

Yes see.

Step1 -> i'm connect with admin user
Step2 -> i'm click to "Thold" Menu on top bar
Step3 -> i click to "Device Status"

as you can see, in step2 (Thold Menu) i lose theme, image, ...
and when i click to antoher menu, i have error
The requested URL /plugins/thold/plugins/thold/thold_graph.php was not found on this server.
Step1.JPG
Step1.JPG (280.46 KiB) Viewed 852 times
Step2.JPG
Step2.JPG (199.02 KiB) Viewed 852 times
Step3.JPG
Step3.JPG (44.68 KiB) Viewed 852 times

netniV
Cacti Guru User
Posts: 2885
Joined: Sun Aug 27, 2017 12:05 am

Re: URL /plugins/thold/plugins/thold/

#8 Post by netniV » Tue Nov 13, 2018 3:25 am

Can you make sure that you have updated the URL_PATH configuration option in the config.php to be '/' as by default it assumes '/cacti/' ?

lafralle
Posts: 10
Joined: Sun Nov 11, 2018 12:20 pm

Re: URL /plugins/thold/plugins/thold/

#9 Post by lafralle » Tue Nov 13, 2018 3:14 pm

i have this :
$url_path = '';

i do change for $url_path = '/';
right ?

lafralle
Posts: 10
Joined: Sun Nov 11, 2018 12:20 pm

Re: URL /plugins/thold/plugins/thold/

#10 Post by lafralle » Tue Nov 13, 2018 3:49 pm

netniV,

many thanks, i changed to
$url_path = '/';

it's ok now, great

i have another error
PCOMMAND Device[16] Device[xxxxxx] WARNING: Recache Event Detected for Device
do you know this bug ?

netniV
Cacti Guru User
Posts: 2885
Joined: Sun Aug 27, 2017 12:05 am

Re: URL /plugins/thold/plugins/thold/

#11 Post by netniV » Tue Nov 13, 2018 5:52 pm

That is a known issue. There is a user provided patch on GitHub I think.

lafralle
Posts: 10
Joined: Sun Nov 11, 2018 12:20 pm

Re: URL /plugins/thold/plugins/thold/

#12 Post by lafralle » Thu Nov 15, 2018 9:01 am

Hi

ok great,
i wiil check this patch.

many thanks again.

Post Reply