Re: Question about cacti_snmp_walk(): Missing argument

Gandalf <[email protected]> Fri, 05 Dec 2014 08:56:58 +0100
Newsgroups gmane.network.cacti.user
Message-ID <[email protected]>
This seems to be an outdated resource. It has been quite some time, that the
snmpwalk interface for Cacti has been extended for full SNMP V3 capabilities,
resulting in some new parameters. Studying the new parameters, it is likely a
tiny task to change the script you are talking about.
Reinhard

Am 05.12.2014 um 05:07 schrieb Khemara Lyn:
> Dear All,
> 
> I have downloaded the template "traffic between 2 peers" from this
> thread:
> 
> http://forums.cacti.net/viewtopic.php?f=12&t=13931&sid=23c5addd956c18bc258141568462be82&start=15
> 
> and installed on my Cacti-0.8.8b engine.
> 
> It seems to work; however when I run the script:
> 
> php ./ss_host_mac.php x.x.x.x 0 "2:161:10:comm_string:::[MD5]:None"
> query index
> 
> It gives me the with the following warnings:
> 
> "PHP Warning:  Missing argument 10 for cacti_snmp_walk(), called
> in /var/lib/cacti/scripts/ss_host_mac.php on line 98 and defined
> in /usr/share/cacti/lib/snmp.php on line 257
> 
> Warning: Missing argument 10 for cacti_snmp_walk(), called
> in /var/lib/cacti/scripts/ss_host_mac.php on line 98 and defined
> in /usr/share/cacti/lib/snmp.php on line 257
> PHP Notice:  Undefined variable: context
> in /usr/share/cacti/lib/snmp.php on line 292
> 
> Notice: Undefined variable: context in /usr/share/cacti/lib/snmp.php on
> line 292"
> 
> May I ask: how can i correct the script to get rid of the those
> warnings. 
> 
>>From a bit of search on Google, I knew that, it is due to different
> version. The template I use was for old version of Cacti. 
> How can I adjust it to comply with the new version?
> 
> Hope for your kind reply and help, anyone!
> 
> Or better yet, is there a template to monitor traffic of BGP peers by
> their AS numbers or by MAC address? I'm looking for something like that.
> Sorry, this should placed in a different thread; but since it is a bit
> related, i'd like to ask it here also.
> 
> Regards,
> Khem
> 
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> 
> 
> 
> _______________________________________________
> cacti-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/cacti-user
> 

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk