check_diskspace.sh - SNMP - Windows2000 serveres.. Help Please

Edward Ford eford at nexusenergy.com
Fri May 20 20:20:04 CEST 2005


Here is a screen shot of my nagios directory. I do not have a services.cfg
file but I do see a services section of my minimal.cfg file.
Is my configuration wrong if I do not have a services.cfg file, or just a
different version being used? I put the below reference into the
checkcommands.cfg file and then attempt to put the information referenced
below as services.cfg into my minimail.cfg..

Does this sounds right?

Thank You;
Eddie


-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Thomas Jens
Lauritsen
Sent: Thursday, May 19, 2005 4:16 AM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] check_diskspace.sh - SNMP - Windows2000 serveres


Dear list,

Here is my data for checking diskspace on a windows 2000 server.

You can proberly change it to check any disk space - on other systems - I
think.

Sorry to use this list to distribute this stuff - but I can't create a
project at nagiosexchange.org ... Got an error.....


-----------------


In the CHECKCOMMANDS.CFG I have this reference.


# 'check_diskspace.sh' command definition
define command{
        command_name    check_diskspace.sh
        command_line    $USER1$/check_diskspace.sh $HOSTADDRESS$ $ARG1$
$ARG2$ $ARG3$ $ARG4$ $ARG5$
        }



In the SERVICE.CFG I have this:

# Service definition
define service{
        use                             generic-service         ; Name of
service template to use
        host_name                       HOSTNAME
        service_description             DISKSPACE_C
        is_volatile                     0
        check_period                    24x7
        max_check_attempts              2
        normal_check_interval           60
        retry_check_interval            1
        contact_groups                  server-admins
        notification_interval           120
        notification_period             24x7
        notification_options            w,u,c,r
        check_command
check_diskspace.sh!public!C:!500!1000!
        }




The CHECK_DISKSPACE.SH is here...

(See attached file: check_diskspace.sh)



-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&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






-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&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




-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&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