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
how can monitor url website with check_ping on windows clien
how can monitor url website with check_ping on windows clien
Last edited by baber on Tue Nov 29, 2016 1:00 pm, edited 2 times in total.
Re: how can monitor url website from nagios via other VM
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
Re: how can monitor url website from nagios via other VM
This is my planrkennedy 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.
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
Re: how can monitor url website from nagios via other VM
Take a look at this link to see if this would work for you.
https://exchange.nagios.org/directory/P ... pe/details
https://exchange.nagios.org/directory/P ... pe/details
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 1597
- Joined: Tue Sep 27, 2016 4:57 pm
Re: how can monitor url website from nagios via other VM
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.
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
Re: how can monitor url website from nagios via other VM
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
and on that server.cfg file add this service
but not work and appear this message on nagios
Unknown command(s): check_ping
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
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
-
- Posts: 1597
- Joined: Tue Sep 27, 2016 4:57 pm
Re: how can monitor url website with check_ping on windows c
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/.
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
Re: how can monitor url website with check_ping on windows c
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