I am having trouble installing sysstat using a chef (v0.9.8) recipe. Any help or pointers would be greatly appreciated!
I have included my chef recipe towards the end. After running this recipe, I am unable to execute
/etc/init.d/sysstat start
I get an error something like this:
* Starting the system activity data collector sadc
Usage: /usr/lib/sysstat/sadc [ options ] [ <interval> [ <count> ] ] [ <outfile> ]
Options are:
[ -C <comment> ] [ -F ] [ -L ] [ -V ]
[ -S { INT | DISK | IPV6 | POWER | SNMP | XDISK | ALL | XALL } ]
I am able to install sysstat by executing this command without any problems:
apt-get install -y sysstat
My recipe follows:
package "sysstat" do
package_name "sysstat"
action :install
end
#service "sysstat" do
# service_name "sysstat"
# enabled
# running
# supports :restart => true
# action [ :enable, :restart ]
#end
cookbook_file "/etc/cron.d/sysstat" do
source "sysstat"
mode 0644
owner "root"
group "root"
end
template "sysstat" do
path "/etc/default/sysstat"
source "sysstat.erb"
owner "root"
group "root"
mode 0644
backup 3
#notifies :restart, resources(:service => "sysstat")
end`