Check_nt

Olaf Hoyer ohoyer at ohoyer.de
Fri Apr 9 13:12:36 CEST 2004


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

-- 
Olaf Hoyer        ohoyer at gaff.hhhr.ision.net
Fuerchterliche Erlebniss geben zu raten,
ob der, welcher sie erlebt, nicht etwas Fuerchterliches ist.
(Nietzsche, Jenseits von Gut und Boese)


-------------------------------------------------------
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