Vedr.: RE: check_diskspace.sh - SNMP - Windows2000 serveres
Thomas Jens Lauritsen
tjl at topdanmark.dk
Thu May 19 16:23:03 CEST 2005
Hello Edward,
Sorry - but I don't know anything about a minimal.cfg
Have you placed the script file in /usr/local/nagios/libexec/ ?
Does the script work from your shell ?
/Thomas
|---------+---------------------------------------->
| | "Edward Ford" |
| | <eford at nexusenergy.com> |
| | Sendt af: |
| | nagios-users-admin at lists.sour|
| | ceforge.net |
| | |
| | |
| | 19-05-2005 15:56 |
| | |
|---------+---------------------------------------->
>--------------------------------------------------------------------------------------------------------------|
| |
| Til: "Thomas Jens Lauritsen" <tjl at topdanmark.dk>, <nagios-users at lists.sourceforge.net> |
| cc: |
| Vedr.: RE: [Nagios-users] check_diskspace.sh - SNMP - Windows2000 serveres |
>--------------------------------------------------------------------------------------------------------------|
One of the things that is messing me up here is that I don't have a
service.cfg. I have been using minimal.cfg, is this the same thing?
When I put the reference in checkcommands.cfg and also the reference in
service.cfg (minimal.cfg) and try to restart the service nagios, the
service will not start back up. When I take out the references from
checkcommands.cfg and minimal.cfg and start the service it will start..
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
More information about the Users
mailing list