check_fileage ...

Justin Hennessy jhennessy at mitchamcouncil.sa.gov.au
Thu Mar 11 04:15:34 CET 2004


Hi All,

I have a Windows 2000 server running the Nsclient (version 2.0.1).

Here is the definition for the command that I am using in the
checkcommand.cfg:

# 'check_nt_fileage' command definition
define command{
        command_name    check_nt_fileage
        command_line    $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v
FILEAGE -l $ARG1$ -w $ARG2$ -c $ARG3$
        }

And here is the definition for the service:

define service{
        use                             generic-service         ; Name
of service template to use
        host_name                       Archimedes
        service_description             GIS_Refresh
        is_volatile                     0
        check_period                    24x7
        max_check_attempts              3
        normal_check_interval           3
        retry_check_interval            1
        contact_groups                  network-admins
        notification_interval           120
        notification_period             24x7
        notification_options            w,u,c,r
        check_command                  
check_nt_fileage!G:\\Map_Data\\DCDB_Data\\Parcels_Properties\\mapextr.tab!1440!2880

        }

The problem I have got is that the result from this command is always:

NSClient - ERROR: file not found 

When I change the check_nt_fileage to check for a file that resides on
the C drive (ie C:\\temp.log) then this works (although it returns a
weird number which doesn't mean too much to me).

Are there any issues with checking files on Network drives? (as the G
drive in the above statement is a mapped drive)

Thanks,

Justin


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