INSTALL 1.4 KB

12345678910111213141516171819202122232425262728293031323334
  1. Quick install in 3 words
  2. * Check the symlinks
  3. * put nagios-irssi.pl into /usr/local/bin
  4. * modify config file (to be put on ~.irssi/) to match your configuration
  5. * put scripts .pl into ~/.irssi/scripts/autorun
  6. Add to nagios commands :
  7. # 'notify-host-by-irssi' command definition
  8. define command{
  9. command_name notify-host-by-irssi
  10. command_line /usr/local/bin/nagios-irssi.pl $CONTACTPAGER$ "[$LASTHOSTSTATECHANGE$] HOST ALERT: $HOSTNAME$@$HOSTSTATE$@HARD@1@$HOSTOUTPUT$"
  11. }
  12. define command{
  13. command_name notify-service-by-irssi
  14. command_line /usr/local/bin/nagios-irssi.pl $CONTACTPAGER$ "[$LASTSERVICESTATECHANGE$] SERVICE ALERT: $HOSTALIAS$@$SERVICEDESC$@$SERVICESTATE$@HARD@1@$SERVICEOUTPUT$"
  15. }
  16. Add to /etc/nagios3/<placeholder>.cfg
  17. define contact {
  18. contact_name TC-14
  19. service_notification_period 24x7
  20. alias IRSSI Bot
  21. #service_notification_options w,c,u,r,s
  22. #host_notification_options d,u,r,s
  23. service_notification_options c,r
  24. host_notification_options d,u,r,s
  25. email tc-14@yoursystem.com
  26. service_notification_commands notify-service-by-irssi
  27. host_notification_commands notify-host-by-irssi
  28. pager /home/tc-14/var/nagios-fifo
  29. }