File manager - Edit - /usr/lib64/nagios/plugins/check_yum_updates
Back
#!/bin/bash ################################################## # Name: check-yum-updates.sh # Description: Checks for yum updates. ################################################## # Set Variables # YUMTMP="/tmp/yum-check-update.$$" sudo /usr/bin/yum check-update | grep -v kernel* | grep -v kmod* >& $YUMTMP YUMSTATUS="$?" # ################################################## # Main Script # case $YUMSTATUS in 0) # no updates! echo "There are no updates available." exit 0 ;; *) # updates available echo "Updates are available." exit 1 ;; esac ##################################################
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings