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    


import mrtg into cacti

 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
bukusg



Joined: 13 Aug 2008
Posts: 3

PostPosted: Wed Aug 13, 2008 10:25 pm    Post subject: import mrtg into cacti Reply with quote

Hi,
I have script on mrtg and i want to export it to cacti.
How to do that ...

Thanks
bukusg
Back to top
gandalf
Developer


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

PostPosted: Thu Aug 14, 2008 8:16 pm    Post subject: Reply with quote

Please see 1st link of my sig to find scripting howto's
Reinhard
Back to top
bukusg



Joined: 13 Aug 2008
Posts: 3

PostPosted: Sat Aug 16, 2008 10:25 pm    Post subject: Reply with quote

Sorry I didn't get You about 1st link?
plz give me thes link, thank
Back to top
gandalf
Developer


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

PostPosted: Sun Aug 17, 2008 3:59 pm    Post subject: Reply with quote

Please see http://docs.cacti.net/node/198
Reinhard
Back to top
bukusg



Joined: 13 Aug 2008
Posts: 3

PostPosted: Mon Aug 18, 2008 4:55 am    Post subject: Reply with quote

thanks for the link and it's really helpful. And easy to follow .

I have this script (taken from MRTG) and plan to export to cacti
-------------------- script (MRTG) ---------------------------
#!/bin/bash

Dir=/home/mrtgconfig/router
/usr/bin/snmpwalk $1 $2 MyOid > $Dir/$1-arp

value=`/bin/egrep -c '192.168.' $Dir/$1-arp`
value1=`/bin/egrep -c '172.31' $Dir/$1-arp`

Time=`/bin/date `
echo $value
echo $value1
echo since $Time
echo $1
-------------------- End Script ---------------------------
Need to modify/convert to perl script? (like a given example in the manual). Please, Need your advice.

Many Thanks
bukusg
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group