Page 3 of 6

Re: How to make Indirect checks

Posted: Mon Apr 06, 2015 10:17 am
by ziedmahjoub
Now i need for the other scripts to check like check_disk_indirect !!
the script for checking disk space is included or i need to make it ?

Re: How to make Indirect checks

Posted: Mon Apr 06, 2015 4:07 pm
by jdalrymple
So ziedmahjoub - the actual command required is going to be on the indirect host once you install nsclient++. The difficult part is getting the intermediate host to speak with that host properly, and to compound the problem you're on a version of nsclient that's very poorly documented. I suggest following Box293's instructions and if they don't help get your 3rd host properly in the mix let us know.

Re: How to make Indirect checks

Posted: Tue Apr 07, 2015 5:27 am
by ziedmahjoub
Referring to Box instructions ,

You mean that the script check_disk.bat should be in host C right ?

Re: How to make Indirect checks

Posted: Tue Apr 07, 2015 3:29 pm
by jdalrymple
check_disk is a builtin component of nsclient++

You only need to install nsclient++ on host C then configure proxying on host B as instructed by Box. You could use an external script like check_disk.bat on host C - it's really not necessary though since it's built right into nsclient++

follow?

Re: How to make Indirect checks

Posted: Wed Apr 08, 2015 1:32 am
by Box293
I added a section to my guide titled "What About Host Ping Checks???".

This has all the steps required to make Host_B ping Host_C.

Let me know if it works as intended.

http://sites.box293.com/nagios/guides/n ... g/nsclient

Re: How to make Indirect checks

Posted: Wed Apr 08, 2015 3:22 am
by ziedmahjoub
jdalrymple wrote:check_disk is a builtin component of nsclient++

You only need to install nsclient++ on host C then configure proxying on host B as instructed by Box. You could use an external script like check_disk.bat on host C - it's really not necessary though since it's built right into nsclient++

follow?
nice i will try it

i can say its the same for all the other standard checks ? ( memory use , uptime , explorer , CPU )

Re: How to make Indirect checks

Posted: Wed Apr 08, 2015 3:24 am
by ziedmahjoub
Box293 wrote:I added a section to my guide titled "What About Host Ping Checks???".

This has all the steps required to make Host_B ping Host_C.

Let me know if it works as intended.

http://sites.box293.com/nagios/guides/n ... g/nsclient
For me , the ping works already with the support of jdalrymple .

Re: How to make Indirect checks

Posted: Wed Apr 08, 2015 11:09 am
by jdalrymple
ziedmahjoub wrote:nice i will try it

i can say its the same for all the other standard checks ? ( memory use , uptime , explorer , CPU )
Correct - let us know how it works.
Also, Box added some notes regarding some bugs in the check_ping.bat script. You MAY want to take a look at them.

Re: How to make Indirect checks

Posted: Mon Apr 13, 2015 3:51 am
by ziedmahjoub
Can i put a host definitions with 2 check_command , like this for example :

Code: Select all

define host{
        use             windows-server  ; Inherit default values from a template
        host_name       ala_pc      ; The name we're giving to this host
        alias           My Windows ; A longer name associated with the host
        address         192.168.0.100   ; IP address of the host
        check_command   indirect_check_ping
        check_command   indirect_check_disk
        }
my check_disk service still UNKNOWN status like in attachment below

Re: How to make Indirect checks

Posted: Mon Apr 13, 2015 9:29 am
by jolson
You will use a 'service check' to define any check that is not the host check. Two host checks cannot be defined on one host. You can read further about service checks and how to define them here: http://nagios.sourceforge.net/docs/3_0/ ... ml#service

Thanks!