Check_disk_smb problem
Jeff McKeon
jsm at inpro.net
Thu Apr 24 18:31:53 CEST 2003
Look at this..
[jsm at rh80-jsm libexec]$ ./check_disk_smb -H db01tc07927 -s mail -w 47G
-c 2G
WARNING: Only 46.47G (92%) free on \\db01tc07927\mail
[jsm at rh80-jsm libexec]$ ./check_disk_smb -H db01tc07927 -s mail -w 50G
-c 47G
CRITICAL: Only 46.47G (92%) free on \\db01tc07927\mail
You need to specify k, M or G after the thresholds in order for it to
work the way you want...
On Thu, 2003-04-24 at 11:57, Steve Dussaux wrote:
> Nop it doesn't work.
>
> --- Jeff McKeon <jsm at inpro.net> a écrit : > Look at it the other way around...
> >
> > warning state of 30% free and a critical state of 10% free
> >
> > Won't that work?
> >
> > On Thu, 2003-04-24 at 08:20, Steve Dussaux wrote:
> > > Thanks for your answer but I'm still being confused.
> > > Even you have redefined the plugin usage instruction, the results with % usage are still false
> > > since this plugin returns % FREE and not % USED.
> > > What does it mean to specify a WARNING STATE of 85% FREE and a CRITICAL STATE of 95% FREE disk
> > ?
> > > !!
> > >
> > > Steve
> > >
> > >
> > > --- Stanley Hopcroft <Stanley.Hopcroft at IPAustralia.Gov.AU> a écrit : > Dear Sir,
> > > >
> > > > This plugins usage instructions were not clear to me either so I
> > > > 'improved' it ...
> > > >
> > > > Here's my usage instructions
> > > >
> > > > -w, --warning=STRING == \d+ | \d+% | \d+(\.\d+)?(K|M|G|T)
> > > > Either the amount of free space __below__ which a warning will be
> > > > generated (followed by a unit suffix), Or
> > > > Percent of used space __above__ which a warning will be generated
> > > > (Default: 85%)
> > > > -c, --critical=STRING == \d+ | \d+% | \d+(\.\d+)?(K|M|G|T)
> > > >
> > > > Either the amount of free space __below__ which a critical will be
> > > > generated (followed by a unit suffix), Or
> > > > Percent of used space __above__ which a critical will be generated
> > > > (Default: 95%)
> > > >
> > > > if % theshholds, Critical if disk_usage% >= crit_threshold, Warn
> > > > if warn_threshold <= disk_usage% < crit_thresh
> > > > if byte threshold, Critical if free_bytes <= crit_threshold, Warn
> > > > if warn_threshold >= free_bytes > crit_thresh
> > > >
> > > > Therefore since the thresholds are specified as Percentages, the first
> > > > inequalities apply so
> > > >
> > > > '- First the script tells me to specify a WARNING thresold < CRITICAL
> > > > thresold. I don't understand the WARN threshold sould be > CRIT
> > > > threshold for free space.'
> > > >
> > > > then WARN is < CRITICAL (so warn if 85% is used, alert if 95%).
> > > >
> > > > You are right. Every time I look at this it's confusing. An unreasonable
> > > > trade-off, in my view, for plugin helpfulness - will interpret any
> > > > definition of disk usage - against ambiguity.
> > > >
> > > > Yours sincerely.
> > > >
> > > >
> > > > --
> > > > ------------------------------------------------------------------------
> > > > Stanley Hopcroft
> > > > ------------------------------------------------------------------------
> > > >
> > > > '...No man is an island, entire of itself; every man is a piece of the
> > > > continent, a part of the main. If a clod be washed away by the sea,
> > > > Europe is the less, as well as if a promontory were, as well as if a
> > > > manor of thy friend's or of thine own were. Any man's death diminishes
> > > > me, because I am involved in mankind; and therefore never send to know
> > > > for whom the bell tolls; it tolls for thee...'
> > > >
> > > > from Meditation 17, J Donne.
> > > >
> > > >
> > > > -------------------------------------------------------
> > > > This sf.net email is sponsored by:ThinkGeek
> > > > Welcome to geek heaven.
> > > > http://thinkgeek.com/sf
> > > > _______________________________________________
> > > > 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
> > >
> > > ___________________________________________________________
> > > Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
> > > Yahoo! Mail : http://fr.mail.yahoo.com
> > >
> > >
> > > -------------------------------------------------------
> > > This sf.net email is sponsored by:ThinkGeek
> > > Welcome to geek heaven.
> > > http://thinkgeek.com/sf
> > > _______________________________________________
> > > 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
> > --
> > Jeff McKeon <jsm at inpro.net>
> >
>
> ___________________________________________________________
> Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
> Yahoo! Mail : http://fr.mail.yahoo.com
--
Jeff McKeon <jsm at inpro.net>
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
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