Monitor disk space by specific value
Posted: Sun Oct 13, 2019 10:44 am
Good Morning,
I want to monitor the free disk space of my Windows and Linux servers but configure the alerts when it is met not in percentage but in specific value in Gb of 5 for warning and 10 for critical.
I have reviewed the url https://support.nagios.com/kb/article.p ... free_value, in the Disk Free Space - Specified value section and I have found some plugins that can solve my problem but nevertheless I have the following doubts:
1. Can I not add my remote host with the check_disk plugin? I mean it doesn't have the host parameter or how I add it.
2. I installed nrpe by following the url: https://support.nagios.com/kb/article.php?id=515 but when executing the test command I get
./check_nrpe -H 192.168.32.16 -c check_drivesize -a drive=C: 'warning=free<10G' 'critical=free<5G' show-all 'perf-config=*(unit:G)' detail-syntax='{${drive_or_name} ${free} free / ${size} total}' top-syntax='${status}: ${problem_list}'
Exception processing request: Request contained arguments (not currently allowed, check the allow arguments option).
With the same check_nrpe the following commands applied to a remote computer I get an answer
./check_nrpe -H 192.168.32.16 -c check_cpu
./check_nrpe -H 192.168.32.16 -c check_memory
./check_nrpe -H 192.168.32.16 -c check_drivesize
I would be grateful if you could indicate to me what would be the best way to monitor the disk of my equipment, or the plugin with some suitable argument.
Best regards
I want to monitor the free disk space of my Windows and Linux servers but configure the alerts when it is met not in percentage but in specific value in Gb of 5 for warning and 10 for critical.
I have reviewed the url https://support.nagios.com/kb/article.p ... free_value, in the Disk Free Space - Specified value section and I have found some plugins that can solve my problem but nevertheless I have the following doubts:
1. Can I not add my remote host with the check_disk plugin? I mean it doesn't have the host parameter or how I add it.
2. I installed nrpe by following the url: https://support.nagios.com/kb/article.php?id=515 but when executing the test command I get
./check_nrpe -H 192.168.32.16 -c check_drivesize -a drive=C: 'warning=free<10G' 'critical=free<5G' show-all 'perf-config=*(unit:G)' detail-syntax='{${drive_or_name} ${free} free / ${size} total}' top-syntax='${status}: ${problem_list}'
Exception processing request: Request contained arguments (not currently allowed, check the allow arguments option).
With the same check_nrpe the following commands applied to a remote computer I get an answer
./check_nrpe -H 192.168.32.16 -c check_cpu
./check_nrpe -H 192.168.32.16 -c check_memory
./check_nrpe -H 192.168.32.16 -c check_drivesize
I would be grateful if you could indicate to me what would be the best way to monitor the disk of my equipment, or the plugin with some suitable argument.
Best regards