summaryrefslogtreecommitdiff
path: root/puppet/modules/site_nagios/templates/icli_aliases.erb
blob: bcb2abb060d5dafc44f5240f6ad760db27f2275f (plain)
1
2
3
4
5
6
7
alias ncli='icli -c /var/cache/nagios3/objects.cache -f /var/cache/nagios3/status.dat  -F /var/lib/nagios3/rw/nagios.cmd'
alias ncli_problems='ncli -z '!o,!A''

<% @environments.keys.sort.each do |env_name| %>
alias ncli_<%= env_name %>='ncli -z '!o,!A' -g <%= env_name %>'
alias ncli_<%= env_name %>_recheck='ncli -s Check_MK -g <%= env_name %> -a R'
<% end -%>