mailq_sudo.conf 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #
  2. # Bloody fooking plugin doesn't do sudo correcty.
  3. #
  4. object CheckCommand "sudo_mailq" {
  5. command = [ "sudo", PluginDir + "/check_mailq" ]
  6. arguments = {
  7. "-w" = {
  8. value = "$mailq_warning$"
  9. description = "Min. number of messages in queue to generate warning"
  10. required = true
  11. }
  12. "-c" = {
  13. value = "$mailq_critical$"
  14. description = "Min. number of messages in queue to generate critical alert ( w < c )"
  15. required = true
  16. }
  17. "-W" = {
  18. value = "$mailq_domain_warning$"
  19. description = "Min. number of messages for same domain in queue to generate warning"
  20. }
  21. "-C" = {
  22. value = "$mailq_domain_critical$"
  23. description = "Min. number of messages for same domain in queue to generate critical alert ( W < C )"
  24. }
  25. "-t" = {
  26. value = "$mailq_timeout$"
  27. description = "Plugin timeout in seconds (default = 15)"
  28. }
  29. "-M" = {
  30. value = "$mailq_servertype$"
  31. description = "[ sendmail | qmail | postfix | exim | nullmailer ] (default = autodetect)"
  32. }
  33. "-s" = {
  34. set_if = "$mailq_sudo$"
  35. description = "Use sudo for mailq command"
  36. }
  37. }
  38. }