check_nt cmd works - fails from nagios config

Anthony Montibello amontibello at gmail.com
Thu Jul 17 01:19:01 CEST 2008


Since the command works from shell,

Try putting the command line into a Shell script then call the shell script
as your check command.
Naturally you can pass in the Host address as a input parameter to the shell
script

If your windows plugin is NC_Net we would be  able to look at what NC_NEt
recieved (If anything)
but the wrapper script should help in this situation.

TOny (Author of NC_NEt)

On Wed, Jul 16, 2008 at 2:12 PM, Alex Broad <abr at smartsgroup.com> wrote:

> If I run the following cmd from then everything is ok ( as show
>
> ./check_nt  -H 192.168.1.100 -p 12489 -v FILEAGE  -l
> "d:\\data\\users\\logs\\`date +%Y`\\`date +%m`\\`date +%d`\\`date
> +%Y%m%d.log`"
> >0 years 0 mon 0 days 13 hours 57 min 22 sec
>
> However when I add this line in to my nagios check_command.cfg file the
> results are
> (null)
>
> Is this normal and if so how would you get around this so you can always
> check a file with \\today_date\\today_date.log?
>
> Thanks in advance
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20080716/0632563a/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
-------------- next part --------------
_______________________________________________
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