Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm assuming check_ps.sh was written to run as a shell script on UNIX/Linux and relies on the command "ps". As such it would not run natively on Windows because there is no "ps" command. What you'd need to do is find the Windows equivalent to check memory by process (assuming there is one) then create a batch file or vb script that does the check you want. You could then add that to your NSC.ini for checking from Nagios master.
It appears a likely command for getting memory information for a process would be "tasklist".
well thanks a lot mensa for supporting me..... can you favour me only for a thing ...i found the plugin tht check the every process of windows and provides the memory utilization through check_winprocess nagios plugin
(1)while if i manually run it in windows cmd its working ...well i dont know how to call it in nagios ..i mean where i have to define it in nsc.ini ...in which location ...nrpe handlers???
i cant see nrpe handlers in my nsc.ini file..while i found it nrpe client handlers...so bit confused as well
and what will be the format?? of defining it...have i also define it on nrpe.cfg???
(2) do u know any nagios plugin for windows that checks the resplication time of any application... Target is response time...
For adding to NSC.ini you might want to have a look at this thread which is talking about a different plugin but gives full NSC.ini examples: https://www.itefix.no/i2/node/11970
On Windows with NSClient++ (which is what uses NSC.ini) there is no nrpe.cfg file - that file is used on UNIX/Linux hosts that use the nrpe plugin. However the master Nagios servers uses check_nrpe to check both NPRE plugin hosts AND NSClient++ hosts running in nrpe mode. (That is the Windows client allows different modes one of which is nrpe.) The confusion comes in the fact that there are various plugin clients available one of which I think is an nrpe for Windows but you've indicated you're using NSClient++ (as we are) so your edits should be to NSC.ini on the Windows client.
restarted the nsclient service and from my nagios server i run ... ""
./check_nrpe -H xxxx -c check_proc_cnt
and its showing me the output
thanks a lot for ur reference providing me but there is no need to define extra services on windows host ... just manually define the nrpe handlers part ..thats all
well thanks a lot dear
are u on skype .... or linkedIn ...i recently installed redhat satellite project in UAE...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.