|
|
| Author |
Message |
bukusg
Joined: 13 Aug 2008 Posts: 3
|
Posted: Wed Aug 13, 2008 10:25 pm Post subject: import mrtg into cacti |
|
|
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
|
Posted: Thu Aug 14, 2008 8:16 pm Post subject: |
|
|
Please see 1st link of my sig to find scripting howto's
Reinhard |
|
| Back to top |
|
 |
bukusg
Joined: 13 Aug 2008 Posts: 3
|
Posted: Sat Aug 16, 2008 10:25 pm Post subject: |
|
|
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
|
|
| Back to top |
|
 |
bukusg
Joined: 13 Aug 2008 Posts: 3
|
Posted: Mon Aug 18, 2008 4:55 am Post subject: |
|
|
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 |
|
 |
|