Hi guys or girls,
Nobody is answering in Git and thought I might try to receive an answer here.
https://github.com/mickem/nscp/issues/611
In short, warn and crit filter are always overwritten with default 80% and 90%.
Am I missing something?
Thanks in advance.
check_drivesize not accepting warn and crit values
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: check_drivesize not accepting warn and crit values
We have some example syntax here
https://support.nagios.com/kb/article/d ... s-770.html
I looked at your github post and it seems you are grouping parts of the command with quoted around it
Instead of this
maybe try this
https://support.nagios.com/kb/article/d ... s-770.html
I looked at your github post and it seems you are grouping parts of the command with quoted around it
Instead of this
Code: Select all
alias_disk = check_drivesize "perf-config=*(unit:g) warning=used>90% critical=used>95% filter=removable=1 and type in ('fixed')" drive=all-drives show-all exclude=A: exclude=D:Code: Select all
alias_disk = check_drivesize 'warning=used>90%' 'critical=used>95%' 'perf-config=*(unit:G)' "filter=removable=1 and type in ('fixed')" drive=all-drives show-all exclude=A: exclude=D:Re: check_drivesize not accepting warn and crit values
Hi and thanks for responding!scottwilkerson wrote:We have some example syntax here
https://support.nagios.com/kb/article/d ... s-770.html
I looked at your github post and it seems you are grouping parts of the command with quoted around it
Instead of thismaybe try thisCode: Select all
alias_disk = check_drivesize "perf-config=*(unit:g) warning=used>90% critical=used>95% filter=removable=1 and type in ('fixed')" drive=all-drives show-all exclude=A: exclude=D:Code: Select all
alias_disk = check_drivesize 'warning=used>90%' 'critical=used>95%' 'perf-config=*(unit:G)' "filter=removable=1 and type in ('fixed')" drive=all-drives show-all exclude=A: exclude=D:
Your command does not work. Status information:
Code: Select all
Invalid command line: unrecognised option ''warning=used>90%''Code: Select all
check_drivesize "warning=used>90%" "critical=used>95%" "perf-config=*(unit:G)" "filter=removable=1 and type in ('fixed')" drive=all-drives show-all exclude=A: exclude=D:Code: Select all
OK: No drives found-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: check_drivesize not accepting warn and crit values
I was going off of your Github issue post where you had filter=removable=1
this means it will only show removable drives....
try this
this means it will only show removable drives....
try this
Code: Select all
alias_disk = check_drivesize 'warning=used>90%' 'critical=used>95%' 'perf-config=*(unit:G)' "filter=type in ('fixed')" drive=all-drives show-all exclude=A: exclude=D:Re: check_drivesize not accepting warn and crit values
That did the trick. Many thanks Scott.scottwilkerson wrote:I was going off of your Github issue post where you had filter=removable=1
this means it will only show removable drives....
try thisCode: Select all
alias_disk = check_drivesize 'warning=used>90%' 'critical=used>95%' 'perf-config=*(unit:G)' "filter=type in ('fixed')" drive=all-drives show-all exclude=A: exclude=D:
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: check_drivesize not accepting warn and crit values
Great!nfbnbm wrote:That did the trick. Many thanks Scott.scottwilkerson wrote:I was going off of your Github issue post where you had filter=removable=1
this means it will only show removable drives....
try thisCode: Select all
alias_disk = check_drivesize 'warning=used>90%' 'critical=used>95%' 'perf-config=*(unit:G)' "filter=type in ('fixed')" drive=all-drives show-all exclude=A: exclude=D:
Glad it's working
Locking thread