Check_nt
Chris Hammond
chris at bluecobras.com
Fri Apr 9 13:17:01 CEST 2004
Thanks Olaf. I haven't messed with service state and process state.
Guess I should look at them. I'll post my checkcommands.cfg in a little
bit.
Thanks
Chris
On Fri, 2004-04-09 at 07:12, Olaf Hoyer wrote:
> On Thu, 8 Apr 2004, Chris Hammond wrote:
>
> > I would be interested in any one that is willing to post the check_nt
> > section of their checkcommand.cfg. I have a few setup but some don't
> > seem to display the string properly, while others I am not even sure I
> > have the syntax correct. I am looking at gathering information like
> > this and put it in one document also. If someone is doing this now I
> > don't want or duplicate work.
>
> Hi!
>
> I'm monitoring a Win2003 Server, here are some check_nt commands from a
> nagios 1.2 box:
>
> # 'check_nt_process' command definition
> define command{
> command_name check_nt_process
> command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v
> PROCSTATE -l $ARG1$
> }
> # '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$
> }
> # 'check_nt_memuse' command definition
> define command{
> command_name check_nt_memuse
> command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v
> MEMUSE -w $ARG1$ -c $ARG2$
> }
> # 'check_nt_disk' command definition
> define command{
> command_name check_nt_disk
> command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v
> USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c $ARG3
> $
> }
>
> The services.cfg will look like this:
>
> define service{
> use foo-template
> service_description Disk C:
> check_command check_nt_disk!c!80!95
> }
> define service{
> use foo-template
> service_description SQL-Server
> check_command check_nt_process!sqlservr.exe
> }
>
>
>
> HTH
> Olaf
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at 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
More information about the Users
mailing list