Plugin Architecture for Cacti and Monitoring Module
Moderators: Developers, Moderators
can't patch the cacti-0.8.6g
when I patch the cacti-0.8.6g for instaiing the plugin, It is failed! Any advice? thanks
Redhat AS3.0, Cacti-0.8.6g
[root@vt-mrtg-01 cacti]# patch -p1 -N < cacti-plugin-0.8.6g.diff
patching file data_sources.php
Hunk #1 FAILED at 1038.
1 out of 1 hunk FAILED -- saving rejects to file data_sources.php.rej
patching file graphs_new.php
Hunk #1 FAILED at 394.
1 out of 1 hunk FAILED -- saving rejects to file graphs_new.php.rej
patching file include/config_arrays.php
Hunk #1 FAILED at 19.
Hunk #2 FAILED at 425.
2 out of 2 hunks FAILED -- saving rejects to file include/config_arrays.php.rej
patching file include/config_form.php
Hunk #1 FAILED at 994.
1 out of 1 hunk FAILED -- saving rejects to file include/config_form.php.rej
patching file include/config.php
Hunk #1 FAILED at 26.
Hunk #2 FAILED at 175.
2 out of 2 hunks FAILED -- saving rejects to file include/config.php.rej
patching file include/config_settings.php
Hunk #1 FAILED at 816.
1 out of 1 hunk FAILED -- saving rejects to file include/config_settings.php.rej
patching file include/plugins.php
patching file include/top_graph_header.php
Hunk #1 FAILED at 76.
1 out of 1 hunk FAILED -- saving rejects to file include/top_graph_header.php.rej
patching file include/top_header.php
Hunk #1 FAILED at 19.
1 out of 1 hunk FAILED -- saving rejects to file include/top_header.php.rej
patching file lib/api_device.php
Hunk #1 FAILED at 71.
1 out of 1 hunk FAILED -- saving rejects to file lib/api_device.php.rej
patching file lib/functions.php
Hunk #1 FAILED at 181.
Hunk #2 FAILED at 557.
Hunk #3 FAILED at 1347.
3 out of 3 hunks FAILED -- saving rejects to file lib/functions.php.rej
patching file lib/html_form.php
Hunk #1 FAILED at 429.
Hunk #2 FAILED at 450.
2 out of 2 hunks FAILED -- saving rejects to file lib/html_form.php.rej
patching file lib/html.php
Hunk #1 FAILED at 83.
Hunk #2 FAILED at 126.
Hunk #3 FAILED at 427.
Hunk #4 FAILED at 467.
Hunk #5 FAILED at 527.
5 out of 5 hunks FAILED -- saving rejects to file lib/html.php.rej
patching file plugins/index.php
patching file poller.php
Hunk #1 FAILED at 35.
Hunk #2 FAILED at 234.
2 out of 2 hunks FAILED -- saving rejects to file poller.php.rej
Redhat AS3.0, Cacti-0.8.6g
[root@vt-mrtg-01 cacti]# patch -p1 -N < cacti-plugin-0.8.6g.diff
patching file data_sources.php
Hunk #1 FAILED at 1038.
1 out of 1 hunk FAILED -- saving rejects to file data_sources.php.rej
patching file graphs_new.php
Hunk #1 FAILED at 394.
1 out of 1 hunk FAILED -- saving rejects to file graphs_new.php.rej
patching file include/config_arrays.php
Hunk #1 FAILED at 19.
Hunk #2 FAILED at 425.
2 out of 2 hunks FAILED -- saving rejects to file include/config_arrays.php.rej
patching file include/config_form.php
Hunk #1 FAILED at 994.
1 out of 1 hunk FAILED -- saving rejects to file include/config_form.php.rej
patching file include/config.php
Hunk #1 FAILED at 26.
Hunk #2 FAILED at 175.
2 out of 2 hunks FAILED -- saving rejects to file include/config.php.rej
patching file include/config_settings.php
Hunk #1 FAILED at 816.
1 out of 1 hunk FAILED -- saving rejects to file include/config_settings.php.rej
patching file include/plugins.php
patching file include/top_graph_header.php
Hunk #1 FAILED at 76.
1 out of 1 hunk FAILED -- saving rejects to file include/top_graph_header.php.rej
patching file include/top_header.php
Hunk #1 FAILED at 19.
1 out of 1 hunk FAILED -- saving rejects to file include/top_header.php.rej
patching file lib/api_device.php
Hunk #1 FAILED at 71.
1 out of 1 hunk FAILED -- saving rejects to file lib/api_device.php.rej
patching file lib/functions.php
Hunk #1 FAILED at 181.
Hunk #2 FAILED at 557.
Hunk #3 FAILED at 1347.
3 out of 3 hunks FAILED -- saving rejects to file lib/functions.php.rej
patching file lib/html_form.php
Hunk #1 FAILED at 429.
Hunk #2 FAILED at 450.
2 out of 2 hunks FAILED -- saving rejects to file lib/html_form.php.rej
patching file lib/html.php
Hunk #1 FAILED at 83.
Hunk #2 FAILED at 126.
Hunk #3 FAILED at 427.
Hunk #4 FAILED at 467.
Hunk #5 FAILED at 527.
5 out of 5 hunks FAILED -- saving rejects to file lib/html.php.rej
patching file plugins/index.php
patching file poller.php
Hunk #1 FAILED at 35.
Hunk #2 FAILED at 234.
2 out of 2 hunks FAILED -- saving rejects to file poller.php.rej
Re: can't patch the cacti-0.8.6g
i am getting similar errors. i have tried three times now. any ideas?wangdrome wrote:when I patch the cacti-0.8.6g for instaiing the plugin, It is failed! Any advice? thanks
Redhat AS3.0, Cacti-0.8.6g
[root@vt-mrtg-01 cacti]# patch -p1 -N < cacti-plugin-0.8.6g.diff
patching file data_sources.php
Hunk #1 FAILED at 1038.
1 out of 1 hunk FAILED -- saving rejects to file data_sources.php.rej
patching file graphs_new.php
Hunk #1 FAILED at 394.
1 out of 1 hunk FAILED -- saving rejects to file graphs_new.php.rej
patching file include/config_arrays.php
Hunk #1 FAILED at 19.
Hunk #2 FAILED at 425.
2 out of 2 hunks FAILED -- saving rejects to file include/config_arrays.php.rej
patching file include/config_form.php
Hunk #1 FAILED at 994.
1 out of 1 hunk FAILED -- saving rejects to file include/config_form.php.rej
patching file include/config.php
Hunk #1 FAILED at 26.
Hunk #2 FAILED at 175.
2 out of 2 hunks FAILED -- saving rejects to file include/config.php.rej
patching file include/config_settings.php
Hunk #1 FAILED at 816.
1 out of 1 hunk FAILED -- saving rejects to file include/config_settings.php.rej
patching file include/plugins.php
patching file include/top_graph_header.php
Hunk #1 FAILED at 76.
1 out of 1 hunk FAILED -- saving rejects to file include/top_graph_header.php.rej
patching file include/top_header.php
Hunk #1 FAILED at 19.
1 out of 1 hunk FAILED -- saving rejects to file include/top_header.php.rej
patching file lib/api_device.php
Hunk #1 FAILED at 71.
1 out of 1 hunk FAILED -- saving rejects to file lib/api_device.php.rej
patching file lib/functions.php
Hunk #1 FAILED at 181.
Hunk #2 FAILED at 557.
Hunk #3 FAILED at 1347.
3 out of 3 hunks FAILED -- saving rejects to file lib/functions.php.rej
patching file lib/html_form.php
Hunk #1 FAILED at 429.
Hunk #2 FAILED at 450.
2 out of 2 hunks FAILED -- saving rejects to file lib/html_form.php.rej
patching file lib/html.php
Hunk #1 FAILED at 83.
Hunk #2 FAILED at 126.
Hunk #3 FAILED at 427.
Hunk #4 FAILED at 467.
Hunk #5 FAILED at 527.
5 out of 5 hunks FAILED -- saving rejects to file lib/html.php.rej
patching file plugins/index.php
patching file poller.php
Hunk #1 FAILED at 35.
Hunk #2 FAILED at 234.
2 out of 2 hunks FAILED -- saving rejects to file poller.php.rej
Re: can't patch the cacti-0.8.6g
Was your Cacti installation a RPM install, or from source?ssams wrote:i am getting similar errors. i have tried three times now. any ideas?wangdrome wrote:when I patch the cacti-0.8.6g for instaiing the plugin, It is failed! Any advice? thanks
Redhat AS3.0, Cacti-0.8.6g
[root@vt-mrtg-01 cacti]# patch -p1 -N < cacti-plugin-0.8.6g.diff
patching file data_sources.php
Hunk #1 FAILED at 1038.
1 out of 1 hunk FAILED -- saving rejects to file data_sources.php.rej
patching file graphs_new.php
Hunk #1 FAILED at 394.
1 out of 1 hunk FAILED -- saving rejects to file graphs_new.php.rej
patching file include/config_arrays.php
Hunk #1 FAILED at 19.
Hunk #2 FAILED at 425.
2 out of 2 hunks FAILED -- saving rejects to file include/config_arrays.php.rej
patching file include/config_form.php
Hunk #1 FAILED at 994.
1 out of 1 hunk FAILED -- saving rejects to file include/config_form.php.rej
patching file include/config.php
Hunk #1 FAILED at 26.
Hunk #2 FAILED at 175.
2 out of 2 hunks FAILED -- saving rejects to file include/config.php.rej
patching file include/config_settings.php
Hunk #1 FAILED at 816.
1 out of 1 hunk FAILED -- saving rejects to file include/config_settings.php.rej
patching file include/plugins.php
patching file include/top_graph_header.php
Hunk #1 FAILED at 76.
1 out of 1 hunk FAILED -- saving rejects to file include/top_graph_header.php.rej
patching file include/top_header.php
Hunk #1 FAILED at 19.
1 out of 1 hunk FAILED -- saving rejects to file include/top_header.php.rej
patching file lib/api_device.php
Hunk #1 FAILED at 71.
1 out of 1 hunk FAILED -- saving rejects to file lib/api_device.php.rej
patching file lib/functions.php
Hunk #1 FAILED at 181.
Hunk #2 FAILED at 557.
Hunk #3 FAILED at 1347.
3 out of 3 hunks FAILED -- saving rejects to file lib/functions.php.rej
patching file lib/html_form.php
Hunk #1 FAILED at 429.
Hunk #2 FAILED at 450.
2 out of 2 hunks FAILED -- saving rejects to file lib/html_form.php.rej
patching file lib/html.php
Hunk #1 FAILED at 83.
Hunk #2 FAILED at 126.
Hunk #3 FAILED at 427.
Hunk #4 FAILED at 467.
Hunk #5 FAILED at 527.
5 out of 5 hunks FAILED -- saving rejects to file lib/html.php.rej
patching file plugins/index.php
patching file poller.php
Hunk #1 FAILED at 35.
Hunk #2 FAILED at 234.
2 out of 2 hunks FAILED -- saving rejects to file poller.php.rej
My only real suggestion is to use the provided files instead of the patch. Be sure to re-setup your config.php afterwards.
In the archive that was downloaded, I also include the already patched files. You should see a directory called "files-0.8.6g". Use those files to override the originals and them modify your config.php (the one has a few extra items).ssams wrote:mine was source files. mandrake linux. g of cacti.
i am not sure what you mean by the "provided files". dont i need the patch to run monitor and thold? i had these running (or monitor) on my system but upgraded to g from c and it went away.
Everything "should" work from that point, but if not, we can find out what is happening and fix it.
Open your config.php and setup this optionssams wrote:ok now i see. i thought those were patch files. i did that and got further. now here is what i get
$config['url_path'] = '/';
For instance, if you can access your Cacti by doing to http://127.0.0.1/ then you would change it to
$config['url_path'] = '/';
or if access it like this http://127.0.0.1/cacti/ then change it to
$config['url_path'] = '/cacti/';
That should fix that issue. I do promise to have the install documents on the plugin architecture finished fairly shortly.
Thanks Cig! that did it.cigamit wrote:Open your config.php and setup this optionssams wrote:ok now i see. i thought those were patch files. i did that and got further. now here is what i get
$config['url_path'] = '/';
For instance, if you can access your Cacti by doing to http://127.0.0.1/ then you would change it to
$config['url_path'] = '/';
or if access it like this http://127.0.0.1/cacti/ then change it to
$config['url_path'] = '/cacti/';
That should fix that issue. I do promise to have the install documents on the plugin architecture finished fairly shortly.
Appreciate your help and your contributions here.
Calendar
Is there anyway to put in a reporting calendar, so that alerts are only sent at certain times.
I know there is a weekend excpetion, but is there anyway of putting in anything in the code to state time periods when alerts can be disabled on a per datasource setting.
Great job with the Thold plugin.
Keep up the good work.
Cheers
Si
I know there is a weekend excpetion, but is there anyway of putting in anything in the code to state time periods when alerts can be disabled on a per datasource setting.
Great job with the Thold plugin.
Keep up the good work.
Cheers
Si
Scheduler
Please find the answer from the following link.
http://cactiusers.org/forums/viewtopic.php?t=86
...\xphu
http://cactiusers.org/forums/viewtopic.php?t=86
...\xphu
Re: Calendar
The future schema I am tossing about will include a much more robust scheduler and alerter.simonuk1 wrote:Is there anyway to put in a reporting calendar, so that alerts are only sent at certain times.
I know there is a weekend excpetion, but is there anyway of putting in anything in the code to state time periods when alerts can be disabled on a per datasource setting.
Great job with the Thold plugin.
Keep up the good work.
Cheers
Si
The users that you create for Cacti will have emails, SMS numbers, IM usernames, ect... added into their "accounts". They can then specify what method they perfer to get alerted on at what time. So for instance, when I am in the office from 8am - 5am, then email me. From 5pm - 9pm SMS message my phone, and the rest of the time use my pager.
This way, instead of having to input an email address or SMS number into each and every Threshold, you just assign a user as a Technician to that threshold (or possibly device, and have the device settings set globally over all of the devices thresholds). Another perk, is that this way, if the users email address changes, you change it once, instead of 1000 times.
I also plan to add in a "rotation" option, which will allow you to specify which users to alert at which time frames (we have 4 x 8 hour shifts in our data center, so its better to alert the guys that are here). This will also do what you are requesting above, you will only set it to alert during the hours you want, and the rest of the rotation is blank, so no alerts.
Who is online
Users browsing this forum: No registered users and 3 guests