Good Morning All,
As disk capacity grows rather rapidly these days it would be great if i could modify our disk checks to warn when there's a specific amount of free space left as opposed to the current system of percentage remaining. The server administrators are constantly complaining of getting bombarded by email spam from Nagios when their drives or attached arrays have hundreds of Gb left available - even when warning / critical is set to notify at 98 / 99%. I would say roughly 80% of all notifications going out from Nagios are reporting low disk conditions when in reality that's just not the case.
So the million dollar question is if there is a way to globally change all disk-related checks to warn (for example) when there's 2Gb of free space and critical at 1Gb?
Further info:
Xi 2012r2.2
Current disk checks are all using check_nt command
Environment is 99% Windows servers 2003-2008r23- using NSClient v3.xx
Such a change would be VERY welcomed in our environment....management has approved custom programming time to this task if necessary.
Thanks,
Brian
Way to globally change all servers disk space checks?
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Way to globally change all servers disk space checks?
Presuming with nsclient you are using CheckDisk, I would suggest looking at the example page for that check. You should be able to specify something like 2048M or 2G for 2GB instead of the percentages.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Re: Way to globally change all servers disk space checks?
Hi,
Sorry I wasn't very clear on my last post.... here's the situation:
We're entering servers into XI using the standard windows server wizard. After the server is entered, the disk checks are as such: So the basic check is: $USER1$/check_nt -H $HOSTADDRESS$ -s "$ARG1$" -p 12489 -v $USEDDISKSPACE$ $-l C -w 90 -c 95$ $ARG4$
Typical command output in XI: D:\ - total: 500.00 Gb - used: 486.79 Gb (97%) - free 13.21 Gb (3%)
What I'm asking is if there's a way to bulk change all existing disk check commands in XI to another command that allows us to crit/warn when a specific amount of drive space is left - and also change the behavior of the server wizard to use this command by default instead of the existing check_NT USEDDISKSPACE.
Hope this clarifies things.
Thanks,
Brian
Sorry I wasn't very clear on my last post.... here's the situation:
We're entering servers into XI using the standard windows server wizard. After the server is entered, the disk checks are as such: So the basic check is: $USER1$/check_nt -H $HOSTADDRESS$ -s "$ARG1$" -p 12489 -v $USEDDISKSPACE$ $-l C -w 90 -c 95$ $ARG4$
Typical command output in XI: D:\ - total: 500.00 Gb - used: 486.79 Gb (97%) - free 13.21 Gb (3%)
What I'm asking is if there's a way to bulk change all existing disk check commands in XI to another command that allows us to crit/warn when a specific amount of drive space is left - and also change the behavior of the server wizard to use this command by default instead of the existing check_NT USEDDISKSPACE.
Hope this clarifies things.
Thanks,
Brian
You do not have the required permissions to view the files attached to this post.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Way to globally change all servers disk space checks?
If you did not use a template, or applied the same service to multiple hosts then no, not currently. This is the reason we recommend using these two options. If you only have one object to worry about changing it makes life a lot easier. But, that comes at the cost of customization on a per host basis without creating a new service / template.