| Server IP : 198.38.94.67 / Your IP : 216.73.217.74 Web Server : LiteSpeed System : Linux d6054.dxb1.stableserver.net 5.14.0-570.25.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 9 04:57:09 EDT 2025 x86_64 User : azfilmst ( 1070) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /proc/self/root/lib64/nagios/plugins/ |
Upload File : |
#!/bin/bash # SYSENG-26861 ensure the correct number of templates. Update this script when adding new templates. unmanaged has 1 less template than managed. If over min, warn/remind to update this script with new values # Get the current hostname hostname=$(hostname) # Skip if its a VZBK server if [[ $(hostname) =~ -vzbk* ]]; then exit fi # Check if 'vu' is in the hostname after 2nd hyphen for unmanaged if [[ $hostname =~ -[^-]*-.*vu ]]; then min=16 else min=18 fi count=$(/sbin/vzpkg list -Oc | wc -l) if [ "$count" -lt "$min" ]; then echo "vz7-template_count - VZ7 Template count is less than $min!" exit 2 elif [ "$count" -gt "$min" ]; then echo "vz7-template_count - VZ7 Template count exceeds $min! Update vz7-template_count.vz7 with new values." exit 1 else echo "vz7-template_count - VZ7 Template count is OK!" exit 0 fi