Discussion:
[Nagios-users] SNMP/Windows disk usage
m***@academy.com
2008-02-18 17:17:49 UTC
Permalink
We are using snmp to monitor our windows servers and I have had a request
from the windows admins. They want to alert at 80% and 90% usage on C:\
but 95% and 98% on all other partitions. (I didn't ask about the logic
because it wouldn't matter). I have tried multiple snmp plugins and all of
them seem to act the same. I can monitor all the disks on a single check,
a single disk on a single check but I cannot monitor all the disks except
C: on a single check. There doesn't seem to be any plugins out there that
allow exclusion and use snmp. Before I go writing a wrapper for an
existing plugin does anyone know if there is a plugin that will allow me
to do this? I am looking to exclude a single drive letter but check all
the rest of the drives via snmp on windows servers. Thanks in advance for
any advice.

Best Regards,

Mark L. Potter
Systems Engineer
Academy Sports & Outdoors
1800 N. Mason Rd
Katy, Texas 77449
Joerg Linge
2008-02-18 17:22:05 UTC
Permalink
Post by m***@academy.com
We are using snmp to monitor our windows servers and I have had a request
from the windows admins. They want to alert at 80% and 90% usage on C:\
but 95% and 98% on all other partitions. (I didn't ask about the logic
because it wouldn't matter). I have tried multiple snmp plugins and all of
them seem to act the same. I can monitor all the disks on a single check,
a single disk on a single check but I cannot monitor all the disks except
C: on a single check. There doesn't seem to be any plugins out there that
allow exclusion and use snmp. Before I go writing a wrapper for an
existing plugin does anyone know if there is a plugin that will allow me
to do this? I am looking to exclude a single drive letter but check all
the rest of the drives via snmp on windows servers. Thanks in advance for
any advice.
http://nagios.manubulon.com/snmp_storage.html


check_snmp_storage will do the Job

Joerg
m***@academy.com
2008-02-18 18:48:16 UTC
Permalink
Post by Joerg Linge
Post by m***@academy.com
We are using snmp to monitor our windows servers and I have had a request
from the windows admins. They want to alert at 80% and 90% usage on C:\
but 95% and 98% on all other partitions. (I didn't ask about the logic
because it wouldn't matter). I have tried multiple snmp plugins and all of
them seem to act the same. I can monitor all the disks on a single check,
a single disk on a single check but I cannot monitor all the disks except
C: on a single check. There doesn't seem to be any plugins out there that
allow exclusion and use snmp. Before I go writing a wrapper for an
existing plugin does anyone know if there is a plugin that will allow me
to do this? I am looking to exclude a single drive letter but check all
the rest of the drives via snmp on windows servers. Thanks in advance for
any advice.
http://nagios.manubulon.com/snmp_storage.html
check_snmp_storage will do the Job
Joerg
That does exactly what we need. Is it listed on Nagios Exchange? Thank you
for your response; I have managed to escape writing a wrapper thanks to
you!
m***@academy.com
2008-02-19 14:51:21 UTC
Permalink
Melanie,

I have setup the plugin available here:
http://nagios.manubulon.com/snmp_storage.html and it works perfectly for
our needs. It uses SNMP so you would have to have SNMP setup on all of
your Windows boxes but with that caveat it is the best solution I have
found for monitoring windows partitions. If you are looking for something
slightly less complicated or with fewer options there are many plugins on
nagiosexchange.com that will do the job. I would recommend
check_snmp_storage though due to the options and the robustness of the
plugin.

Best Regards,

Mark L. Potter
Systems Engineer
Academy Sports & Outdoors
1800 N. Mason Rd
Katy, Texas 77449
Hello Mark,
I am interested in monitoring the disks even with no
exclusions.
I installed nagios2.9 and the nagios plugin on a linux
box.
Would it be possible that you give me what you?ve done
to monitor the partitions on windows?
I appreciate your help.
02/18/2008 11:22:05
Post by Joerg Linge
Post by m***@academy.com
We are using snmp to monitor our windows servers
and I have had a
request
Post by Joerg Linge
Post by m***@academy.com
from the windows admins. They want to alert at
80% and 90% usage on
C:\
Post by Joerg Linge
Post by m***@academy.com
but 95% and 98% on all other partitions. (I
didn't ask about the logic
Post by Joerg Linge
Post by m***@academy.com
because it wouldn't matter). I have tried
multiple snmp plugins and
all of
Post by Joerg Linge
Post by m***@academy.com
them seem to act the same. I can monitor all the
disks on a single
check,
Post by Joerg Linge
Post by m***@academy.com
a single disk on a single check but I cannot
monitor all the disks
except
Post by Joerg Linge
Post by m***@academy.com
C: on a single check. There doesn't seem to be
any plugins out there
that
Post by Joerg Linge
Post by m***@academy.com
allow exclusion and use snmp. Before I go
writing a wrapper for an
Post by Joerg Linge
Post by m***@academy.com
existing plugin does anyone know if there is a
plugin that will allow
me
Post by Joerg Linge
Post by m***@academy.com
to do this? I am looking to exclude a single
drive letter but check
all
Post by Joerg Linge
Post by m***@academy.com
the rest of the drives via snmp on windows
servers. Thanks in advance
for
Post by Joerg Linge
Post by m***@academy.com
any advice.
http://nagios.manubulon.com/snmp_storage.html
check_snmp_storage will do the Job
Joerg
That does exactly what we need. Is it listed on
Nagios Exchange? Thank you
for your response; I have managed to escape writing
a wrapper thanks to
you!
-------------------------------------------------------------------------
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
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
___________________________________________________________
Yahoo! Answers - Got a question? Someone out there knows the answer. Try
it
now.
http://uk.answers.yahoo.com/
Russell Adams
2008-02-22 16:36:53 UTC
Permalink
Mark,

I have used NACE in the past to configure one service per disk
according to criteria like include hard drives, exclude CDROM, etc,
with varying host groups (C: & D: were OS, others were applications)
and more.

Also, if you're in the Houston area you ought to stop by HLUG. I'm
often at the Wednesday working session.

Enjoy!
Post by m***@academy.com
Melanie,
http://nagios.manubulon.com/snmp_storage.html and it works perfectly for
our needs. It uses SNMP so you would have to have SNMP setup on all of
your Windows boxes but with that caveat it is the best solution I have
found for monitoring windows partitions. If you are looking for something
slightly less complicated or with fewer options there are many plugins on
nagiosexchange.com that will do the job. I would recommend
check_snmp_storage though due to the options and the robustness of the
plugin.
Best Regards,
Mark L. Potter
Systems Engineer
Academy Sports & Outdoors
1800 N. Mason Rd
Katy, Texas 77449
------------------------------------------------------------------
Russell Adams ***@AdamsInfoServ.com

PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/

Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3
Melanie Pfefer
2008-02-19 21:37:04 UTC
Permalink
Hello

I added this:

define command{
command_name check_win_storage
command_line $USER3$/check_snmp_storage.pl
-H $HOSTADDRESS$ -C $ARG1$ -m $ARG2$ -w $ARG3$ -c
$ARG4$
}


define service {
use common-service
hostgroup_name nt-servers
service_description Check Windows drives
check_command
check_win_storage!public!^[CDE]:!80!90!
}

the result was: Return code of 127 is out of bounds -
plugin may be missing


Any idea?
thanks
Post by m***@academy.com
Melanie,
http://nagios.manubulon.com/snmp_storage.html and it
works perfectly for
our needs. It uses SNMP so you would have to have
SNMP setup on all of
your Windows boxes but with that caveat it is the
best solution I have
found for monitoring windows partitions. If you are
looking for something
slightly less complicated or with fewer options
there are many plugins on
nagiosexchange.com that will do the job. I would
recommend
check_snmp_storage though due to the options and the
robustness of the
plugin.
Best Regards,
Mark L. Potter
Systems Engineer
Academy Sports & Outdoors
1800 N. Mason Rd
Katy, Texas 77449
02/19/2008 03:04:23
Hello Mark,
I am interested in monitoring the disks even with
no
exclusions.
I installed nagios2.9 and the nagios plugin on a
linux
box.
Would it be possible that you give me what you?ve
done
to monitor the partitions on windows?
I appreciate your help.
on
02/18/2008 11:22:05
Post by Joerg Linge
Post by m***@academy.com
We are using snmp to monitor our windows
servers
and I have had a
request
Post by Joerg Linge
Post by m***@academy.com
from the windows admins. They want to alert
at
80% and 90% usage on
C:\
Post by Joerg Linge
Post by m***@academy.com
but 95% and 98% on all other partitions. (I
didn't ask about the logic
Post by Joerg Linge
Post by m***@academy.com
because it wouldn't matter). I have tried
multiple snmp plugins and
all of
Post by Joerg Linge
Post by m***@academy.com
them seem to act the same. I can monitor all
the
disks on a single
check,
Post by Joerg Linge
Post by m***@academy.com
a single disk on a single check but I cannot
monitor all the disks
except
Post by Joerg Linge
Post by m***@academy.com
C: on a single check. There doesn't seem to
be
any plugins out there
that
Post by Joerg Linge
Post by m***@academy.com
allow exclusion and use snmp. Before I go
writing a wrapper for an
Post by Joerg Linge
Post by m***@academy.com
existing plugin does anyone know if there is
a
plugin that will allow
me
Post by Joerg Linge
Post by m***@academy.com
to do this? I am looking to exclude a single
drive letter but check
all
Post by Joerg Linge
Post by m***@academy.com
the rest of the drives via snmp on windows
servers. Thanks in advance
for
Post by Joerg Linge
Post by m***@academy.com
any advice.
http://nagios.manubulon.com/snmp_storage.html
check_snmp_storage will do the Job
Joerg
That does exactly what we need. Is it listed on
Nagios Exchange? Thank you
for your response; I have managed to escape
writing
a wrapper thanks to
you!
-------------------------------------------------------------------------
Post by m***@academy.com
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/>
Post by m***@academy.com
_______________________________________________
Nagios-users mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users
Post by m***@academy.com
::: Please include Nagios version, plugin
version
(-v) and OS when reporting any issue.
::: Messages without supporting info will risk
being
sent to /dev/null
___________________________________________________________
Post by m***@academy.com
Yahoo! Answers - Got a question? Someone out there
knows the answer. Try
it
now.
http://uk.answers.yahoo.com/
___________________________________________________________
Support the World Aids Awareness campaign this month with Yahoo! For Good http://uk.promotions.yahoo.com/forgood/
m***@academy.com
2008-02-19 21:58:23 UTC
Permalink
You will need to actually download the plugin from
http://nagios.manubulon.com/snmp_storage.html as it is not part of the
Nagios plugins package but rather a third party plugin.
Post by Melanie Pfefer
Hello
define command{
command_name check_win_storage
command_line $USER3$/check_snmp_storage.pl
-H $HOSTADDRESS$ -C $ARG1$ -m $ARG2$ -w $ARG3$ -c
$ARG4$
}
define service {
use common-service
hostgroup_name nt-servers
service_description Check Windows drives
check_command
check_win_storage!public!^[CDE]:!80!90!
}
the result was: Return code of 127 is out of bounds -
plugin may be missing
Any idea?
thanks
Post by m***@academy.com
Melanie,
http://nagios.manubulon.com/snmp_storage.html and it
works perfectly for
our needs. It uses SNMP so you would have to have
SNMP setup on all of
your Windows boxes but with that caveat it is the
best solution I have
found for monitoring windows partitions. If you are
looking for something
slightly less complicated or with fewer options
there are many plugins on
nagiosexchange.com that will do the job. I would
recommend
check_snmp_storage though due to the options and the
robustness of the
plugin.
Best Regards,
Mark L. Potter
Systems Engineer
Academy Sports & Outdoors
1800 N. Mason Rd
Katy, Texas 77449
02/19/2008 03:04:23
Hello Mark,
I am interested in monitoring the disks even with
no
exclusions.
I installed nagios2.9 and the nagios plugin on a
linux
box.
Would it be possible that you give me what you?ve
done
to monitor the partitions on windows?
I appreciate your help.
on
02/18/2008 11:22:05
Post by Joerg Linge
Post by m***@academy.com
We are using snmp to monitor our windows
servers
and I have had a
request
Post by Joerg Linge
Post by m***@academy.com
from the windows admins. They want to alert
at
80% and 90% usage on
C:\
Post by Joerg Linge
Post by m***@academy.com
but 95% and 98% on all other partitions. (I
didn't ask about the logic
Post by Joerg Linge
Post by m***@academy.com
because it wouldn't matter). I have tried
multiple snmp plugins and
all of
Post by Joerg Linge
Post by m***@academy.com
them seem to act the same. I can monitor all
the
disks on a single
check,
Post by Joerg Linge
Post by m***@academy.com
a single disk on a single check but I cannot
monitor all the disks
except
Post by Joerg Linge
Post by m***@academy.com
C: on a single check. There doesn't seem to
be
any plugins out there
that
Post by Joerg Linge
Post by m***@academy.com
allow exclusion and use snmp. Before I go
writing a wrapper for an
Post by Joerg Linge
Post by m***@academy.com
existing plugin does anyone know if there is
a
plugin that will allow
me
Post by Joerg Linge
Post by m***@academy.com
to do this? I am looking to exclude a single
drive letter but check
all
Post by Joerg Linge
Post by m***@academy.com
the rest of the drives via snmp on windows
servers. Thanks in advance
for
Post by Joerg Linge
Post by m***@academy.com
any advice.
http://nagios.manubulon.com/snmp_storage.html
check_snmp_storage will do the Job
Joerg
That does exactly what we need. Is it listed on
Nagios Exchange? Thank you
for your response; I have managed to escape
writing
a wrapper thanks to
you!
-------------------------------------------------------------------------
Post by Melanie Pfefer
Post by m***@academy.com
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/>
Post by m***@academy.com
_______________________________________________
Nagios-users mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users
Post by m***@academy.com
::: Please include Nagios version, plugin
version
(-v) and OS when reporting any issue.
::: Messages without supporting info will risk
being
sent to /dev/null
___________________________________________________________
Post by m***@academy.com
Yahoo! Answers - Got a question? Someone out there
knows the answer. Try
it
now.
http://uk.answers.yahoo.com/
___________________________________________________________
Support the World Aids Awareness campaign this month with Yahoo! For
Good
Post by Melanie Pfefer
http://uk.promotions.yahoo.com/forgood/
Melanie Pfefer
2008-02-20 13:00:30 UTC
Permalink
Hello again

I downloaded the perl script and indeed I can use it
manually:
./check_snmp_storage.pl -H TROY -C public -m ^[CDE]:
-w 80% -c 90%

D:\ Label: Serial Number 225e3590:
3%used(2587MB/89495MB) C:\ Label: Serial Number
8cfa6a13: 27%used(6644MB/25000MB) (<80%) : OK



In nagios, I should define a service and a command to
start using check_snmp_storage.pl. Could you please
help in what I should add?

Many thanks
Post by m***@academy.com
You will need to actually download the plugin from
http://nagios.manubulon.com/snmp_storage.html as it
is not part of the
Nagios plugins package but rather a third party
plugin.
02/19/2008 03:37:04
Post by Melanie Pfefer
Hello
define command{
command_name check_win_storage
command_line
$USER3$/check_snmp_storage.pl
Post by Melanie Pfefer
-H $HOSTADDRESS$ -C $ARG1$ -m $ARG2$ -w $ARG3$ -c
$ARG4$
}
define service {
use common-service
hostgroup_name nt-servers
service_description Check Windows
drives
Post by Melanie Pfefer
check_command
check_win_storage!public!^[CDE]:!80!90!
}
the result was: Return code of 127 is out of
bounds -
Post by Melanie Pfefer
plugin may be missing
Any idea?
thanks
Post by m***@academy.com
Melanie,
http://nagios.manubulon.com/snmp_storage.html
and it
Post by Melanie Pfefer
Post by m***@academy.com
works perfectly for
our needs. It uses SNMP so you would have to
have
Post by Melanie Pfefer
Post by m***@academy.com
SNMP setup on all of
your Windows boxes but with that caveat it is
the
Post by Melanie Pfefer
Post by m***@academy.com
best solution I have
found for monitoring windows partitions. If you
are
Post by Melanie Pfefer
Post by m***@academy.com
looking for something
slightly less complicated or with fewer options
there are many plugins on
nagiosexchange.com that will do the job. I would
recommend
check_snmp_storage though due to the options and
the
Post by Melanie Pfefer
Post by m***@academy.com
robustness of the
plugin.
Best Regards,
Mark L. Potter
Systems Engineer
Academy Sports & Outdoors
1800 N. Mason Rd
Katy, Texas 77449
wrote on
Post by Melanie Pfefer
Post by m***@academy.com
02/19/2008 03:04:23
Hello Mark,
I am interested in monitoring the disks even
with
Post by Melanie Pfefer
Post by m***@academy.com
no
exclusions.
I installed nagios2.9 and the nagios plugin on
a
Post by Melanie Pfefer
Post by m***@academy.com
linux
box.
Would it be possible that you give me what
you?ve
Post by Melanie Pfefer
Post by m***@academy.com
done
to monitor the partitions on windows?
I appreciate your help.
on
02/18/2008 11:22:05
Post by Joerg Linge
Post by m***@academy.com
We are using snmp to monitor our windows
servers
and I have had a
request
Post by Joerg Linge
Post by m***@academy.com
from the windows admins. They want to
alert
Post by Melanie Pfefer
Post by m***@academy.com
at
80% and 90% usage on
C:\
Post by Joerg Linge
Post by m***@academy.com
but 95% and 98% on all other partitions.
(I
Post by Melanie Pfefer
Post by m***@academy.com
didn't ask about the logic
Post by Joerg Linge
Post by m***@academy.com
because it wouldn't matter). I have
tried
Post by Melanie Pfefer
Post by m***@academy.com
multiple snmp plugins and
all of
Post by Joerg Linge
Post by m***@academy.com
them seem to act the same. I can monitor
all
Post by Melanie Pfefer
Post by m***@academy.com
the
disks on a single
check,
Post by Joerg Linge
Post by m***@academy.com
a single disk on a single check but I
cannot
Post by Melanie Pfefer
Post by m***@academy.com
monitor all the disks
except
Post by Joerg Linge
Post by m***@academy.com
C: on a single check. There doesn't seem
to
Post by Melanie Pfefer
Post by m***@academy.com
be
any plugins out there
that
Post by Joerg Linge
Post by m***@academy.com
allow exclusion and use snmp. Before I
go
Post by Melanie Pfefer
Post by m***@academy.com
writing a wrapper for an
Post by Joerg Linge
Post by m***@academy.com
existing plugin does anyone know if
there is
Post by Melanie Pfefer
Post by m***@academy.com
a
plugin that will allow
me
Post by Joerg Linge
Post by m***@academy.com
to do this? I am looking to exclude a
single
Post by Melanie Pfefer
Post by m***@academy.com
drive letter but check
all
Post by Joerg Linge
Post by m***@academy.com
the rest of the drives via snmp on
windows
Post by Melanie Pfefer
Post by m***@academy.com
servers. Thanks in advance
for
Post by Joerg Linge
Post by m***@academy.com
any advice.
http://nagios.manubulon.com/snmp_storage.html
Post by Melanie Pfefer
Post by m***@academy.com
Post by Joerg Linge
check_snmp_storage will do the Job
Joerg
That does exactly what we need. Is it listed
on
Post by Melanie Pfefer
Post by m***@academy.com
Nagios Exchange? Thank you
for your response; I have managed to escape
writing
a wrapper thanks to
you!
-------------------------------------------------------------------------
Post by m***@academy.com
Post by Melanie Pfefer
Post by m***@academy.com
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual
Studio
Post by Melanie Pfefer
Post by m***@academy.com
2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/>
Post by m***@academy.com
_______________________________________________
Post by Melanie Pfefer
Post by m***@academy.com
Nagios-users mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users
Post by m***@academy.com
Post by Melanie Pfefer
Post by m***@academy.com
::: Please include Nagios version, plugin
version
(-v) and OS when reporting any issue.
::: Messages without supporting info will
risk
Post by Melanie Pfefer
Post by m***@academy.com
being
sent to /dev/null
=== message truncated ===



__________________________________________________________
Sent from Yahoo! Mail - a smarter inbox http://uk.mail.yahoo.com
m***@academy.com
2008-02-20 14:50:54 UTC
Permalink
Melanie.

1. When you test the script are you testing it as the nagios user?
2. Does the script reside in the libexec folder under the nagios user's
home directory?

If the answer to the above questions is yes then:

define command {
command_name check_snmp_windows_disk
command_line $USER1$/check_snmp_storage -H $HOSTADDRESS$ -C
$ARG1$ -q FixedDisk -w $ARG2$ -c $ARG3$ -m $ARG4$ $ARG5$
}
That is my command definition. $ARG5$ is an optional switch for exclusion.

One of the check commands (with security info snipped)

define service {
host_name <SNIP>
service_description SNMP - Windows - Disk - Production
is_volatile 0
check_command check_snmp_windows_disk!<SNIP>!95!98!^C:!-e
max_check_attempts 3
normal_check_interval 120
retry_check_interval 30
active_checks_enabled 1
passive_checks_enabled 1
check_period 24x7
parallelize_check 1
obsess_over_service 1
check_freshness 0
event_handler_enabled 1
flap_detection_enabled 1
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
contact_groups sysalertstest
notification_interval 120
notification_period 24x7
notification_options w,u,c,r
notifications_enabled 1
register 1
}

That is the check for our production windows servers excluding the C drive
(the -e is the exclude switch).

I hope this information is helpful.
Post by Melanie Pfefer
Hello again
I downloaded the perl script and indeed I can use it
-w 80% -c 90%
3%used(2587MB/89495MB) C:\ Label: Serial Number
8cfa6a13: 27%used(6644MB/25000MB) (<80%) : OK
In nagios, I should define a service and a command to
start using check_snmp_storage.pl. Could you please
help in what I should add?
Many thanks
Post by m***@academy.com
You will need to actually download the plugin from
http://nagios.manubulon.com/snmp_storage.html as it
is not part of the
Nagios plugins package but rather a third party
plugin.
02/19/2008 03:37:04
Post by Melanie Pfefer
Hello
define command{
command_name check_win_storage
command_line
$USER3$/check_snmp_storage.pl
Post by Melanie Pfefer
-H $HOSTADDRESS$ -C $ARG1$ -m $ARG2$ -w $ARG3$ -c
$ARG4$
}
define service {
use common-service
hostgroup_name nt-servers
service_description Check Windows
drives
Post by Melanie Pfefer
check_command
check_win_storage!public!^[CDE]:!80!90!
}
the result was: Return code of 127 is out of
bounds -
Post by Melanie Pfefer
plugin may be missing
Any idea?
thanks
Post by m***@academy.com
Melanie,
http://nagios.manubulon.com/snmp_storage.html
and it
Post by Melanie Pfefer
Post by m***@academy.com
works perfectly for
our needs. It uses SNMP so you would have to
have
Post by Melanie Pfefer
Post by m***@academy.com
SNMP setup on all of
your Windows boxes but with that caveat it is
the
Post by Melanie Pfefer
Post by m***@academy.com
best solution I have
found for monitoring windows partitions. If you
are
Post by Melanie Pfefer
Post by m***@academy.com
looking for something
slightly less complicated or with fewer options
there are many plugins on
nagiosexchange.com that will do the job. I would
recommend
check_snmp_storage though due to the options and
the
Post by Melanie Pfefer
Post by m***@academy.com
robustness of the
plugin.
Best Regards,
Mark L. Potter
Systems Engineer
Academy Sports & Outdoors
1800 N. Mason Rd
Katy, Texas 77449
wrote on
Post by Melanie Pfefer
Post by m***@academy.com
02/19/2008 03:04:23
Hello Mark,
I am interested in monitoring the disks even
with
Post by Melanie Pfefer
Post by m***@academy.com
no
exclusions.
I installed nagios2.9 and the nagios plugin on
a
Post by Melanie Pfefer
Post by m***@academy.com
linux
box.
Would it be possible that you give me what
you?ve
Post by Melanie Pfefer
Post by m***@academy.com
done
to monitor the partitions on windows?
I appreciate your help.
on
02/18/2008 11:22:05
Post by Joerg Linge
Post by m***@academy.com
We are using snmp to monitor our windows
servers
and I have had a
request
Post by Joerg Linge
Post by m***@academy.com
from the windows admins. They want to
alert
Post by Melanie Pfefer
Post by m***@academy.com
at
80% and 90% usage on
C:\
Post by Joerg Linge
Post by m***@academy.com
but 95% and 98% on all other partitions.
(I
Post by Melanie Pfefer
Post by m***@academy.com
didn't ask about the logic
Post by Joerg Linge
Post by m***@academy.com
because it wouldn't matter). I have
tried
Post by Melanie Pfefer
Post by m***@academy.com
multiple snmp plugins and
all of
Post by Joerg Linge
Post by m***@academy.com
them seem to act the same. I can monitor
all
Post by Melanie Pfefer
Post by m***@academy.com
the
disks on a single
check,
Post by Joerg Linge
Post by m***@academy.com
a single disk on a single check but I
cannot
Post by Melanie Pfefer
Post by m***@academy.com
monitor all the disks
except
Post by Joerg Linge
Post by m***@academy.com
C: on a single check. There doesn't seem
to
Post by Melanie Pfefer
Post by m***@academy.com
be
any plugins out there
that
Post by Joerg Linge
Post by m***@academy.com
allow exclusion and use snmp. Before I
go
Post by Melanie Pfefer
Post by m***@academy.com
writing a wrapper for an
Post by Joerg Linge
Post by m***@academy.com
existing plugin does anyone know if
there is
Post by Melanie Pfefer
Post by m***@academy.com
a
plugin that will allow
me
Post by Joerg Linge
Post by m***@academy.com
to do this? I am looking to exclude a
single
Post by Melanie Pfefer
Post by m***@academy.com
drive letter but check
all
Post by Joerg Linge
Post by m***@academy.com
the rest of the drives via snmp on
windows
Post by Melanie Pfefer
Post by m***@academy.com
servers. Thanks in advance
for
Post by Joerg Linge
Post by m***@academy.com
any advice.
http://nagios.manubulon.com/snmp_storage.html
Post by Melanie Pfefer
Post by m***@academy.com
Post by Joerg Linge
check_snmp_storage will do the Job
Joerg
That does exactly what we need. Is it listed
on
Post by Melanie Pfefer
Post by m***@academy.com
Nagios Exchange? Thank you
for your response; I have managed to escape
writing
a wrapper thanks to
you!
-------------------------------------------------------------------------
Post by Melanie Pfefer
Post by m***@academy.com
Post by Melanie Pfefer
Post by m***@academy.com
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual
Studio
Post by Melanie Pfefer
Post by m***@academy.com
2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/>
Post by m***@academy.com
_______________________________________________
Post by Melanie Pfefer
Post by m***@academy.com
Nagios-users mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users
Post by m***@academy.com
Post by Melanie Pfefer
Post by m***@academy.com
::: Please include Nagios version, plugin
version
(-v) and OS when reporting any issue.
::: Messages without supporting info will
risk
Post by Melanie Pfefer
Post by m***@academy.com
being
sent to /dev/null
=== message truncated ===
__________________________________________________________
Sent from Yahoo! Mail - a smarter inbox http://uk.mail.yahoo.com
m***@academy.com
2008-02-20 14:56:17 UTC
Permalink
-----Original Message-----
Sent: Wednesday, February 20, 2008 8:01 AM
Subject: Re: [Nagios-users] SNMP/Windows disk usage
Hello again
I downloaded the perl script and indeed I can use it
-w 80% -c 90%
3%used(2587MB/89495MB) C:\ Label: Serial Number
8cfa6a13: 27%used(6644MB/25000MB) (<80%) : OK
In nagios, I should define a service and a command to
start using check_snmp_storage.pl. Could you please
help in what I should add?
Many thanks
<<snip>>
Melanie,
Here is a sample command and service definition that I use with
define command{
command_name check_c:\
command_line $USER1$/check_snmp_storage.pl -H $HOSTADDRESS$
-C $USER3$ -m ^C: -w 85 -c 95
}
In services.cfg (or wherever you place your service definitions)
define service{
use generic-service
host_name <yourhostnamehere>
service_description Check C:\ Usage Data
check_command check_c:\
}
This is how we use it on our network, your needs may be different.
Remember when testing to plugin to test as root and to chown
nagiosuser.nagiosgroup when you put it into libexec for it to work
correctly.
Some systems may have issues with the "\" in a command name. I have seen
it blow things up so there is a point on which care needs to be taken. I
would also recommend against hard coding -w and -c values where at all
possible. It makes using the same command for multiple services with
different needs much more difficult. Also you should always test as the
nagios user and not as root. Testing as root really does nothing other
than show permissions and rights issues if the command fails to work as
the nagios user. The script should be in libexec, owned by the nagios user
and group, and tested as the nagios user. If that doesn't work then test
it as root for the same dir with the same ownership to see if it works at
all.
Melanie Pfefer
2008-02-22 11:34:39 UTC
Permalink
thanks indeed

Now if I want to use hostgroup_name instead of
host_name,

ow to write the check_command line in services.cfg?

check_command
check_snmp_windows_disk!TROY!95!98!^[CDE]:!

is working for TROY only What should I do to apply it
on all hosts of a group?

thx
"Valdinger, Stephen (DOV, MSX)"
-----Original Message-----
From: Melanie Pfefer
Sent: Wednesday, February 20, 2008 8:01 AM
Subject: Re: [Nagios-users] SNMP/Windows disk
usage
Hello again
I downloaded the perl script and indeed I can use
it
./check_snmp_storage.pl -H TROY -C public -m
-w 80% -c 90%
3%used(2587MB/89495MB) C:\ Label: Serial Number
8cfa6a13: 27%used(6644MB/25000MB) (<80%) : OK
In nagios, I should define a service and a command
to
start using check_snmp_storage.pl. Could you
please
help in what I should add?
Many thanks
<<snip>>
Melanie,
Here is a sample command and service definition
that I use with
define command{
command_name check_c:\
command_line
$USER1$/check_snmp_storage.pl -H $HOSTADDRESS$
-C $USER3$ -m ^C: -w 85 -c 95
}
In services.cfg (or wherever you place your
service definitions)
define service{
use generic-service
host_name <yourhostnamehere>
service_description Check C:\ Usage Data
check_command check_c:\
}
This is how we use it on our network, your needs
may be different.
Remember when testing to plugin to test as root
and to chown
nagiosuser.nagiosgroup when you put it into
libexec for it to work
correctly.
Some systems may have issues with the "\" in a
command name. I have seen
it blow things up so there is a point on which care
needs to be taken. I
would also recommend against hard coding -w and -c
values where at all
possible. It makes using the same command for
multiple services with
different needs much more difficult. Also you should
always test as the
nagios user and not as root. Testing as root really
does nothing other
than show permissions and rights issues if the
command fails to work as
the nagios user. The script should be in libexec,
owned by the nagios user
and group, and tested as the nagios user. If that
doesn't work then test
it as root for the same dir with the same ownership
to see if it works at
all.
-------------------------------------------------------------------------
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
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
__________________________________________________________
Sent from Yahoo! Mail.
A Smarter Inbox. http://uk.docs.yahoo.com/nowyoucan.html
m***@academy.com
2008-02-22 14:58:25 UTC
Permalink
Post by Melanie Pfefer
thanks indeed
Now if I want to use hostgroup_name instead of
host_name,
ow to write the check_command line in services.cfg?
check_command
check_snmp_windows_disk!TROY!95!98!^[CDE]:!
is working for TROY only What should I do to apply it
on all hosts of a group?
thx
Just use hostgroup_name instead of host_name. That's in the Nagios docs.
Melanie Pfefer
2008-02-22 11:53:03 UTC
Permalink
also another question please. I had no problem on my
test machine. On my prod machine I got this error:

(No output!)

according to
http://nagios.manubulon.com/faq.html#FAQ8, I should
apply a patch. In that case, how to apply this patch?

according to
http://www.nagios.org/faqs/viewfaq.php?faq_id=336, I
need to add use lib "path-to-utils.pm" to the perl
script. how to specify that path?

thanks
PS: I m using Linux fedora
Post by Melanie Pfefer
thanks indeed
Now if I want to use hostgroup_name instead of
host_name,
ow to write the check_command line in services.cfg?
check_command
check_snmp_windows_disk!TROY!95!98!^[CDE]:!
is working for TROY only What should I do to apply
it
on all hosts of a group?
thx
"Valdinger, Stephen (DOV, MSX)"
-----Original Message-----
From: Melanie Pfefer
Sent: Wednesday, February 20, 2008 8:01 AM
Subject: Re: [Nagios-users] SNMP/Windows disk
usage
Hello again
I downloaded the perl script and indeed I can
use
it
./check_snmp_storage.pl -H TROY -C public -m
-w 80% -c 90%
3%used(2587MB/89495MB) C:\ Label: Serial Number
8cfa6a13: 27%used(6644MB/25000MB) (<80%) : OK
In nagios, I should define a service and a
command
to
start using check_snmp_storage.pl. Could you
please
help in what I should add?
Many thanks
<<snip>>
Melanie,
Here is a sample command and service
definition
that I use with
define command{
command_name check_c:\
command_line
$USER1$/check_snmp_storage.pl -H $HOSTADDRESS$
-C $USER3$ -m ^C: -w 85 -c 95
}
In services.cfg (or wherever you place your
service definitions)
define service{
use generic-service
host_name <yourhostnamehere>
service_description Check C:\ Usage Data
check_command check_c:\
}
This is how we use it on our network, your needs
may be different.
Remember when testing to plugin to test as root
and to chown
nagiosuser.nagiosgroup when you put it into
libexec for it to work
correctly.
Some systems may have issues with the "\" in a
command name. I have seen
it blow things up so there is a point on which
care
needs to be taken. I
would also recommend against hard coding -w and -c
values where at all
possible. It makes using the same command for
multiple services with
different needs much more difficult. Also you
should
always test as the
nagios user and not as root. Testing as root
really
does nothing other
than show permissions and rights issues if the
command fails to work as
the nagios user. The script should be in libexec,
owned by the nagios user
and group, and tested as the nagios user. If that
doesn't work then test
it as root for the same dir with the same
ownership
to see if it works at
all.
-------------------------------------------------------------------------
Post by Melanie Pfefer
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/>
Post by Melanie Pfefer
_______________________________________________
Nagios-users mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users
Post by Melanie Pfefer
::: Please include Nagios version, plugin version
(-v) and OS when reporting any issue.
::: Messages without supporting info will risk
being
sent to /dev/null
__________________________________________________________
Post by Melanie Pfefer
Sent from Yahoo! Mail.
A Smarter Inbox.
http://uk.docs.yahoo.com/nowyoucan.html
-------------------------------------------------------------------------
Post by Melanie Pfefer
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/
Post by Melanie Pfefer
_______________________________________________
Nagios-users mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users
Post by Melanie Pfefer
::: Please include Nagios version, plugin version
(-v) and OS when reporting any issue.
::: Messages without supporting info will risk being
sent to /dev/null
__________________________________________________________
Sent from Yahoo! Mail.
A Smarter Inbox. http://uk.docs.yahoo.com/nowyoucan.html
m***@academy.com
2008-02-22 15:04:04 UTC
Permalink
Post by Melanie Pfefer
also another question please. I had no problem on my
(No output!)
according to
http://nagios.manubulon.com/faq.html#FAQ8, I should
apply a patch. In that case, how to apply this patch?
according to
http://www.nagios.org/faqs/viewfaq.php?faq_id=336, I
need to add use lib "path-to-utils.pm" to the perl
script. how to specify that path?
thanks
PS: I m using Linux fedora
(No Output) could be a variety of things. First run the command from the
command line with the -v switch to see the verbose output, as the nagios
user of course, and from there begin troubleshooting. I doubt it is option
#2 since I have not had to modify the script on any server. If you have to
apply a patch I would start with contacting the developer of the script.
Melanie Pfefer
2008-02-22 15:16:51 UTC
Permalink
Hello Mark, all,
Yes true but what to put instead of the hostname(TROY)
in?
check_snmp_windows_disk!TROY!95!98!^[CDE]:!
in case I want to put the hostgroup_name

thanks
02/22/2008 05:34:39
Post by Melanie Pfefer
thanks indeed
Now if I want to use hostgroup_name instead of
host_name,
ow to write the check_command line in
services.cfg?
Post by Melanie Pfefer
check_command
check_snmp_windows_disk!TROY!95!98!^[CDE]:!
is working for TROY only What should I do to apply
it
Post by Melanie Pfefer
on all hosts of a group?
thx
Just use hostgroup_name instead of host_name. That's
in the Nagios docs.>
-------------------------------------------------------------------------
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
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
___________________________________________________________
Rise to the challenge for Sport Relief with Yahoo! For Good

http://uk.promotions.yahoo.com/forgood/
m***@academy.com
2008-02-22 17:06:49 UTC
Permalink
Post by Melanie Pfefer
Hello Mark, all,
Yes true but what to put instead of the hostname(TROY)
in?
check_snmp_windows_disk!TROY!95!98!^[CDE]:!
in case I want to put the hostgroup_name
thanks
You would use hostgroup_name in the service definition and this line:

check_snmp_windows_disk!$HOSTADDRESS$!95!98!^[CDE]:

You can use $HOSTNAME$ but I wouldn't as DNS issues will then cause your
checks to fail.
Melanie Pfefer
2008-02-22 15:31:30 UTC
Permalink
it is ok
had to change
use lib "/usr/local/nagios/libexec";
to
use lib "/usr/local/nagios2/libexec";

thanks
02/22/2008 05:53:03
Post by Melanie Pfefer
also another question please. I had no problem on
my
Post by Melanie Pfefer
(No output!)
according to
http://nagios.manubulon.com/faq.html#FAQ8, I
should
Post by Melanie Pfefer
apply a patch. In that case, how to apply this
patch?
Post by Melanie Pfefer
according to
http://www.nagios.org/faqs/viewfaq.php?faq_id=336,
I
Post by Melanie Pfefer
need to add use lib "path-to-utils.pm" to the perl
script. how to specify that path?
thanks
PS: I m using Linux fedora
(No Output) could be a variety of things. First run
the command from the
command line with the -v switch to see the verbose
output, as the nagios
user of course, and from there begin
troubleshooting. I doubt it is option
#2 since I have not had to modify the script on any
server. If you have to
apply a patch I would start with contacting the
developer of the script.
___________________________________________________________
Rise to the challenge for Sport Relief with Yahoo! For Good

http://uk.promotions.yahoo.com/forgood/
Melanie Pfefer
2008-02-25 08:50:02 UTC
Permalink
Hello

Thanks indeed.
I have one windows 2000 server among the windows
servers. should I simply install snmp on this machine
(just as windows 2003?) or do I need net-snmp?

Meanwhile, this host is part of a hostgroup. I wanted
to disable the disk check for this host only but I got
this:

Sorry, but Nagios is currently not checking for
external commands, so your command will not be
committed!
Read the documentation for information on how to
enable external commands...

I tried to change this from nagios.cfg:
check_external_commands=1 (was 0)

but nagios failed to start.

Any idea how to disable this check for this host only?

This is what I had in the logs:

[1203927618] Error: Could not create external command
file '/usr/local/nagios2/var/rw/nagios.cmd' as named
pipe: (2) -> No such file or directory. If this file
already exists and you are sure that another copy of
Nagios is not running, you should delete this file.
[1203927618] Bailing out due to errors encountered
while trying to initialize the external command
file... (PID=11896)


thanks
02/22/2008 09:16:51
Post by Melanie Pfefer
Hello Mark, all,
Yes true but what to put instead of the
hostname(TROY)
Post by Melanie Pfefer
in?
check_snmp_windows_disk!TROY!95!98!^[CDE]:!
in case I want to put the hostgroup_name
thanks
You would use hostgroup_name in the service
You can use $HOSTNAME$ but I wouldn't as DNS issues
will then cause your
checks to fail.
__________________________________________________________
Sent from Yahoo! Mail.
A Smarter Inbox. http://uk.docs.yahoo.com/nowyoucan.html
Yost, Karl
2008-02-25 14:10:59 UTC
Permalink
1. You do not need net-snmp for the win2k servers, just install it like
you did snmp for 2k3.

2. You need to manually create an external command file in the location
specified in the error. The easiest way is to return to the dir where
your compiled nagios and run 'make install-commandmode'

-----Original Message-----
From: nagios-users-***@lists.sourceforge.net
[mailto:nagios-users-***@lists.sourceforge.net] On Behalf Of Melanie
Pfefer
Sent: Monday, February 25, 2008 3:50 AM
To: nagios-***@lists.sourceforge.net
Subject: Re: [Nagios-users] SNMP/Windows disk usage

Hello

Thanks indeed.
I have one windows 2000 server among the windows
servers. should I simply install snmp on this machine
(just as windows 2003?) or do I need net-snmp?

Meanwhile, this host is part of a hostgroup. I wanted
to disable the disk check for this host only but I got
this:

Sorry, but Nagios is currently not checking for
external commands, so your command will not be
committed!
Read the documentation for information on how to
enable external commands...

I tried to change this from nagios.cfg:
check_external_commands=1 (was 0)

but nagios failed to start.

Any idea how to disable this check for this host only?

This is what I had in the logs:

[1203927618] Error: Could not create external command
file '/usr/local/nagios2/var/rw/nagios.cmd' as named
pipe: (2) -> No such file or directory. If this file
already exists and you are sure that another copy of
Nagios is not running, you should delete this file.
[1203927618] Bailing out due to errors encountered
while trying to initialize the external command
file... (PID=11896)


thanks
02/22/2008 09:16:51
Post by Melanie Pfefer
Hello Mark, all,
Yes true but what to put instead of the
hostname(TROY)
Post by Melanie Pfefer
in?
check_snmp_windows_disk!TROY!95!98!^[CDE]:!
in case I want to put the hostgroup_name
thanks
You would use hostgroup_name in the service
You can use $HOSTNAME$ but I wouldn't as DNS issues
will then cause your
checks to fail.
__________________________________________________________
Sent from Yahoo! Mail.
A Smarter Inbox. http://uk.docs.yahoo.com/nowyoucan.html

------------------------------------------------------------------------
-
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-***@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
Marc Powell
2008-02-25 15:14:50 UTC
Permalink
-----Original Message-----
Sent: Monday, February 25, 2008 8:11 AM
Subject: Re: [Nagios-users] SNMP/Windows disk usage
2. You need to manually create an external command file in the
location
specified in the error. The easiest way is to return to the dir where
your compiled nagios and run 'make install-commandmode'
For clarification and the archives, you must not create the file itself.
It's not a regular file and Nagios will take care of creating it. You
must create the directory that it lives in though, with read/write
permissions for the Nagios user. The above-mentioned 'make
install-commandmode' is easiest way.

--
Marc
Melanie Pfefer
2008-02-28 17:07:50 UTC
Permalink
Hello and thanks bunches

When some machines are overloaded, the snmp alert is
sent. How to increase the alert period so that I do
not receive this alert frequently.

thanks.
Post by Yost, Karl
-----Original Message-----
[mailto:nagios-users-
Karl
Sent: Monday, February 25, 2008 8:11 AM
Subject: Re: [Nagios-users] SNMP/Windows disk
usage
2. You need to manually create an external command
file in the
location
specified in the error. The easiest way is to
return to the dir where
your compiled nagios and run 'make
install-commandmode'
For clarification and the archives, you must not
create the file itself.
It's not a regular file and Nagios will take care of
creating it. You
must create the directory that it lives in though,
with read/write
permissions for the Nagios user. The above-mentioned
'make
install-commandmode' is easiest way.
--
Marc
-------------------------------------------------------------------------
Post by Yost, Karl
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/
Post by Yost, Karl
_______________________________________________
Nagios-users mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users
Post by Yost, Karl
::: Please include Nagios version, plugin version
(-v) and OS when reporting any issue.
::: Messages without supporting info will risk being
sent to /dev/null
__________________________________________________________
Sent from Yahoo! Mail.
A Smarter Inbox. http://uk.docs.yahoo.com/nowyoucan.html
Marc Powell
2008-02-28 19:57:42 UTC
Permalink
-----Original Message-----
Sent: Thursday, February 28, 2008 11:08 AM
Subject: Re: [Nagios-users] SNMP/Windows disk usage
Hello and thanks bunches
When some machines are overloaded, the snmp alert is
sent. How to increase the alert period so that I do
not receive this alert frequently.
Clarify your question please.

"The service isn't down long enough before I receive a notification" -
Increase max_check_attempts.

"The service is hard down and I've received a notification. I want to
increase the time before a re-notification will be sent" - Increase
notification_interval or look at escalations.

"Other..." - ?

--
Marc
Melanie Pfefer
2008-02-29 15:51:28 UTC
Permalink
hello again

I added this to escalation.cfg

define hostescalation{
host_name zeus
contact_groups admins
first_notification 1
last_notification 3
notification_interval 180
}

Hosts.cfg

define host{
use general-server
host_name zeus
alias zeus
address 172.21.192.17
notification_interval 180
}

I am still receiving an alert every 1 hour

could you please advise?
thanks.


___________________________________________________________
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/
Melanie Pfefer
2008-03-01 06:38:02 UTC
Permalink
hello

here is the templates:

define host{
name general-server
use generic-host
check_period 24x7
max_check_attempts 10
check_command
check-host-alive
notification_interval 120
notification_options d,u,r
contact_groups admins
register 0
}





define host{
name generic-host
; The name of this host template
notifications_enabled 1
; Host notifications are enabled
event_handler_enabled 1
; Host event handler is enabled
flap_detection_enabled 1
; Flap detection is enabled
failure_prediction_enabled 1
; Failure prediction is enabled
process_perf_data 1
; Process performance data
retain_status_information 1
; Retain status information across program restarts
retain_nonstatus_information 1
; Retain non-status information across program
restarts
notification_period 24x7
; Send host notifications at any time
register 0
; DONT REGISTER THIS DEFINITION - ITS NOT A REAL
HOST, JUST A TEMPLATE!
}


--- "Valdinger, Stephen (DOV, MSX)"
What does your template look like for the host?
Could you post that too?
Stephen Valdinger
MIS Helpdesk Coordinator
330-365-3622
 
 
Why do we tell computers to shut down and people to
shut up?
-----Original Message-----
From: Melanie Pfefer
Sent: Friday, February 29, 2008 10:51 AM
Subject: [Nagios-users] alerts still received each
hour
hello again
I added this to escalation.cfg
define hostescalation{
host_name zeus
contact_groups admins
first_notification 1
last_notification 3
notification_interval 180
}
Hosts.cfg
define host{
use general-server
host_name zeus
alias zeus
address 172.21.192.17
notification_interval 180
}
I am still receiving an alert every 1 hour
could you please advise?
thanks.
___________________________________________________________
Yahoo! Answers - Got a question? Someone out there
knows the answer. Try it
now.
http://uk.answers.yahoo.com/
-------------------------------------------------------------------------
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
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
___________________________________________________________
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/
Melanie Pfefer
2008-03-25 12:38:45 UTC
Permalink
Hi again,

Do you have an idea why check_snmp_windows_disk
displays:

Additional Info:

D:

in its warning message even if the partition that is
full is E: for example?

thanks
Post by Marc Powell
-----Original Message-----
From: Melanie Pfefer
Sent: Thursday, February 28, 2008 11:08 AM
To: Marc Powell;
Subject: Re: [Nagios-users] SNMP/Windows disk
usage
Hello and thanks bunches
When some machines are overloaded, the snmp alert
is
sent. How to increase the alert period so that I
do
not receive this alert frequently.
Clarify your question please.
"The service isn't down long enough before I receive
a notification" -
Increase max_check_attempts.
"The service is hard down and I've received a
notification. I want to
increase the time before a re-notification will be
sent" - Increase
notification_interval or look at escalations.
"Other..." - ?
--
Marc
-------------------------------------------------------------------------
Post by Marc Powell
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/
Post by Marc Powell
_______________________________________________
Nagios-users mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users
Post by Marc Powell
::: Please include Nagios version, plugin version
(-v) and OS when reporting any issue.
::: Messages without supporting info will risk being
sent to /dev/null
__________________________________________________________
Sent from Yahoo! Mail.
More Ways to Keep in Touch. http://uk.docs.yahoo.com/nowyoucan.html
Melanie Pfefer
2008-03-25 21:14:10 UTC
Permalink
Sorry to keep this thread on.

I reproduced the problem: copy a large file to E:

nagios did send a warning message but on D: instead of
E: in the "additional info"
It sent another message when I deleted the file but it
indicated D: not E: again


Any idea where this "additional info" is defined?

thanks bunches
Post by Melanie Pfefer
Hi again,
Do you have an idea why check_snmp_windows_disk
in its warning message even if the partition that is
full is E: for example?
thanks
Post by Marc Powell
-----Original Message-----
From: Melanie Pfefer
Sent: Thursday, February 28, 2008 11:08 AM
To: Marc Powell;
Subject: Re: [Nagios-users] SNMP/Windows disk
usage
Hello and thanks bunches
When some machines are overloaded, the snmp
alert
Post by Marc Powell
is
sent. How to increase the alert period so that I
do
not receive this alert frequently.
Clarify your question please.
"The service isn't down long enough before I
receive
Post by Marc Powell
a notification" -
Increase max_check_attempts.
"The service is hard down and I've received a
notification. I want to
increase the time before a re-notification will be
sent" - Increase
notification_interval or look at escalations.
"Other..." - ?
--
Marc
-------------------------------------------------------------------------
Post by Melanie Pfefer
Post by Marc Powell
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/
Post by Melanie Pfefer
Post by Marc Powell
_______________________________________________
Nagios-users mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users
Post by Melanie Pfefer
Post by Marc Powell
::: Please include Nagios version, plugin version
(-v) and OS when reporting any issue.
::: Messages without supporting info will risk
being
Post by Marc Powell
sent to /dev/null
__________________________________________________________
Post by Melanie Pfefer
Sent from Yahoo! Mail.
More Ways to Keep in Touch.
http://uk.docs.yahoo.com/nowyoucan.html
-------------------------------------------------------------------------
Post by Melanie Pfefer
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/
Post by Melanie Pfefer
_______________________________________________
Nagios-users mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users
Post by Melanie Pfefer
::: Please include Nagios version, plugin version
(-v) and OS when reporting any issue.
::: Messages without supporting info will risk being
sent to /dev/null
__________________________________________________________
Sent from Yahoo! Mail.
More Ways to Keep in Touch. http://uk.docs.yahoo.com/nowyoucan.html
Loading...