This naigos check allows to check the S.M.A.R.T. status of disks
attached directly or disks attached to the RAID controllers. The
supported controllers are cciss (hpsa) and megaraid compatible
controllers.
To define which disks are attached to the controller the RAID utility is
required (megacli or hpacucli/hpssacli), in other case any checks won't
be added.
The lib/facter/nagios_smartmon.rb adds the facts which contain hashes
with information about controller and disks. Examples:
Two SATA disks without RAID controller
{
0=>{"dev"=>"sda", "controller"=>"ata"},
1=>{"dev"=>"sdb","controller"=>"ata"}
}
Single SAS disk attached to the MegaRAID controller (ServeRAID M5110e)
{
0=>{"dev"=>"sda", "controller"=>"megaraid", "port"=>"8","interface"=>"SAS"}
}
Six SATA disks (two arrays) attached to the MegaRAID controller (ServeRAID M5110e)
{
5=>{"port"=>"5", "interface"=>"SATA", "dev"=>"sda", "controller"=>"megaraid"},
0=>{"port"=>"0", "interface"=>"SATA", "dev"=>"sda", "controller"=>"megaraid"},
1=>{"port"=>"1", "interface"=>"SATA", "dev"=>"sda", "controller"=>"megaraid"},
2=>{"port"=>"2", "interface"=>"SATA", "dev"=>"sda", "controller"=>"megaraid"},
3=>{"port"=>"3", "interface"=>"SATA", "dev"=>"sda", "controller"=>"megaraid"},
4=>{"port"=>"4", "interface"=>"SATA", "dev"=>"sda", "controller"=>"megaraid"}
}
Four SAS disks with Smart Array P840
{
0=>{"port"=>"0", "dev"=>"sda", "controller"=>"cciss", "interface"=>nil},
1=>{"port"=>"1", "dev"=>"sda", "controller"=>"cciss", "interface"=>nil},
2=>{"port"=>"2", "dev"=>"sda", "controller"=>"cciss", "interface"=>nil},
3=>{"port"=>"3", "dev"=>"sda", "controller"=>"cciss", "interface"=>nil}
}
The information from ::nagios_smartmon fact is used for creating the
nagios services and nrpe checks. For doing this Puppet 3.x clients must
to have the following configuration option in puppet.conf:
[agent]
stringify_facts = false
Set this option before you will use the check_smartmon.
Details: https://docs.puppet.com/puppet/latest/reference/lang_facts_and_builtin_vars.html#handling-boolean-facts-in-older-puppet-versions