how can monitor url website with check_ping on windows clien

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.
Locked
baber
Posts: 295
Joined: Wed Oct 21, 2015 4:39 am

how can monitor url website with check_ping on windows clien

Post by baber »

Dear all

i have a website and many virtual machine that just via one of my virtual machine (vm1) that host have to open and vm1 is windows os now i want to know
can i use this script :

https://github.com/catinello/nagios-check-website

can this script run on nagios server and first connect to vm1(windows os) and then via that chk my website can be open or not?


BR
Last edited by baber on Tue Nov 29, 2016 1:00 pm, edited 2 times in total.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: how can monitor url website from nagios via other VM

Post by rkennedy »

As it's a third party plugin, it's hard to say. At a quick glance though it appears to be bash which I don't think will run properly on Windows yet.
Former Nagios Employee
baber
Posts: 295
Joined: Wed Oct 21, 2015 4:39 am

Re: how can monitor url website from nagios via other VM

Post by baber »

rkennedy wrote:As it's a third party plugin, it's hard to say. At a quick glance though it appears to be bash which I don't think will run properly on Windows yet.
This is my plan

I have a server that os is windows server2008 now i can this server completely from nagios such as disk space cpu memory and .... now i have a website that this server just can access to that now i want just check http or check website url that sure website is ok and that server has access that i thought perhaps nagios server can connect to that server and then check url or check website that is ok or not now can i do this with nagios or if can not use this way what solution do you have for monitor that website url from a server??

BR
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: how can monitor url website from nagios via other VM

Post by tgriep »

Take a look at this link to see if this would work for you.
https://exchange.nagios.org/directory/P ... pe/details
Be sure to check out our Knowledgebase for helpful articles and solutions!
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: how can monitor url website from nagios via other VM

Post by avandemore »

See example 2b. https://assets.nagios.com/downloads/nag ... e/NRPE.pdf

You would need to find some Windows equivalent of check_http so that NSClient can run it, or install a Unix/Linux VM on the 2008 server and run it from there.
Previous Nagios employee
baber
Posts: 295
Joined: Wed Oct 21, 2015 4:39 am

Re: how can monitor url website from nagios via other VM

Post by baber »

So thanks

check_ping.bat is ok for me but when i run this plugin on windows client it is ok

check_ping.bat google.com

OK: Ping succeded

but now i want it chk automatically from nagios

i have added this line to nsclient.ini file :
i have attached nasclient.ini file

Code: Select all

check_web_up = check_ping.bat google.com
and on that server.cfg file add this service

Code: Select all

define service{
use          		 generic-service
host_name      		 Topup-Service
service_description      website
check_command       	 check_nrpe!check_ping 
}


but not work and appear this message on nagios

Unknown command(s): check_ping
Attachments
nsclient.ini
(15.54 KiB) Downloaded 230 times
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: how can monitor url website with check_ping on windows c

Post by avandemore »

We don't write or maintain NSClient, nor do we support custom plugins. That being said, here are some pointers:

You defined a command check_web_up. Then you called a command check_nrpe!check_ping. This most likely should be check_nrpe!check_web_up along with ensuring NSClient has been restarted after the configuration change. For further assistance with this topic, please consult the document I linked to previously and the NSClient website https://www.nsclient.org/.
Previous Nagios employee
baber
Posts: 295
Joined: Wed Oct 21, 2015 4:39 am

Re: how can monitor url website with check_ping on windows c

Post by baber »

avandemore wrote:We don't write or maintain NSClient, nor do we support custom plugins. That being said, here are some pointers:

You defined a command check_web_up. Then you called a command check_nrpe!check_ping. This most likely should be check_nrpe!check_web_up along with ensuring NSClient has been restarted after the configuration change. For further assistance with this topic, please consult the document I linked to previously and the NSClient website https://www.nsclient.org/.

so thanks
my problem has been solved

BR
Locked