Archive for July, 2011

debian-sa1 fails after update

Here is a quick solution for fixing the cron error:

command -v debian-sa1 > /dev/null && debian-sa1 1 1 (failed)

Edit /etc/default/sysstat on the line SA1_OPTIONS=”-d”, changing “-d” with ”-S DISK”

This is because some sadc options were renamed in the recent version.

28/07/2011 at 11:00 Leave a comment

Restarting nagios from puppet on Debian

If you’re struggling with writing a puppet module for nagios client then here is a line you need to add to your service definition:

hasstatus  => false,

Without this puppet will try to start nrpe every time unless restarting it.

Here is the complete definition:

service { "nagios-nrpe-server":
        name       => "nagios-nrpe-server",
        ensure     => running,
        enable     => true,
        hasstatus  => false,
        pattern    => "/usr/sbin/nrpe",
        require    => Package["nagios-nrpe-server"],
        subscribe  => [Package["nagios-nrpe-server"], File["/etc/nagios/nrpe.cfg"] ],
    }

22/07/2011 at 12:26 1 comment


 

July 2011
M T W T F S S
« Feb   Nov »
 123
45678910
11121314151617
18192021222324
25262728293031

Follow

Get every new post delivered to your Inbox.

Join 31 other followers