Стоит нагиос, все работает. Но вот на одном из серверов под управлением ОС Fedora 14 не работает плагин check_smart
Выдает ошибку -
UNKNOWN: No health status line found
При этом локально все отрабатывает.
Локально запускаю так
Код: Выделить всё
./check_smart -i ata -d /dev/sdaВывод
OK: no SMART errors detected|Raw_Read_Error_Rate=0 Spin_Up_Time=3866 Start_Stop_Count=12 Reallocated_Sector_Ct=0 Seek_Error_Rate=0 Power_On_Hours=5262 Spin_Retry_Count=0 Calibration_Retry_Count=0 Power_Cycle_Count=10 Power-Off_Retract_Count=7 Load_Cycle_Count=4 Temperature_Celsius=33 Reallocated_Event_Count=0 Current_Pending_Sector=0 Offline_Uncorrectable=0 UDMA_CRC_Error_Count=0 Multi_Zone_Error_Rate=0
Удалено запускаю так
Код: Выделить всё
./check_nrpe -H 192.168.1.200 -p 5666 -c check_smartВывод
UNKNOWN: No health status line found|
Настройки:
/etc/nagios/nrpe.cfg
Код: Выделить всё
command[check_smart]=/usr/lib/nagios/plugins/check_smart -i ata -d /dev/sda/etc/sudoers
Код: Выделить всё
nagios ALL=(root) NOPASSWD: /usr/lib/nagios/plugins/check_smart
nagios ALL=(root) NOPASSWD: /usr/sbin/smartctlПробую запустить так
sudo -u nagios ./check_smart -i ata -d /dev/sda
Все работает.
Подскажите, что не так? Остальные плагины работают.