02.12.2015 Views

Network UPS Tools User Manual

Network UPS Tools User Manual

Network UPS Tools User Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Network</strong> <strong>UPS</strong> <strong>Tools</strong> <strong>User</strong> <strong>Manual</strong><br />

vi<br />

6.3.3 Using suspend to disk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28<br />

6.3.4 RAID warning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28<br />

6.4 Typical setups for enterprise networks and data rooms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29<br />

6.5 Typical setups for big servers with <strong>UPS</strong> redundancy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30<br />

6.5.1 Example configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30<br />

6.5.2 Multiple <strong>UPS</strong> shutdowns ordering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31<br />

6.5.3 Other redundancy configurations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31<br />

7 Advanced usage and scheduling notes 31<br />

7.1 The simple approach, using your own script . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32<br />

7.1.1 How it works relative to upsmon . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32<br />

7.1.2 Setting up everything . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32<br />

7.1.3 Using more advanced features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32<br />

7.1.4 Suppressing notify storms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33<br />

7.2 The advanced approach, using upssched . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33<br />

7.2.1 How upssched works relative to upsmon . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33<br />

7.2.2 Setting up your upssched.conf . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33<br />

The big picture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33<br />

Establishing timers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34<br />

Executing commands immediately . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34<br />

7.2.3 Writing the command script handler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34<br />

7.2.4 Early Shutdowns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35<br />

7.2.5 Background . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35<br />

8 NUT outlets management and PDU notes 35<br />

8.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35<br />

8.2 NUT outlet data collection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36<br />

8.3 Outlets on PDU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36<br />

8.4 Outlets on <strong>UPS</strong> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36<br />

8.5 Other type of devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37<br />

9 Notes on securing NUT 37<br />

9.1 How to verify the NUT source code signature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37<br />

9.2 System level privileges and ownership . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38<br />

9.3 NUT level user privileges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38<br />

9.4 <strong>Network</strong> access control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38<br />

9.4.1 NUT LISTEN directive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38<br />

9.4.2 Firewall . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39<br />

Uncomplicated Firewall (UFW) support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39<br />

9.4.3 TCP Wrappers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!