- where must i put the files /monitor ? the readme speak about a plugin directory. where is it ? i have version 0.8.6.f
- how and where to add the entry in config.php in order to made the monitor plugin working ?
thanks for your help

Moderators: Developers, Moderators
ok, i started with fresh sources for cacti and the plugin-patch:The errors you are receiving appear to be with a bad patch on the config.php file. The patch was made to be used before you setup cacti or modify the config.php (if you use a RPM based solution, they may have already made modifications).
I have now added the actual patched files to the download, so you can redownload it and override your files with that version. Please test it that way, and see if it then works for you. I will see if I can add a little more fuzz to the patch to make it work in more situations.
Code: Select all
#!/bin/bash
# a script to download and install cacti-0.8.f & plugin-0.4 patch
# Version 0.1 01.08.2005
# by schwan
# create a directory & move inside the new dir
mkdir cactiplugin && cd cactiplugin
echo -e "\n---------------------------------\ndirectory created ...\n---------------------------------\n"
# download cacti & plugin patch
wget -nv http://www.cacti.net/downloads/cacti-0.8.6f.tar.gz
wget -nv http://cactiusers.org/downloads/cacti-plugin-arch.gzip
echo -e "\n---------------------------------\nfiles downloaded ...\n---------------------------------\n"
# unzip the dowloaded files
tar xvzf cacti-0.8.6f.tar.gz &> /dev/null
tar xvzf cacti-plugin-arch.gzip &> /dev/null
echo -e "\n---------------------------------\nfiles unzipped ...\n---------------------------------\n"
# copy the plugin patch to the main cacti directory
cp cacti-plugin-arch/cacti-plugin-0.8.6f.diff cacti-0.8.6f/.
echo -e "\n---------------------------------\ncopied the plugin diff ...\n---------------------------------\n"
# apply the plugin patch
cd cacti-0.8.6f
patch -p1 -N < cacti-plugin-0.8.6f.diff
cd ..
echo -e "\n---------------------------------\npatched cacti with the plugin patch ...\n---------------------------------\n"
# go back to the directory where we started
cd ..
@qpduongqpduong wrote:@cigamit
it doesn't work for me, i used ur already patched files but the same errors .
@schwan
Yeah it works with the first page but with graphs/threshold tab I receive:
Parse error: syntax error, unexpected T_STRING in c:\wamp\www\cacti\include\top_graph_header.php on line 114
I am not php guy so i should stay still and wait good news from you
Code: Select all
<a href="<?php echo $config['url_path']; ?>graph_settings.php"><img src="<?php echo $config['url_path']; ?>images/tab_settings<?php if (basename($_SERVER["PHP_SELF"]) == "graph_settings.php") { print "_down"; }?>.gif" border="0" alt="Settings" align="absmiddle"></a> <?php if ((!isset($_SESSION["sess_user_id"])) || ($current_user["show_tree"] == "on")) {?><a href="<?php echo $config['url_path']; ?>graph_view.php?action=tree"><img src="<?php echo $config['url_path']; ?>images/tab_mode_tree<?php if ($_REQUEST["action"] == "tree") { print "_down"; }?>.gif" border="0" title="Tree View" alt="Tree View" align="absmiddle"></a><?php }?><?php if ((!isset($_SESSION["sess_user_id"])) || ($current_user["show_list"] == "on")) {?><a href="<?php echo $config['url_path']; ?>graph_view.php?action=list"><img src="<?php echo $config['url_path']; ?>images/tab_mode_list<?php if ($_REQUEST["action"] == "list") { print "_down"; }?>.gif" border="0" title="List View" alt="List View" align="absmiddle"></a><?php }?><?php if ((!isset($_SESSION["sess_user_id"])) || ($current_user["show_preview"] == "on")) {?><a href="<?php echo $config['url_path']; ?>graph_view.php?action=preview"><img src="<?php echo $config['url_path']; ?>images/tab_mode_preview<?php if ($_REQUEST["action"] == "preview") { print "_down"; }?>.gif" border="0" title="Preview View" alt="Preview View" align="absmiddle"></a><?php }?> <br>
cigamit,cigamit wrote:Schwan,
I believe I have found the cause of the 2 errors, and have fixed them. It was some stupid errors on my part, but I am not sure why they didn't show up on my test system.
Go ahead and give it another go and see if it works for you now. And thanks for the help in resolving these 2 bugs.
Code: Select all
mysql -u root -p cactifixed < thold.sql
ERROR 1062 (23000) at line 46: Duplicate entry '18-1' for key 1
The SQL file is the one directly from the Thold Module. The line in question is this oneSchwan wrote: cigamit,
i installed it again with my script, now the pages "monitor" and "graphs" are coming without errors![]()
for the thold plugin i got the error "Table 'cactifixed.thold_data' doesn't exist" ... so i had a look in the
thold plugin directory and found the thold.sql file. when i tried to import it to my mysql, i got this message:
hmm, i think this has something to do with thold 2.1a and not with the plugin code, have to read the thold 2.1a thread for thisCode: Select all
mysql -u root -p cactifixed < thold.sql ERROR 1062 (23000) at line 46: Duplicate entry '18-1' for key 1
![]()
best regards,
Schwan
Code: Select all
INSERT INTO `user_auth_realm` VALUES (18, 1);
The "Configure Thresholds", "View Thresholds" permissions are included in the thold.sql file already. I can easily add the "View Monitoring" permissions when it does the initial database update.Schwan wrote:cigamit,
it is maybe possible to enable realm permission
"Configure Thresholds"
"View Thresholds"
"View Monitoring"
per default for the admin user ?
CU,
Schwan
You must first install the Plugin Architecture. When you do, this will create a directory in your cacti directory named "plugins". You will need to extract the monitor plugin to a temporary directory. The files and folders in this directory need to be placed in a directory named "monitor" inside the "plugins" directory.scavenger67 wrote:i just want to know how to configure the monitor plugin. have some questions :
- where must i put the files /monitor ? the readme speak about a plugin directory. where is it ? i have version 0.8.6.f
- how and where to add the entry in config.php in order to made the monitor plugin working ?
thanks for your help
I believe you would be talking about this post hereqpduong wrote:schwan,
thold[1][1].2.1b works with 0.8.6f but sometimes it make cacti go to a loop (see benhanson posts) and I still haven't found any solution for this in thold 2.1a thread.
rgds,
qpduong
It does not matter if you use cmd.php or cactid, as both of them are launched through poller.php, which is were the hook is tied into.scavenger67 wrote:ok the plugin and thold is working now fine on 0.8.6f
but.. you say that the thold module will poll automatically.
how it is possible, because i use cactid instead of cmd.php
is it also working and how ?
thx.
Users browsing this forum: No registered users and 22 guests