Replies: 2 comments
-
There are a lot of things going on here so if I missunderstood your problem please do let me know... Does that make sense? If not lets make an example:
Here we can clearly seee that I need to clean my disk (or buy a new SSD). Now if I instead check a non existing drive called foobar:
What we get now is The reason here is that we have two things happening:
To control this we can use the
Which might be more confusing, but in your case perhaps the "empty list" is ok? That said the message should match the actual status here and this is a bug, but it is only a bug in the message so it is not afffecting your alerts. |
Beta Was this translation helpful? Give feedback.
-
(the bug mentioned above will be fixed in next version) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello
I tried to have a check for all other drive than C drive, so i have add a exclude=C in my command, to have this one :
/usr/lib64/nagios/plugins/check_centreon_nrpe3 -H HOSTNAME -p 5666 -t 60 -2 -P 8192 -c check_drivesize -a "drive=*" "perf-config=used(unit:GB)used %(ignored:true)" "filter=type = 'fixed' and name not regexp '.System Reserved.' and type not in('CDROM','REMOVABLE') and mounted=1" "warning=total_used>96%" "critical=total_used>96%" "exclude=C"
Under poller, if i run comand i have this return :
OK: No drives found
But under web interface i have an UNKNOWN and not OK.
For server where there is an other drive than C it works (it return size of other drive), but for system with only C: drive, not an OK even if return is : OK: No drives found
Thanks a lot for your help, as i don't find solution and i don't want to create own check for this existing feature.
Beta Was this translation helpful? Give feedback.
All reactions