/adei/trunk

To get this branch, use:
bzr branch http://darksoft.org/webbzr/adei/trunk

« back to all changes in this revision

Viewing changes to scripts/monitor/nagios_ssh_user.sh

  • Committer: Suren A. Chilingaryan
  • Date: 2012-07-20 20:43:00 UTC
  • Revision ID: csa@dside.dyndns.org-20120720204300-0d0tfue4v0enn2fm
A bunch of monitoring scripts

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
 
 
3
function in_array() {
 
4
    local hay needle=$1
 
5
    shift
 
6
    for hay; do
 
7
        [[ $hay == $needle ]] && return 0
 
8
    done
 
9
 
 
10
    return 1
 
11
}
 
12
 
 
13
echo -n root