Re: [Nagios-users] Windows plugin to check process page faults?
Nagios network monitoring software is enterprise server monitoring
Brought to you by:
egalstad,
sawolf-nagios
From: Frost, M. {PBG} <mar...@pe...> - 2006-07-31 16:22:56
|
Thanks very much, Phil! I'm having a little difficulty finding any documentation that tells enumerates the PDH counters. The Microsoft documentation I can find seems to talk more about the API for using PDH rather than enumerating the possible keys you can search on. I See there's a PDHbrowser function in the API which looks like it would be really nice, But I'd have to actually do some Windows programming to get that far.... Thanks Mark -----Original Message----- From: nag...@li... [mailto:nag...@li...] On Behalf Of Phil Costelloe Sent: Friday, July 28, 2006 11:20 AM To: nag...@li... Subject: Re: [Nagios-users] Windows plugin to check process page faults? Frost, Mark {PBG} wrote: > We have a need on a Windows 2003 box to check the number of page > faults a particular process has incurred. I'm not really aware of > how I could do this. =20 >=20 > We are running Nagios 2.4 and use the standard plugins with check_nrpe > 0.8 to monitor CPU, memory and disk space. >=20 > Does anyone know if there's some way to get a plugin to report a > process' page faults?=20 You can access any of the Windows performance counters using nsclient (and presumably nsclient++). The particular counter in this case, given a process called foobar, would be \\Process(foobar)\\Page Faults/Sec and the check command and service entries would be something like: define command { command_name check_nt_pagefaults command_line $USER1$/check_nt -H $HOSTADDRESS$ -p $ARG1$ -v COUNTER -l "\\Process($ARG5$)\\Page Faults/Sec","Page faults per second are %.2f %%" -w $ARG2$ -c $ARG3$ -s $ARG4$ } define service { use generic-service host_name windows_host service_description Page Faults contact_groups amber-admins check_command check_nt_pagefaults!1248!3!5!password!foobar etc etc } Untested but should just about work. Phil =20 -------------------------------------------------------- Phil Costelloe Technical Consultant =20 ph...@fo... http://www.foundation-it.com Foundation IT Foundation Court Old Street Oare Hermitage Berkshire RG18 9SE Switch: +44 (0) 1635 203700 Helpdesk: +44 (0) 800 0121099 DDI: +44 (0) 1635 203719 Fax: +44 (0) 8700 543537 Mobile: +44 (0) 7884 236299 =20 -------------------------------------------------------- This message contains confidential information and is intended only for nag...@li.... If you are not nag...@li... you should not disseminate, distribute or copy this e-mail. Please notify Foundation IT immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. Foundation IT therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. -------------------------------------------------------- ------------------------------------------------------------------------ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDE V _______________________________________________ Nagios-users mailing list Nag...@li... https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.=20 ::: Messages without supporting info will risk being sent to /dev/null |