INSTALL 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  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/
  6. * put links to ~/.irssi/scripts/ to ~/.irssi/scripts/autorun
  7. Add to nagios commands :
  8. # 'notify-host-by-irssi' command definition
  9. define command{
  10. command_name notify-host-by-irssi
  11. command_line /usr/local/bin/nagios-irssi.pl $CONTACTPAGER$ "[$LASTHOSTSTATECHANGE$] HOST ALERT: $HOSTNAME$@$HOSTSTATE$@HARD@1@$HOSTOUTPUT$"
  12. }
  13. define command{
  14. command_name notify-service-by-irssi
  15. command_line /usr/local/bin/nagios-irssi.pl $CONTACTPAGER$ "[$LASTSERVICESTATECHANGE$] SERVICE ALERT: $HOSTNAME$@$SERVICEDESC$@$SERVICESTATE$@HARD@1@$SERVICEOUTPUT$"
  16. }
  17. Add to /etc/nagios3/<placeholder>.cfg
  18. define contact {
  19. contact_name TC-14
  20. service_notification_period 24x7
  21. alias IRSSI Bot
  22. #service_notification_options w,c,u,r,s
  23. #host_notification_options d,u,r,s
  24. service_notification_options c,r
  25. host_notification_options d,u,r,s
  26. email tc-14@yoursystem.com
  27. service_notification_commands notify-service-by-irssi
  28. host_notification_commands notify-host-by-irssi
  29. pager /home/tc-14/var/nagios-fifo
  30. }