I got it working from the check command and it returns to the GUI now...I made a typo :(
Correct check_command: check_nt!COUNTER!-l "\\Process(OUTLOOK)\\Working Set" With more assistance from meulie.net forum, (http://www.meulie.net/portal_plugins/forum/forum_viewtopic.php?11229) I got the data I needed. Now I have another question, and maybe it has been answered before, but looking at the GUI currently, for this process it shows: Outlook Memory Usage in Bytes OK 11-06-2008 07:29:18 0d 22h 15m 8s 1/3 74694700 Which is correct when compared to Task Manager. What I want to know is, can I divide this by 1024 to get into kb AND format it with a comma? :) I know that is a lot to ask...but would be nice. There is an optional <description> output for the COUNTER variable, but am unsure of exactly how it works, and if this is even the route I should take. Greatly appreciate any help in advance. Best Regards, Izz > -----Original Message----- > From: [EMAIL PROTECTED] > Sent: Sun, 1 Jun 2008 22:02:29 -0800 > To: nagios-users@lists.sourceforge.net > Subject: Re: [Nagios-users] Windows Service detail continued > > I guess I should have put in the command again as a refresher: > check_nt -H 192.168.1.1 -p 12489 -v COUNTER -l "Process\(Outlook)\Working > Set" > this works from the terminal of the Nagios server. > > Thanks again, > Izz > >> -----Original Message----- >> From: [EMAIL PROTECTED] >> Sent: Sun, 1 Jun 2008 22:01:07 -0800 >> To: nagios-users@lists.sourceforge.net >> Subject: [Nagios-users] Windows Service detail continued >> >> Can I just write a shell script to do this for me? check_nt works just >> fine with returning the value from the server's terminal console, but as >> stated before, this doesn't work if I put into the service definitions. >> I'm using NSClient++. >> >> Also, I am very familiar with WMI scripting, but how to get this >> information back to the Nagios GUI? That's my problem at hand. I can >> do >> it from the console, but want everything in the GUI as power users will >> be monitoring this. It needs to be a monitor, not an "ok, now let's >> check". :-) >> >> Thanks in advance, >> Izz >> >> >> -----Original Message----- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] On Behalf Of Anthony >> Montibello >> Sent: Friday, May 23, 2008 6:19 AM >> To: Izz Abdullah >> Cc: nagios >> Subject: Re: [Nagios-users] Performance data for service >> >> You could try testing with >> NC_NEt(http://sourceforge.net/projects/nc-net) >> or NSCLinet (http://nsclient.ready2run.nl/) >> >> They are both copatible with Check_nt so there will be minimal to no >> reconfiguration needed on Nagios side, However the default listen port >> is 1248 so you would need to at least configure that on the client side. >> >> check_nt does not have a showall for COunters , so that should not havee >> helped anything. Run the command help and check the documentation for >> your windows plugin. Also check the service description >> >> I prefer to use the following definition: >> define command{ >> command_name check_nt_with_L >> command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -s PASSWORD >> -v >> $ARG1$ -l "$ARG2$" $ARG3$ >> } >> then the check command: >> check_nt!COUNTER!Process\(Outlook)\Working Set >> since the passing to the Command definision may be losing your "" >> NC_Net would return a -1 when your Counter fails to actually connect but >> I do not know what nsclient++ returns on a bad counter. >> You may need to test from the command line what nsclient++ returns when >> the COunter is incorrect syntex. >> Tony (Author of NC_NEt) >> On Thu, May 22, 2008 at 5:49 AM, Izz Abdullah <[EMAIL PROTECTED]> >> wrote: >> Ok, so I found an example using the COUNTER object. From the Nagios >> server I can run the following and get correct data back: >> >> check_nt -H 192.168.1.1 -p 12489 -v COUNTER -l >> "Process\(Outlook)\Working >> Set" >> this returns memory for me... >> >> but when i put this into the windows.cfg file as: >> check_nt!COUNTER!-l "Process\(Outlook)\Working Set" >> >> it verifies as no errors, but the GUI is showing 0, which is not the >> same >> as from the command-line. I also tried the -d SHOWALL option and that >> didn't work. Any ideas? >> >> Thanks in advance, >> Izz >> >> -----Original Message----- >> From: [EMAIL PROTECTED] >> Sent: Tue, 20 May 2008 22:00:12 -0400 >> To: [EMAIL PROTECTED] >> Subject: Re: [Nagios-users] Performance data for service >> You should be able to get this data through the Process performance >> counter object with the instance set to the process name (as long as you >> can map the process name to an actual counter instance) >> >> or you should be able to get this data through a WMI querry >> >> Or you can write a script or program and get the data through NC_NEt or >> a >> NRPE plugin >> >> TOny (author of NC_Net) >> On Tue, May 20, 2008 at 5:05 AM, Izz Abdullah <[EMAIL PROTECTED]> >> wrote: >> Not necessarily explorer.exe. >> >> I am looking more at some java instances, (java.exe, etc.). I want to >> know CPU load as well as Memory usage of a process. >> >> Thanks, >> Izz >> >>> -----Original Message----- >>> From: [EMAIL PROTECTED] >>> Sent: Tue, 20 May 2008 10:49:48 +0200 >>> To: nagios-users@lists.sourceforge.net >>> Subject: Re: [Nagios-users] Performance data for service >>> >>> Hi Izz, >>> >>> Izz Abdullah schrieb: >>>> I have enabled performance data for my monitored Windows 2k3 server. >>>> I >>>> am receiving performance data, not extremely clear, but receiving, for >>>> the defaulted services. What I want is to see performance data on >>>> running processes as well (e.g. the Explorer.exe process has nothing >>>> in >>>> the performance data field). Can someone please assist? >>> >>> What kind of performance data would you expect from explorer.exe? With >>> some services, it just doesn't make much sense to have performance >>> analyzed, in my opinion. >>> >>> Greetz, Marcus >>> >>> ------------------------------------------------------------------------- >>> This SF.net email is sponsored by: Microsoft >>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>> _______________________________________________ >>> Nagios-users mailing list >>> Nagios-users@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/nagios-users >>> ::: Please include Nagios version, plugin version (-v) and OS when >>> reporting any issue. >>> ::: Messages without supporting info will risk being sent to /dev/null >> ____________________________________________________________ >> FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop! >> Check it out at http://www.inbox.com/earth >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null >> >> ____________________________________________________________ >> GET FREE SMILEYS FOR YOUR IM & EMAIL - Learn more at >> http://www.inbox.com/smileys >> Works with AIM®, MSN® Messenger, Yahoo!® Messenger, ICQ®, Google Talk™ >> and most webmails >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null > > ____________________________________________________________ > GET FREE SMILEYS FOR YOUR IM & EMAIL - Learn more at > http://www.inbox.com/smileys > Works with AIM®, MSN® Messenger, Yahoo!® Messenger, ICQ®, Google Talk™ > and most webmails > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ____________________________________________________________ FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins, sharks & orcas on your desktop! Check it out at http://www.inbox.com/marineaquarium ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null