Porblem installing the Windows Agent

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Porblem installing the Windows Agent

Post by Box293 »

ziedmahjoub wrote:2- can someone tell me how when i want to monitor a 2nd windows host , how i must modify this ? :

Code: Select all
define command{
command_name check_nt
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -s PASSWORD -v $ARG1$ $ARG2$
}

i just need to copy paste and change USER1 to USER2 and another PASSWORD
or just let it and add argument -s PASSWORD2 in the same command_line ???
The command does not change.

You create another service for the new host which uses this command.
Also, if the checks are identical, you can create a hostgroup, assign the multiple hosts into the hostgroup, and then assign the service to the hostgroup ... this way you have one configuration definition but multiple hosts with that service.

Time-Saving Tricks For Object Definitions
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
ziedmahjoub
Posts: 142
Joined: Fri Jan 16, 2015 5:22 am

Re: Porblem installing the Windows Agent

Post by ziedmahjoub »

Also, if the checks are identical, you can create a hostgroup, assign the multiple hosts into the hostgroup, and then assign the service to the hostgroup ... this way you have one configuration definition but multiple hosts with that service.

Time-Saving Tricks For Object Definitions
Box293 this section is ok i understand it , thanks so much !!

And the client worked well for windwos 7 64 bits and i was able to monitor it, but the icon tray didn't show up and if i enable it it says :"offline" so maybe its a bug .

Another thing , i've seen that you told me not change the check_nt command_line so i understand that all client machines
must have the same password behind the [settings] section ,is that right ?? Because when i did that i was able to monitor more then 1 machine
ziedmahjoub
Posts: 142
Joined: Fri Jan 16, 2015 5:22 am

Re: Porblem installing the Windows Agent

Post by ziedmahjoub »

lgroschen wrote:I think the apt rpm you need is libssl-dev instead of openssl-dev
i did it but when i make ./configure it tolds me :

Code: Select all

Cheking for SSL libraries... configure : error : Cannot find ssl libraries
User avatar
lgroschen
Posts: 384
Joined: Wed Nov 27, 2013 1:17 pm

Re: Porblem installing the Windows Agent

Post by lgroschen »

Find the package with this:

Code: Select all

apt-file search libssl | grep libssl-dev
Then if it's available try this to configure:

Code: Select all

./configure --with-ssl=/usr/bin/openssl --with-ssl-lib=/usr/lib/x86_64-linux-gnu
/Luke
ziedmahjoub
Posts: 142
Joined: Fri Jan 16, 2015 5:22 am

Re: Porblem installing the Windows Agent

Post by ziedmahjoub »

Thanks lgroschen , its done !!

i received response :

Code: Select all

I (0.3.7.494 2009-10-12) seem to be doing fine
so the nrpe plugin is installed and working properly !!

problem solved . Thank you box293 , thank you Igroschen , thanks all
cmerchant
Posts: 546
Joined: Wed Sep 24, 2014 11:19 am

Re: Porblem installing the Windows Agent

Post by cmerchant »

We'll go ahead and close the thread. Thanks.
Locked