diff options
author | guido <guido@bruo.org> | 2014-12-18 19:37:51 -0300 |
---|---|---|
committer | guido <guido@bruo.org> | 2014-12-18 20:06:55 -0300 |
commit | 784cc8dcc03f63587206d62b5d49843eb974dbe1 (patch) | |
tree | cfbce92242ca1cd091456c3a10c0777d37b3fbad /puppet/modules/site_nagios/templates | |
parent | d024a172ee4b2dc7fca4fe4251c930ff437f1f1b (diff) |
Install icli package and configure ncli aliases (solves #6475)
Change-Id: I0f9397593bc4f00b64b626a159be09ab5ef694d6
Diffstat (limited to 'puppet/modules/site_nagios/templates')
-rw-r--r-- | puppet/modules/site_nagios/templates/icli_aliases.erb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/puppet/modules/site_nagios/templates/icli_aliases.erb b/puppet/modules/site_nagios/templates/icli_aliases.erb new file mode 100644 index 00000000..f1428f9e --- /dev/null +++ b/puppet/modules/site_nagios/templates/icli_aliases.erb @@ -0,0 +1,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 %> -r' +<% end -%>
\ No newline at end of file |