Guest User

Untitled

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