Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


NOTE: Templates May Require Updates After Upgrade to 0.8.7

 
Post new topic   Reply to topic    Cacti Forum Index -> Help: General
Author Message
TheWitness
Developer


Joined: 14 May 2002
Posts: 9723
Location: MI, USA

PostPosted: Fri Oct 26, 2007 6:10 am    Post subject: NOTE: Templates May Require Updates After Upgrade to 0.8.7 Reply with quote

Note,

If your graph templates contain scripts that use the following functions:

cacti_snmp_get
cacti_snmp_walk

Or, if your script as script server based, you will have to update these scripts prior to cutting over to the new Cacti system. A good way to audit this would be to execute the following:

cd <path_cacti>/scripts
grep -i cacti_snmp *

also,

grep -i call_user_func_array *

For each script found, you need to audit to make sure that for the script server scripts, you have changed the include of config.php to global.php and that for the cacti_snmp_*, you have changed your calling parameters. The new format is as follows:

cacti_snmp_get($hostname, $community, $oid, $version, $username, $password, $auth_proto, $priv_pass, $priv_proto, $context, $port = 161, $timeout = 500, $retries = 0, $environ = SNMP_POLLER)

The new fields are:

$auth_proto
$priv_pass
$priv_proto
$context

If you don't use snmpV3, you can simply set these to "".

Regards,

TheWitness
Back to top
Helmut Schneider
Cacti User


Joined: 05 Feb 2007
Posts: 57

PostPosted: Wed Dec 26, 2007 8:25 am    Post subject: Reply with quote

This works fine for php scripts but I also have some templates that are only XML files (e.g. http://forums.cacti.net/about19640.html or http://forums.cacti.net/about8777.html), what do I have to do with them?
Back to top
windowsrefund



Joined: 05 Jul 2007
Posts: 11

PostPosted: Wed Feb 27, 2008 4:43 pm    Post subject: Reply with quote

This is just sloppy. Why should users have to do something manually that could have been handled automatically during an upgrade? Why doesn't the latest version of Cacti contain the correct versions of these files?
Back to top
BSOD2600
Cacti Moderator


Joined: 08 May 2004
Posts: 6795
Location: WA, USA

PostPosted: Wed Feb 27, 2008 4:48 pm    Post subject: Reply with quote

Because its User's scripts which need to be updated, not core cacti files/scripts. Cacti doesn't touch user scripts...
Back to top
hootjr29



Joined: 14 Feb 2005
Posts: 20

PostPosted: Fri Apr 25, 2008 2:28 pm    Post subject: Reply with quote

Hi all,

I have two scripts that don't work after upgrading to 0.8.7b from 0.8.6j. They are ss_slb_vserver.php and ss_slb_rserver.php.

Within them, they have this line:

Code:
$value = cacti_snmp_get($hostname, $snmp_community, $target, $snmp_version, $snmpv3_auth_username, $snmpv3_auth_password, $snmp_port, $snmp_timeout, SNMP_POLLER)


Given the above information, does this mean that I should change this to the following?

Code:
$value = cacti_snmp_get($hostname, $community, $oid, $version, $username, $password, $auth_proto, $priv_pass, $priv_proto, $context, $port = 161, $timeout = 500, $retries = 0, $environ = SNMP_POLLER)


Thanks,
Joe
Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12295
Location: Muenster, Germany

PostPosted: Fri Apr 25, 2008 3:11 pm    Post subject: Reply with quote

Yes, more or less. But you'll have to provide data for those new parms! For a Script Data Query, you'll have to change the XML accordingly
Reinhard
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Help: General All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group