Advertisement
iarmin

Nagios NRPE plugin / check_uptime

Jan 2nd, 2012
704
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.15 KB | None | 0 0
  1. # check_uptime
  2. # /usr/lib/nagios/plugins/check_uptime
  3.  
  4.  
  5. #!/bin/bash
  6.  
  7. echo -n "OK "
  8. uptime | sed -r 's#.*up (.*),\s*[0-9]+ user.*#\1#'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement