cacti plugin

Announcements concerning Plugins for Cacti

Moderators: Developers, Moderators

ibrahim
Posts: 27
Joined: Tue May 27, 2008 1:28 pm

Post by ibrahim »

hellp again,

am sorry but i have project on cacti.

can i put every interface of a router in a branch of a tree.

thx
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Post by Linegod »

I think it is time you posted a new question to the forums, as this thread is going completely off topic.
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
ibrahim
Posts: 27
Joined: Tue May 27, 2008 1:28 pm

Post by ibrahim »

ok, this forums is about plugins, is there any plugins that facilate my job??

thx,
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Post by Linegod »

No.

Simply start a new thread in Help: General
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
ibrahim
Posts: 27
Joined: Tue May 27, 2008 1:28 pm

Post by ibrahim »

look concerning the code u gave me to add a device.

i have a very big list of a hundred routers.

what do u suggest. from where the code has to read the names.

in perl i should open a file. what about in ur code?

any idea.

thx
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Post by Linegod »

list.txt

Code: Select all

router1
router2
router3
loop.sh

Code: Select all

#!/bin/bash 
list=`cat list.txt`
 
for host in $list 
  do 
     /path/to/cacti/cli/add_device.php --description=$host --ip=$host --template=5 --avail=snmp --community={communitystring} --version=2 
  done 
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
ibrahim
Posts: 27
Joined: Tue May 27, 2008 1:28 pm

Post by ibrahim »

look how do delete all the forums that belongs to my username or change my username.

r u responsible for that?


thx u were very helpfull
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Post by Linegod »

You can't change your username, and I can't either.
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
ibrahim
Posts: 27
Joined: Tue May 27, 2008 1:28 pm

Post by ibrahim »

i wanted to ask you that concerning the add_graphs. php :: since i wana monitor many routers.
and the add_graphs. php needs a hostID ?? how am gona pass this value ID using ur code.

thx
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Post by Linegod »

Capture the output of add_devices.php, parse out ID number and pass it to add_graphs.php
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
ibrahim
Posts: 27
Joined: Tue May 27, 2008 1:28 pm

Post by ibrahim »

definitly i know that i have to do this. but since am not familiar with this code.

i wanted to know how to parse out the id number?/ using what command?/?

maybe select command?? do u have any idea??? or grepp i thinkkk

i appreciate
ur help
thx
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Post by Linegod »

It's a bash script, it's not that complicated - use grep.
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
ibrahim
Posts: 27
Joined: Tue May 27, 2008 1:28 pm

Post by ibrahim »

thx i got it, it s a mix of grep and awk


best regards
it
Cacti User
Posts: 118
Joined: Tue Jun 17, 2008 12:44 pm

Post by it »

i did not find any templates for cisco 3750.

do u have any idea for where to get or (in case) how to create it??


thank you
User avatar
streaker69
Cacti Pro User
Posts: 712
Joined: Mon Mar 27, 2006 10:35 am
Location: Psychic Amish Network Administrator

Post by streaker69 »

it wrote:i did not find any templates for cisco 3750.

do u have any idea for where to get or (in case) how to create it??


thank you
The beauty of Cacti is that if there isn't already a template created (you did search in the Scripts/Template fourm), you can create it yourself. It's not very hard to make templates.
[b]Cacti Version[/b] - 0.8.7d
[b]Plugin Architecture[/b] - 2.4
[b]Poller Type[/b] - Cactid v
[b]Server Info[/b] - Linux 2.6.18-128.1.6.el5
[b]Web Server[/b] - Apache/2.2.3 (CentOS)
[b]PHP[/b] - 5.2.9
[b]MySQL[/b] - 5.0.45-log
[b]RRDTool[/b] - 1.3.0
[b]SNMP[/b] - 5.3.2.2
[b]Plugins[/b]PHP Network Managing v0.6.1, Global Plugin Settings v0.6,thold v0.4.1,XMLPort v0.3.5,CactiCam v0.1.5,NetTools v0.1.5,pollperf v0.32,RRD Cleaner v1.1,sqlqueries v0.2,superlinks v0.8,syslog v0.5.2,update v0.4,discovery v0.9,zond v0.34a,hostinfo v0.2,Bloom v0.6.5,mactrack v1.1,weathermap v0.96a,mobile v0.1
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests