Skip to content

Instantly share code, notes, and snippets.

@jfrost
Created December 17, 2008 19:30
Show Gist options
  • Save jfrost/37179 to your computer and use it in GitHub Desktop.
Save jfrost/37179 to your computer and use it in GitHub Desktop.
in cacti::client:
@@exec { "add-device_${hostname}":
command => "/usr/bin/php /var/www/localhost/htdocs/cacti/cli/add_device.php --description=${hostname} --ip=${ipaddress_eth1} --template=3",
tag => "add-cacti-device"
}
in cacti::server:
Exec <<| tag == "add_cacti_device" |>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment