Antwort: Can nagios recognize newly added disks

Max perldork at webwizarddesign.com
Thu Jul 23 13:44:40 CEST 2009


If you are using a vendpor-specific host agent like dell openmanage or
hp insight manager it will send snmp traps when a disk is removed or
added; these traps can be received by snmptrapd, filtereed by SNMPTT
and then submitted to Nagios as assive checks..

We use this extensively though we do not have any event handlers or
scripts fire when this happens .. We just notify.

Better in my opinion to use plugins that check multiple partitions or
disk devices at once that take general and specific thresholds so that
as partition or device count changes the plugin still just scans
everything that is available on the host.

For example our SNMP-based partiton checking plugins let the end user
specify both a default threshold and specific thresholds and allow the
user to filter on FS type ... So if a new partition is added, it will
be checked, user just has to reconfigure their thresholds if they want
a threshold specific to the new partition.  Our threshold strings for
partitions look something like this as an example

-w default,gt,90:/boot,gt,99:/app/path,gt,65

Which in english says

"Warn if /boot > 90% or /app/path > 65% or if any other partition on
the system > 90% full."

The script then has separate flags for filtering out or in filesystem types.

Max

On 7/23/09, Sascha.Runschke at gfkl.com <Sascha.Runschke at gfkl.com> wrote:
>> Objective:
>> Is Nagios capable of re-scanning the disk drives or recognize if
>> there are newly added disks/removed disks from existing servers that
>> are being monitored in Nagios.
>
> No, that's not possible out-of-the-box and I cannot imagine
> anyone working on something like this - it's just not feasible.
> Nagios itself is independent of the remote machine and its
> agent. You can even write your own agent if you want to,
> for Nagios it's all the same - just a check that gives
> some results back. So to have a mechanism describe by you,
> Nagios would need to know about all and every agent out
> there and how to remotely check and configure it - that's
> out of the scope of the purpose of Nagios.
>
> Though there is the possibility with most remote agents,
> that you can trigger an "check all disks that are present"
> check. There are 2 turndowns in this though:
>
> - those checks tend to check DVD/CD drives too - bad idea
> - if you add or remove disks, the number of results returned
>   will differ - making pnp4nagios puke, as it expects always
>   the same number of results
>
> Your turn to choose what you want - both sides suck a little ;)
>
> S
>
>
>
> GFKL Financial Services AG
> Vorstand: Dr. Peter Jänsch (Vors.), Jürgen Baltes, Dr. Tom Haverkamp
> Vorsitzender des Aufsichtsrats: Dr. Georg F. Thoma
> Sitz: Limbecker Platz 1, 45127 Essen, Amtsgericht Essen, HRB 13522

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