Build precise queries to find exactly what you need
Press ESC to close
Join our next live webinar: “Advanced Nagios Monitoring Techniques” – Register Now
@linux_samurai
Favorites0
Views
Projects0
This checks does what is intended. A simple bash script that awk's the uptime with output being user-friendly. We have implemented this check on Red Hat & CentOS 5 servers.
Reviewed 14 years ago
I reviewed this scripts code and tested on several sandbox servers. I then implemented it on multiple CentOS 5.x environments with no problems. This plugin is definitely helpful with quickly pinpointing servers that haven't been patched. Additionally, I have it only checking every 24 hours, and have alerting turned off except business hours. Here is our service definition: -=-=-=-=-=-=-=-=-=-=-=-=-= define service{ use generic-service host_name hosta,hostb,hostc max_check_attempts 3 normal_check_interval 1440 retry_check_interval 120 notification_interval 1440 notification_period workhours service_description Check_Linux_Updates check_command check_nrpe!check_yum }
We use Windows shared folders to mount as CIFS shares on our Linux servers for backups. The below modifications where made to get it working for our CIFS mount points. Overall, the script works as advertised, and I have tested (CentOS 5) to confirm the script properly errors when mount is not attached or if folder is moved. CHANGES: 1. Since our mounts are CIFS, we changed all occurrences of "nfs" to "cifs". 2. Commented out section checking fstab. I would prefer to see this as a function in the script and have it be an optional check if the mount point is in fstab. commented out: # awk '{if ($3=="cifs"){print $2}}' /etc/fstab | grep -q ${MP} &>/dev/null # if [ $? -ne 0 ]; then # log "WARN: ${MP} don't exists in /etc/fstab" # ERR_MESG[${#ERR_MESG[*]}]="${MP} don't exists in /etc/fstab" # fi