Page 1 of 1
Best way to check Disk fragmentation levels
Posted: Thu Apr 14, 2016 10:07 am
by dlukinski
What is the best way to check on DISK fragmentation levels with XI ?
Re: Best way to check Disk fragmentation levels
Posted: Thu Apr 14, 2016 1:02 pm
by rkennedy
Where do you usually look for the defrag level?
I looked at windows, and found the defrag command, but I don't think it'll give you the 'level'. If a plugin needs to be made, we need to be able to pull that data from somewhere.
Re: Best way to check Disk fragmentation levels
Posted: Fri Apr 22, 2016 2:49 pm
by dlukinski
rkennedy wrote:Where do you usually look for the defrag level?
I looked at windows, and found the defrag command, but I don't think it'll give you the 'level'. If a plugin needs to be made, we need to be able to pull that data from somewhere.
Reason I asked is because this is stock check in SCOM (for Windows servers)
- was wondering if similar was known for NAGIOS
You could close this thread if not known
Re: Best way to check Disk fragmentation levels
Posted: Mon Apr 25, 2016 9:37 am
by rkennedy
I found this plugin at our Exchange, give it a try and see if it's what you're looking for.
https://exchange.nagios.org/directory/P ... ag/details
Re: Best way to check Disk fragmentation levels
Posted: Wed Jul 20, 2016 10:05 am
by dlukinski
Defined command in nsclient.ini as
[NRPE Handlers]
check_ExecCustScript= scripts\$ARG1$ $ARG2$
but getting this error: Unknown command(s): check_execcustscript
Re: Best way to check Disk fragmentation levels
Posted: Wed Jul 20, 2016 11:44 am
by rkennedy
Did you restart the NSClient++ service after adding it? Also, make sure that the command is under this section (not sure where the [NRPE Handlers] came from) - [/settings/external scripts/scripts]
If that doesn't work, please post your nsclient configuration file for us to look at.
Re: Best way to check Disk fragmentation levels
Posted: Wed Jul 20, 2016 1:06 pm
by dlukinski
rkennedy wrote:Did you restart the NSClient++ service after adding it? Also, make sure that the command is under this section (not sure where the [NRPE Handlers] came from) - [/settings/external scripts/scripts]
If that doesn't work, please post your nsclient configuration file for us to look at.
Taken from author's page- HOW TO INSTALL THE PLUG-IN section.
Now error had changed to "Unknown command(s): scripts\$arg1$"
nsclient.ini attached
Re: Best way to check Disk fragmentation levels
Posted: Wed Jul 20, 2016 3:54 pm
by mcapra
Your check_ExecCustScript definition is under
[/settings/external scripts/alias] when, as
@rkennedy pointed out, it should instead be under
[/settings/external scripts/scripts].
It's also worth mentioning that NSClient++ might be a bit finicky if you're trying to pass a script name as an actual argument. Generally when you define external scripts, you're including the full script path (eg check_custom = scripts\myscript.bat $ARG1$).
Re: Best way to check Disk fragmentation levels
Posted: Tue Aug 16, 2016 1:21 pm
by dlukinski
mcapra wrote:Your check_ExecCustScript definition is under
[/settings/external scripts/alias] when, as
@rkennedy pointed out, it should instead be under
[/settings/external scripts/scripts].
It's also worth mentioning that NSClient++ might be a bit finicky if you're trying to pass a script name as an actual argument. Generally when you define external scripts, you're including the full script path (eg check_custom = scripts\myscript.bat $ARG1$).
Please close this thread. We could not get it to work, but with migration of physical Wintel servers into W2012, it is no longer required.
Re: Best way to check Disk fragmentation levels
Posted: Tue Aug 16, 2016 1:26 pm
by rkennedy
Awesome, closing out!