cacti plugin
Moderators: Developers, Moderators
cacti plugin
hello,
i have a list of routers that i have to monitor using cacti. is there any script or any way to monitor and enter those list automatically. coz i if enter them one by one it will take alot of time.
and i want to assign specific graphs for all of them. ( graph template)
any ideas or script done or plugin.
thx
i have a list of routers that i have to monitor using cacti. is there any script or any way to monitor and enter those list automatically. coz i if enter them one by one it will take alot of time.
and i want to assign specific graphs for all of them. ( graph template)
any ideas or script done or plugin.
thx
If you are using the latest Cacti (0.8.7b), there should be a 'cli' directory. Within that directory are several scripts for adding devices, graphs and devices to trees.
Running those scripts without options will give you directions on how they function. Once you learn how they function, you can create a script to loop through them, adding multiple devices/graphs from a single script.
Running those scripts without options will give you directions on how they function. Once you learn how they function, you can create a script to loop through them, adding multiple devices/graphs from a single script.
--
Live fast, die young
You're sucking up my bandwidth.
J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
Live fast, die young
You're sucking up my bandwidth.
J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
Each script is going to be different, based on what type of device you are adding, and how you set your Description/Hostname.
A very simple example for Cisco Router (template 5), setting the hostname and description to the same value, setting the availability to 'snmp', using SNMP version 2 would be:
A very simple example for Cisco Router (template 5), setting the hostname and description to the same value, setting the availability to 'snmp', using SNMP version 2 would be:
Code: Select all
#!/bin/bash
list="host1 host2 host3"
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
Live fast, die young
You're sucking up my bandwidth.
J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
it s working thank you, i am gona try to do it for add_graph.
do u have graph templates for cisco devices: temperature, octet, interfaces, cpu usage.......
am sorry, more over can you give me an example for the add_graph as the add_device one
am new to cacti am sorry
thx again u were really helpfull
do u have graph templates for cisco devices: temperature, octet, interfaces, cpu usage.......
am sorry, more over can you give me an example for the add_graph as the add_device one
am new to cacti am sorry
thx again u were really helpfull
Loop the add_graphs.php scripts to add them to all of the devices.
To have the new graphs show up as options on the Devices page, associate the new graphs to the Cisco Router template via Console/Templates/Host Templates/Cisco Router/Associated Graph Templates.
To have the new graphs show up as options on the Devices page, associate the new graphs to the Cisco Router template via Console/Templates/Host Templates/Cisco Router/Associated Graph Templates.
--
Live fast, die young
You're sucking up my bandwidth.
J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
Live fast, die young
You're sucking up my bandwidth.
J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
Who is online
Users browsing this forum: No registered users and 3 guests