| Server IP : 198.38.94.13 / Your IP : 216.73.217.33 Web Server : Apache System : Linux d4744.dxb1.stableserver.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64 User : revivere ( 1140) PHP Version : 8.2.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /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