LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 04-17-2012, 07:22 AM   #1
syedammarh
LQ Newbie
 
Registered: Feb 2012
Posts: 5
Blog Entries: 1

Rep: Reputation: Disabled
NRPE,CFG for windows monitoring


i have a check of check_ps.sh which provide the memory utilization of any process by mentioning it with -p switch...

can any one tell me the procedure of using it for windows monitoring . i mean ,In NSC.ini where i have to put it or how can i call it i.e check_ps.sh

my monitoring server is nagios plzzz help me
 
Old 04-17-2012, 08:17 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
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".

This site has a list of key commands for XP that may/may not work on other versions of Windows:
http://www.microsoft.com/resources/d....mspx?mfr=true
 
Old 04-18-2012, 01:07 AM   #3
syedammarh
LQ Newbie
 
Registered: Feb 2012
Posts: 5

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
so do you know ...is there any check for windows to provide the memory utlization and application response of any process running on windows...

plz help me
 
Old 04-18-2012, 07:37 AM   #4
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
I didn't find a prewritten script. I did provide with the link to the command that will give you memory by process so you can develop your own.
 
Old 04-19-2012, 03:33 AM   #5
syedammarh
LQ Newbie
 
Registered: Feb 2012
Posts: 5

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Thanks Mensa

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

https://www.itefix.no/i2/taxonomy/term/420

(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...

so much confused
 
Old 04-19-2012, 07:56 AM   #6
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Good find. For the thread what you linked was a discussion so I'm posting the link to the plugin instead:

https://www.itefix.no/i2/check_winprocess

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.
 
1 members found this post helpful.
Old 04-20-2012, 01:55 AM   #7
syedammarh
LQ Newbie
 
Registered: Feb 2012
Posts: 5

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Solved thanks a lot

ah its working...

basically i was missing the "NRPE HANDLERS" part in my nsc.ini file

there is a "nrpe client handers"

so just manually define the part like this in the nsc.ini file at the end of the file :

[NRPE Handlers]
command[check_proc_cnt]=C:\Program Files\NSClient++\scripts\check_winprocess-1.5\check_winprocess.exe

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...


ill wait for ur response....
 
Old 04-20-2012, 07:05 AM   #8
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Glad you got it fixed Please go to Thread Tools and mark this as Solved. It helps others in future with similar questions find solutions more quickly.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Network Monitoring - Communication between Nagios & NRPE aocferreira Linux - Networking 11 03-03-2011 10:13 AM
[SOLVED] how to the give path of the part.cfg file in %include command in ks.cfg. YOGESHAS87 Linux - Newbie 2 01-11-2011 04:33 AM
[SOLVED] "Unable to open config file '//nrpe.cfg' for reading" when using netd.conf MensaWater Other *NIX 1 10-25-2010 07:24 AM
Installing Nagios agent nrpe, problems following nrpe install steps rfreiberger Linux - Newbie 3 04-19-2010 08:43 AM
LXer: Nagios: Monitoring Windows Machines with NRPE LXer Syndicated Linux News 0 03-09-2009 10:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration