-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 For sake of simplicity here is how I have things setup on my nagios server. I am running nsclient++ on all my windows servers with the included nsc.ini. On the Nagios Box I am using check_nrpe
I am checking these things for each server C Drive CPU D Drive Paged Memory Physical Memory Planar Temp Processor Temp Virtual Memory Here are the commands for each one. define command { command_name CheckDriveSize command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -p 5666 -c CheckDriveSize -a Drive=$ARG1$ ShowAll MaxWarn=$ARG2$ MaxCrit =$ARG3$ } define command { command_name check_ncs_cpu command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -p 5666 -c checkCPU -a warn=$ARG1$ crit=$ARG2$ time=60m time=30m time=5m } define command { command_name check_ncs_mem command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -p 5666 -c checkmem -a type=$ARG1$ MaxWarn=$ARG2$ MaxCrit=$ARG3$ } define service { hostgroup_name branch_servers service_description C Drive is_volatile 0 check_command CheckDriveSize!C:!50%!75% max_check_attempts 3 normal_check_interval 2 retry_check_interval 1 active_checks_enabled 1 passive_checks_enabled 1 check_period 24x7 parallelize_check 1 obsess_over_service 1 check_freshness 0 event_handler_enabled 1 flap_detection_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 contact_groups nt-admins notification_interval 240 notification_period 24x7 notification_options w,u,c,r notifications_enabled 1 register 1 } define service { hostgroup_name branch_servers service_description CPU is_volatile 0 check_command check_ncs_cpu!75!85 max_check_attempts 3 normal_check_interval 2 retry_check_interval 1 active_checks_enabled 1 passive_checks_enabled 1 check_period 24x7 parallelize_check 1 obsess_over_service 1 check_freshness 0 event_handler_enabled 1 flap_detection_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 contact_groups nt-admins notification_interval 240 notification_period 24x7 notification_options w,u,c,r notifications_enabled 1 register 1 } define service { hostgroup_name branch_servers service_description D Drive is_volatile 0 check_command CheckDriveSize!D:!50%!75% max_check_attempts 3 normal_check_interval 2 retry_check_interval 1 active_checks_enabled 1 passive_checks_enabled 1 check_period 24x7 parallelize_check 1 obsess_over_service 1 check_freshness 0 event_handler_enabled 1 flap_detection_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 contact_groups nt-admins notification_interval 240 notification_period 24x7 notification_options w,u,c,r notifications_enabled 1 register 1 } define service { hostgroup_name branch_servers service_description Paged Memory is_volatile 0 check_command check_ncs_mem!paged!80%!90% max_check_attempts 3 normal_check_interval 2 retry_check_interval 1 active_checks_enabled 1 passive_checks_enabled 1 check_period 24x7 parallelize_check 1 obsess_over_service 1 check_freshness 0 event_handler_enabled 1 flap_detection_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 contact_groups nt-admins notification_interval 240 notification_period 24x7 notification_options w,u,c,r notifications_enabled 1 register 1 } define service { hostgroup_name branch_servers service_description Physical Memory is_volatile 0 check_command check_ncs_mem!physical!80%!90% max_check_attempts 3 normal_check_interval 2 retry_check_interval 1 active_checks_enabled 1 passive_checks_enabled 1 check_period 24x7 parallelize_check 1 obsess_over_service 1 check_freshness 0 event_handler_enabled 1 flap_detection_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 contact_groups nt-admins notification_interval 240 notification_period 24x7 notification_options w,u,c,r notifications_enabled 1 register 1 } define service { hostgroup_name branch_servers service_description Planar Temp is_volatile 0 check_command check_snmp!.1.3.6.1.4.1.674.10892.1.700.20.1.6.1.2!700!1100 max_check_attempts 3 normal_check_interval 2 retry_check_interval 1 active_checks_enabled 1 passive_checks_enabled 1 check_period 24x7 parallelize_check 1 obsess_over_service 1 check_freshness 0 event_handler_enabled 1 flap_detection_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 contact_groups nt-admins notification_interval 240 notification_period 24x7 notification_options w,u,c,r notifications_enabled 1 register 1 } define service { hostgroup_name branch_servers service_description Processor Temp is_volatile 0 check_command check_snmp!.1.3.6.1.4.1.674.10892.1.700.20.1.6.1.1!600!1100 max_check_attempts 3 normal_check_interval 2 retry_check_interval 1 active_checks_enabled 1 passive_checks_enabled 1 check_period 24x7 parallelize_check 1 obsess_over_service 1 check_freshness 0 event_handler_enabled 1 flap_detection_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 contact_groups nt-admins notification_interval 240 notification_period 24x7 notification_options w,u,c,r notifications_enabled 1 register 1 } Travis Llewellyn Network Administrator Communication Federal Credit Union [EMAIL PROTECTED] - ------------------------------------------------------------------------- Matthew 5:44 Love your enemies and pray for those who persecute you... - -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Oliver Marshall Posted At: Tuesday, May 23, 2006 6:13 AM Posted To: Nagios Lists Conversation: [Nagios-users] NSCPlus (aka clearly im stupid) Subject: RE: [Nagios-users] NSCPlus (aka clearly im stupid) Sorry, yes, you are right. I meant the nagios server, with the "clients" being windows servers running nagios client. I've managed to get my head around the nagios services and commands enough to know that I am missing something :) I will say though, for the sake of google, that nagios would be far more accessible if it came with a web based configuration util out of the box. - -----Original Message----- From: Randal, Phil [mailto:[EMAIL PROTECTED] Sent: 23 May 2006 11:48 To: Oliver Marshall; nagios-users@lists.sourceforge.net Subject: RE: [Nagios-users] NSCPlus (aka clearly im stupid) Your use of the word "server" is way too confusing for my little brain. I'm monitoring windows servers from a linux server... Nuff said on that... So, on the Nagios box, you'll need both the nagios plugins (http://nagiosplug.sf.net) and NRPE (http://www.nagios.org/download/) installed. Use of the NSCPlus modules is documented at http://nscplus.medin.name/index.php/CheckCommands Basic familiarity with nagios commands and services should be enough to get you started, but also have a look at the NSCPlus Help forum over at http://sourceforge.net/forum/?group_id=131326. Cheers, Phil - ---- Phil Randal Network Engineer Herefordshire Council Hereford, UK > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Oliver Marshall > Sent: 23 May 2006 11:18 > To: Randal, Phil; nagios-users@lists.sourceforge.net > Subject: RE: [Nagios-users] NSCPlus (aka clearly im stupid) > > So....If I'm using NSCPlus, is there anything to copy to the server ? > > I have just sat down and re-read the documentation for NSCPlus and the > one line "especially as NRPE plug-in is the one that does the actual > execution." Would imply that I need to also install the NRPE > plug-in as > well (we're talking server-side here). > > If I have to enter my new commands in to command.cfg, and > those commands > have to point to a file to execute with various params, then > I guess my > question is where is that file (what is that file?) ? > > /me stops drinking so much coffee. > > -----Original Message----- > From: Randal, Phil [mailto:[EMAIL PROTECTED] > Sent: 23 May 2006 11:02 > To: Oliver Marshall; nagios-users@lists.sourceforge.net > Subject: RE: [Nagios-users] NSCPlus (aka clearly im stupid) > > There is a check_nt as part of the standard nagios plugins > (http://nagiosplug.sourceforge.net/). > > The only difference between that and the check_nt which came with > pnsclient.exe is the fileage checking (which isn't implemented yet in > nsclient++ - or if it is it doesn't work). > > You can use NSClient++'s CheckFile via NRPE instead. > > Also the old nsclient used port 1248, nsclient++ defaults to 12489 > (configurable in nsc.ini). > > Cheers, > > Phil > > ---- > Phil Randal > Network Engineer > Herefordshire Council > Hereford, UK > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf > > Of Oliver Marshall > > Sent: 23 May 2006 10:45 > > To: nagios-users@lists.sourceforge.net > > Subject: [Nagios-users] NSCPlus (aka clearly im stupid) > > > > Ok, having given up on using NSClient coz it don't work for > me, I have > > turned to NSCPlus (NSClient++). Thing is, and it's clearly me being > > stupid, I cant find the server side commands anywhere. I > mean, I know > > the command syntax etc, but in NSClient there was a > check_nt file that > > you put in the libexec folder but with NSClient++, though the > > command.cfg entries point to additional linux commands (I > want to say > > executables), I cant find those files anywhere. > > > > Are these meant to be part of the NSCPlus download? If so, > I cant see > > them. > > > > > > :S > > > > Olly > > > > > > ------------------------------------------------------- > > Using Tomcat but need to do more? Need to support web > > services, security? > > Get stuff done quickly with pre-integrated technology to make > > your job easier > > Download IBM WebSphere Application Server v.1.0.1 based on > > Apache Geronimo > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057& > > dat=121642 > > _______________________________________________ > > 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 > > > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web > services, security? > Get stuff done quickly with pre-integrated technology to make > your job easier > Download IBM WebSphere Application Server v.1.0.1 based on > Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057& > dat=121642 > _______________________________________________ > 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 > - ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=k&kid0709&bid&3057&dat1642 _______________________________________________ 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 -----BEGIN PGP SIGNATURE----- Version: PGP Desktop 9.0.6 (Build 6060) iQEVAwUBRHMSUKkF3FdG31XhAQgMfAf/UtTv8lPBOBKjk1Y/GtO4zDi5/WO0uNWm Xe95siC3jNL3+nUl7sSpSKlgNuWDo9If0p47qe1OIHV0GVrhwiAaKRyG1GwGj28J uBSrrqK2RI49Ggqo0iwf/JhI0dOCiFW296gQ/fcIDzvPy5mnimQExrYiNoF3IHOZ oIkaUcc+KwSj2Bk3SUccMKZAO0NoVALltrZMCDWOKMtfyvTNRdp8i7lDV/yUJFZ9 yxDN2ivkw37dCHMUL+c8RiEns/tZpwzXEOpTQD2eqnYylPP57LWhG4xEAQjMel6H J4Pf5gB72Nr4sbJqfknt222YH9k82zVOb+QmWwg0iysDW/pnldD8Yg== =zALF -----END PGP SIGNATURE----- ----------------------------------------------------------------- This e-mail and the files transmitted with it are the property of the sender and/or its affiliates, are confidential, and are intended solely for use of the individual or entity to whom this e-mail is addressed. If you are not one of the named recipient(s) or otherwise have reason to believe that you have received this message in error, please notify the sender by replying to the e-mail you received and delete this message from your computer immediately. Any other use, retention, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited.
NSC.ini
Description: NSC.ini
NSC.ini.sig
Description: Binary data