Download & extract nagios-plugins source

Remove/rename the original check_nt.c in the plugins dir

copy the check_nc_net.c file into the plugins folder and rename to
check_nt.c

rebuild the plugins(make)

 

________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of manju a
Sent: Friday, February 22, 2008 1:30 AM
To: Anthony Montibello
Cc: Nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] NC_Net nagios client to monitor Event logs
onwindows

 

 

Hi,


Thanks a lot for your replay. 

when i copied to the libexec folder i got the below error, i know this
is not a command soo shell is not able to recognize it.

[EMAIL PROTECTED] libexec]# ./check_nt.c
./check_nt.c: line 1:
/*********************************************************
: No such file or directory
./check_nt.c: line 2: check_apt: command not found
: command not found3: *
./check_nt.c: line 4: check_apt: command not found
./check_nt.c: line 5: check_apt: command not found
./check_nt.c: line 6: check_apt: command not found
: command not found7: *
./check_nt.c: line 8: check_apt: command not found
./check_nt.c: line 9: check_apt: command not found
./check_nt.c: line 10: syntax error near unexpected token `('
./check_nt.c: line 10: ` * Copyright (c) 2007 TOny Montibello
([EMAIL PROTECTED]
')

can you please let me know how we can recomplie check_nt.c plugins. 

thanks
manjunath A.





On Fri, Feb 22, 2008 at 5:12 AM, Anthony Montibello
<[EMAIL PROTECTED]> wrote:

HI,


THe problem is your version of check_nt

>>"where check_nt is default plugin which will come with the nagios
installation."

 

You need to compile check_nc_net.c

to do this, copy the check_nc_net.c to check_nt.c 

then recompile the plugins

 

check_nc_net.c is in the install location of NC_Net as well as
downloadable seperatly from 

http://downloads.sourceforge.net/nc-net/check_nc_net_040107.zip?modtime=
1175541733&big_mirror=0&filesize=17953

 

However please use the eventlog_new command -(See the help of
check_nc_net) 

It is a more efficient check than eventlog

 

TOny (Author of NC_NEt)

On Thu, Feb 21, 2008 at 1:00 AM, manju a <[EMAIL PROTECTED]> wrote:

        Hi,
        
        sorry it was my mistake while typing, yes i replaced any5 with
5.... same problem!!! please help me on this
        
        thanks
        manjunath A. 

        
        
        

        On Wed, Feb 20, 2008 at 8:30 PM, Edgar Matzinger
<[EMAIL PROTECTED]> wrote:

        Hi Manju,

        
        >
        > [EMAIL PROTECTED] libexec]# ./check_nt -H windowsmachine -p 1248
        > -v EVENTLOG  -l any,any,any5,0,0,0 -w 5 -c 10
        > check_nt: Could not parse arguments

         and if you replace "any5" with "5"?
        
        HTH, cu l8r, Edgar.
        --
           |\  /| :                                : Addr: Valid
Eindhoven B.V.
         /  | \/ | :     Edgar R. Matzinger         :       t.a.v. E.R.
        Matzinger
        /   |    | :                                :       Paradijslaan
36
        \  /|  /\| :                                :       5611 KN
Eindhoven
         \/   /  \ :     Valid Eindhoven BV         :
         \  /\  / :                                :
          \/ |\/  :                                :
             |    :                                :
        Disclaimer: Any comments, opinions made are mine, etc ...

         

         

        
------------------------------------------------------------------------
-
        This SF.net email is sponsored by: Microsoft
        Defy all challenges. Microsoft(R) Visual Studio 2008.
        http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
        _______________________________________________
        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

 

 

 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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

Reply via email to