Skip to content

fernvenue/ssacli-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HPE Smart Array Health Checker

ssacli-checker ssacli-checker

Daily automatic health check for HPE Smart Array.

Features

  • Automatic daily health check of HPE Smart Array using ssacli;
  • Systemd service and timer for scheduled updates;
  • Optional Telegram notifications with update reports;
  • Configurable logging levels;
  • Custom Telegram API endpoint support;
  • Easy configuration via environment variables.

Requirements

Before using this script, ensure you have installed ssacli, go HPE Software Delivery Repository to get the package.

Usage

First, download the script to /usr/local/bin:

curl -o /usr/local/bin/ssacli-checker.sh https://raw.githubusercontent.com/fernvenue/ssacli-checker/master/ssacli-checker.sh

Give execute permissions:

chmod +x /usr/local/bin/ssacli-checker.sh

Test the script:

/usr/local/bin/ssacli-checker.sh --help

Add systemd service and timer:

curl -o /etc/systemd/system/ssacli-checker.service https://raw.githubusercontent.com/fernvenue/ssacli-checker/master/ssacli-checker.service
curl -o /etc/systemd/system/ssacli-checker.timer https://raw.githubusercontent.com/fernvenue/ssacli-checker/master/ssacli-checker.timer

You can customize the service file to set your environment variables, then enable and start the timer:

systemctl enable ssacli-checker.timer --now
systemctl status ssacli-checker.timer
systemctl status ssacli-checker.service

You may wanna restrict access to the service file, so that your environment variables are not readable by other users:

chmod 600 /etc/systemd/system/ssacli-checker.service

About

Daily automatic health check for HPE Smart Array.

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages