unable to install autom8-v0.33

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
doiggl
Cacti User
Posts: 222
Joined: Wed Dec 16, 2009 6:32 am

unable to install autom8-v0.33

Post by doiggl »

# rpm -qa | grep -i cacti
cacti-PA-0.8.7e-2.2.noarch

# cd /usr/share/cacti/
# tar -zxvfv autom8-v0.33.tgz

autom8/
autom8/autom8_sql.php
autom8/patches-087e/
autom8/patches-087e/lib_api_device.php.patch
autom8/patches-087e/cli.patch
autom8/patches-087e/lib_data_query.php.patch
autom8/patches-087e/lib_template.php.patch
autom8/patches-087e/lib_api_tree.php.patch
autom8/patches-087e/lib_api_automation_tools.php.patch
autom8/patches-087e/lib_html_utility.patch
autom8/patches-087e/host.php.patch
autom8/autom8_utilities.php
autom8/patches-087d/
autom8/patches-087d/lib_api_device.php.patch
autom8/patches-087d/cli.patch
autom8/patches-087d/lib_data_query.php.patch
autom8/patches-087d/lib_template.php.patch
autom8/patches-087d/lib_api_tree.php.patch
autom8/patches-087d/lib_api_automation_tools.php.patch
autom8/patches-087d/lib_html_utility.patch
autom8/patches-087d/host.php.patch
autom8/setup.php
autom8/autom8_graph_rules.php
autom8/README
autom8/autom8_actions.php
autom8/LICENSE
autom8/autom8_functions.php
autom8/automate_manual.pdf
autom8/autom8_tree_rules.php

# rm -rf autom8/patches-087d

# ls autom8/patches-087e
cli.patch lib_api_automation_tools.php.patch lib_api_tree.php.patch lib_html_utility.patch
host.php.patch lib_api_device.php.patch lib_data_query.php.patch lib_template.php.patch

# pwd
/usr/share/cacti

# patch -p1 -N --dry-run < autom8/patches-087e/cli.patch
# patch -p1 -N --dry-run < autom8/patches-087e/lib_api_automation_tools.php.patch
# patch -p1 -N --dry-run < autom8/patches-087e/lib_api_tree.php.patch
# patch -p1 -N --dry-run < autom8/patches-087e/host.php.patch
# patch -p1 -N --dry-run < autom8/patches-087e/lib_api_device.php.patch
# patch -p1 -N --dry-run < autom8/patches-087e/lib_data_query.php.patch

- This is the result:
# patch -p1 -N --dry-run < autom8/patches-087e/cli.patch
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------------------

|diff -Nabur cacti-0.8.7e/cli/add_graph_template.php plugin087e/cli/add_graph_template.php
|--- cacti-0.8.7e/cli/add_graph_template.php 2009-02-12 03:55:46.000000000 +0100
|+++ plugin087e/cli/add_graph_template.php 2009-05-17 13:49:03.000000000 +0200
--------------------------
File to patch: ^C


# patch -p1 -N --dry-run < autom8/patches-087e/lib_api_automation_tools.php.patch
patching file lib/api_automation_tools.php

# patch -p1 -N --dry-run < autom8/patches-087e/lib_api_tree.php.patch
patching file lib/api_tree.php

# patch -p1 -N --dry-run < autom8/patches-087e/host.php.patch
patching file host.php
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file host.php.rej

# patch -p1 -N --dry-run < autom8/patches-087e/lib_api_device.php.patch
patching file lib/api_device.php
Hunk #1 succeeded at 178 (offset 2 lines).

# patch -p1 -N --dry-run < autom8/patches-087e/lib_data_query.php.patch
patching file lib/data_query.php


What can be done to resolve the errors with the cli.patch ?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Is this file in place: cli/add_graph_template.php ?
R.
doiggl
Cacti User
Posts: 222
Joined: Wed Dec 16, 2009 6:32 am

Post by doiggl »

Yes.
# cd /
# find . | grep -i add_graph_template.php
./usr/share/cacti/cli/add_graph_template.php

# head /usr/share/cacti/cli/add_graph_template.php
#!/usr/bin/php -q
<?php
/*
+-------------------------------------------------------------------------+
| Copyright (C) 2004-2009 The Cacti Group |
| |
| This program is free software; you can redistribute it and/or |
| modify it under the terms of the GNU General Public License |
| as published by the Free Software Foundation; either version 2 |
| of the License, or (at your option) any later version. |
doiggl
Cacti User
Posts: 222
Joined: Wed Dec 16, 2009 6:32 am

Post by doiggl »

I tried again with a fresh install of cacti - this is what I got

patch -p1 -N --dry-run < autom8/patches-087e/cli.patch
patch -p1 -N --dry-run < autom8/patches-087e/lib_api_automation_tools.php.patch
patch -p1 -N --dry-run < autom8/patches-087e/lib_api_tree.php.patch
patch -p1 -N --dry-run < autom8/patches-087e/host.php.patch
patch -p1 -N --dry-run < autom8/patches-087e/lib_api_device.php.patch
patch -p1 -N --dry-run < autom8/patches-087e/lib_data_query.php.patch

patching file cli/add_graph_template.php
patching file cli/add_tree.php
patching file cli/host_update_template.php
patching file lib/api_automation_tools.php
patching file lib/api_tree.php
patching file host.php
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file host.php.rej
patching file lib/api_device.php
patching file lib/data_query.php
doiggl
Cacti User
Posts: 222
Joined: Wed Dec 16, 2009 6:32 am

Post by doiggl »

Attaching /usr/share/cacti/host.php
I had do rename the file extension to attach it
Attachments
host.php.txt
I had do rename the file extension to attach it
(54.08 KiB) Downloaded 76 times
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests