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    


remove_device.php & remove_graph.php CLI scripts

 
Post new topic   Reply to topic    Cacti Forum Index -> Addons for Cacti
Author Message
aimonb



Joined: 10 Jun 2008
Posts: 2

PostPosted: Tue Jun 10, 2008 3:04 am    Post subject: remove_device.php & remove_graph.php CLI scripts Reply with quote

Given the advent of cloud computing and the ultimate reality that servers will disappear forever having the ability to use the CLI to remove devices and graphs has become quite useful. So I have created remove_device.php & remove_graph.php CLI files which i would like to contribute. I used as much as possible the programming style of the add_device.php and add_graph.php files.

I will add the remove_graph.php file soon.

Code:

A very simple command line utility to remove a device or multiple devices from Cacti

Remove device usage: remove_device.php --device-id=[device ids]
Required:
    --device-id    comma separated list of host/device IDs.

List devices usage: remove_device.php --list-devices

List Options:
    --list-devices    Lists all devices



remove_device.php.zip
 Description:
1.0.1 tag. This contains minor fix to help output.

uncompress and drop in the CLI folder in your cacti install

Download
 Filename:  remove_device.php.zip
 Filesize:  1.17 KB
 Downloaded:  46 Time(s)

Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Addons for Cacti All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group