Nagios SSL/Connection Issue Solved

On /etc/nagios/nrpe.cfg, (remote server) comment out the following line:

  • #allowed_hosts=

They say it ignores this config line if you use xinet.d, but they are totally wrong. I used to get the “Host <blah> is not allowed to talk to us!” error because of this.

The command I used to test the connection (on the host server) is:

  • /usr/lib/nagios/plugins/check_nrpe -H <remote_server_ip>

SMARTd Commands for SATA Drives

Show all SMART information

[code]smartctl -d ata -a /dev/sda1[/code]
  • -a = Show all SMART information for device.
  • -d = Specify the device type to one of: ata, scsi, marvell, 3ware (ata is selected above).
  • /dev/sda1 = The drive.

Run a self-test

[code]smartctl -d ata -t offline /dev/sda1[/code] [code]smartctl -d ata -t long /dev/sda1[/code]

Output self-test and other log results

  • smartctl -d ata -l selftest /dev/sda1
  • smartctl -d ata -l error /dev/sda1
  • smartctl -d ata -l selective /dev/sda1
  • smartctl -d ata -l directory /dev/sda1

Output all options

[code]smartctl -h[/code]


  • Enable smart by editing /etc/smartd.conf file.
  • Smart Configuration file: /etc/smartd.conf
  • Start/Stop smart: /etc/init.d/smartd start | stop