passive or active checks over ssh satellite (cause of dmz) [solved]

Denny Schierz linuxmail at 4lin.net
Fri Feb 22 16:41:53 CET 2008


hi,

reading my own words could be useful, sometimes ;-)

for google:

Example for disk:

commands.cfg

#####

[...]

define command{
   command_name ssh_check_dmz_icmp
   command_line $USER1$/check_by_ssh -H ssh-sat -C "$USER1$/check_icmp  
-H $ARG1$"
}


define command{
   command_name ssh_check_dmz_rootdisk
   command_line $USER1$/check_by_ssh -H ssh-sat -C "$USER1$/check_nrpe  
-H $ARG1$ -c check_hda5"
}

#####

host.cfg

#####

define host{
  use linux-server
  host_name dmzpc01
  address 192.168.198.101
  check_command ssh_check_dmz_icmp!dmzpc01
}

define service{
  use generic-service
  host_name dmzpc01
  service_description Check rootdisk
  check_command ssh_check_dmz_rootdisk!dmzpc01
}

Mabe, you can use sh_check_dmz_rootdisk!$HOSTADDRRESS$, but not tested now.
Don't forget to configure nrpe on dmzhost01. Also it is in most cases  
better to use IP, instead of hostnames!

cu denny

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list