NSClient
Peter Brown
pbrown3 at schsd.org
Wed Apr 5 19:06:33 CEST 2006
With NSCLIENT you can monitor services... so just pick you SQL service
and Nagios will let you know if it fails.. as far as SMTP there is a
check for that in the nagios plugins..
# 'check_nt_service' command definition
define command{
command_name check_nt_service
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v
SERVICESTATE -l $ARG1$
}
# Service definition
#SERVERS CHECK NT SERVICE SQL
define service{
use generic-service ;
host_name HOST
service_description SERVICE SQL
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 3
retry_check_interval 1
contact_groups nt-admins, db-admins
notification_interval 120
notification_period 24x7
notification_options w,u,c,r
check_command check_nt_service!MSSQLSERVER
}
- Peter Brown
-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Steph
Sent: Wednesday, April 05, 2006 9:57 AM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] NSClient
I'm currently monitoring a few windows server 2003 machines with
nsclient
Does anyone have any suggestions for monitoring smtp and mysql?
Can I use commands similar to the ones below and if so does anyone have
any samples from checkcommands.cfg and services.cfg?
Checkcommands.cfg:
Define command{
Command_name check_nt_CPU
Command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v
CPULOAD -l $ARG1$
}
------------------------------------------------------------------------
-------------------------------------
Services.cfg
Define service{
Use generic-service
Host_name test-server
Service_description CPU Usage
is_volatile 0
Check_period 24x7
Max_check_attempts 3
Normal_check_interval 1
Retry_check_interval 1
Contact_groups linux-admins
Notification_interval 300
Notification_period 24x7
Notification_options w,U,c,R
Check_command
check_nt_CPU!10,80,95,60,80,95,1440,80,95
}
------------------------------------------------------------------------
---------------------------------
I'm pretty new to windows servers so any help would be greatly
appreciated.
Thanks
Stephanie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20060405/a3493f23/attachment.html>
More information about the Users
mailing list