Guest User

Untitled

a guest
Jul 20th, 2018
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. /usr/local/nagios/libexec/check_ping -H 192.168.1.2 -w 100.0,90% -c 200.0,60%
  2.  
  3. define service{
  4. host_name linuxbox
  5. service_description PING
  6. check_command check_ping!200.0,80%!400.0,40%
  7. ...
  8. }
  9.  
  10. check_ssh!localhost!xxx22
  11.  
  12. The check_ssh Plugin
  13.  
  14.  
  15. check_ssh v2.2.1.git (nagios-plugins 2.2.1)
  16. Copyright (c) 1999 Remi Paulmier <remi@sinfomic.fr>
  17. Copyright (c) 2000-2014 Nagios Plugin Development Team
  18. <devel@nagios-plugins.org>
  19.  
  20. Try to connect to an SSH server at specified server and port
  21.  
  22.  
  23. Usage:
  24. check_ssh [-4|-6] [-t <timeout>] [-r <remote version>] [-p <port>] <host>
  25.  
  26. Options:
  27. -h, --help
  28. Print detailed help screen
  29. -V, --version
  30. Print version information
  31. --extra-opts=[section][@file]
  32. Read options from an ini file. See
  33. https://www.nagios-plugins.org/doc/extra-opts.html
  34. for usage and examples.
  35. -H, --hostname=ADDRESS
  36. Host name, IP Address, or unix socket (must be an absolute path)
  37. -p, --port=INTEGER
  38. Port number (default: 22)
  39. -4, --use-ipv4
  40. Use IPv4 connection
  41. -6, --use-ipv6
  42. Use IPv6 connection
  43. -t, --timeout=INTEGER:<timeout state>
  44. Seconds before connection times out (default: 10)
  45. Optional ":<timeout state>" can be a state integer (0,1,2,3) or a state STRING
  46. -r, --remote-version=STRING
  47. Alert if string doesn't match expected server version (ex: OpenSSH_3.9p1)
  48. -P, --remote-protocol=STRING
  49. Alert if protocol doesn't match expected protocol version (ex: 2.0)
  50. -v, --verbose
  51. Show details for command-line debugging (Nagios may truncate output)
  52.  
  53. Send email to help@nagios-plugins.org if you have questions regarding use
  54. of this software. To submit patches or suggest improvements, send email to
  55. devel@nagios-plugins.org
Add Comment
Please, Sign In to add comment