Re: [Nagios-users] Changing diskspace available from kilobytes to megabytes
On Jan 12, 2009, at 7:15 PM, Kaplan, Andrew H. wrote: > Hi there -- > > We currently have several Nagios 2.6, and will eventually deploy > version 3.0.6 servers running on our network. Currently diskspace > availability is shown in kilobytes, but I would prefer to have it > displayed in megabytes. > > Is it possible to configure either versions of Nagios to have the > output in megabytes? If so, what needs to be done in order to > accomplish this? Thanks > It comes from the check_disk plugin, not nagios. Interestingly, the default units _are_ megabytes so I think you might have specifically set it to show KB instead. Take a look at your check_disk command definition to verify you didn't specify -k and/or make sure you're using -u or -m properly. [libexec]$ ./check_disk --help check_disk v1848 (nagios-plugins 1.4.11) Copyright (c) 1999 Ethan Galstad Copyright (c) 1999-2006 Nagios Plugin Development Team This plugin checks the amount of used disk space on a mounted file system and generates an alert if free space is less than one of the threshold values Usage: check_disk -w limit -c limit [-W limit] [-K limit] {-p path | - x device} [-C] [-E] [-e] [-g group ] [-k] [-l] [-M] [-m] [-R path ] [-r path ] [-t timeout] [-u unit] [-v] [-X type] Options: -h, --help Print detailed help screen [chop chop snip snip ohwhatareliefitis] -k, --kilobytes Same as '--units kB' -m, --megabytes Same as '--units MB' -u, --units=STRING Choose bytes, kB, MB, GB, TB (default: MB) -- Marc -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ Nagios-users mailing list Nagios-users@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
Re: [Nagios-users] Changing diskspace available from kilobytes to megabytes
The disk space units have nothing to do with Nagios, but with the output of the particular plugin you are using. The plugin 'check_disk', which comes with the Nagios Plugins package, by default displays data in megabytes, but you change the units with the proper argument. It appears that plugin only works with locally mounted filesytems. There is another plugin called 'check_snmp_storage.pl' which allows you to check diskspace of remote systems via SNMP. It's units are in megabytes only. You could change this by editing the perl script, of course. So, it all depends on the plugin you are using and whether or not the disk space units are configurable. I would suggest searching Google. ;-) James Moseley "Kaplan, Andrew H." 01/12/2009 07:15 cc PM Subject [Nagios-users] Changing diskspace available from kilobytes to megabytes Hi there -- We currently have several Nagios 2.6, and will eventually deploy version 3.0.6 servers running on our network. Currently diskspace availability is shown in kilobytes, but I would prefer to have it displayed in megabytes. Is it possible to configure either versions of Nagios to have the output in megabytes? If so, what needs to be done in order to accomplish this? Thanks. The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Partners Compliance HelpLine at http://www.partners.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail. -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ Nagios-users mailing list Nagios-users@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: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ Nagios-users mailing list Nagios-users@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
[Nagios-users] Changing diskspace available from kilobytes to megabytes
Hi there -- We currently have several Nagios 2.6, and will eventually deploy version 3.0.6 servers running on our network. Currently diskspace availability is shown in kilobytes, but I would prefer to have it displayed in megabytes. Is it possible to configure either versions of Nagios to have the output in megabytes? If so, what needs to be done in order to accomplish this? Thanks. The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Partners Compliance HelpLine at http://www.partners.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail. -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword___ Nagios-users mailing list Nagios-users@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