Current Path : /opt/zabbix_scripts/ |
Current File : //opt/zabbix_scripts/check_RebootRequired.sh |
#!/bin/bash # API Function Documentation # https://documentation.cpanel.net/display/DD/WHM+API+1+Functions+-+system_needs_reboot /sbin/whmapi1 system_needs_reboot | grep -E '^\ \ needs_reboot:\ [0-1]{1}$' | awk '{print $2}'