adding comments

adding host comments

  • echo "[`date +%s`] ADD_HOST_COMMENT;hostname;1;author;comment" > /var/lib/icinga/rw/icinga.cmd
  • it is used on atlas1 and monitonodes in the script /usr/local/bin/get_hosts_comments.sh

reading host comments

  • works only on monitornodes
  • it does an elinks dump
  • it is used on monitonodes in the script /usr/local/bin/get_hosts_comments.sh

getting a list of hosts with a particular problem reported by icinga

  • it uses the icinga-web database
  • can combined with dsh
  • dsh -m `/usr/local/bin/get_nodes.rb "Connection refused"` -c -M "ps aux|grep nrpe|grep -v grep"
-- HenningFehrmann - 05 May 2014
Topic revision: r1 - 05 May 2014, HenningFehrmann
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback