Re: Question about cacti_snmp_walk(): Missing argument

Khemara Lyn <[email protected]> Sat, 06 Dec 2014 11:33:06 +0700
Newsgroups gmane.network.cacti.user
Organization WICAM
Message-ID <1417840386.9903.39.camel@RU14>
Thank you, Reinhard. 

I'll try to fix the script myself. I noticed that, this function is used
by many plugin/templates; will try to see the different.

Yes, it's true, the thread where i got the template from is quite (back
to 2006). 

May I further ask if anyone on the list knows of any better template for
this? 
I would like to graph/monitor traffic of:
1. BGP peers by their AS numbers 
2. Hosts in the LAN by their MAC addresses

Thanks again, Reinhard; I've always read this list and see you always
are very active and helpful.

Regards,
Khem

On សុ, 2014-12-05 at 08:56 +0100, Gandalf wrote:
> 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
> _______________________________________________
> 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

_______________________________________________
cacti-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cacti-user