check_nrpe & NSClient++ - Alert threshold help
Posted: Tue Jun 21, 2016 3:51 am
Hi all,
First of all here are the details of the Nagios servers and the host that I am trying to monitor;
CentOS 7 Minimal running NagiosĀ® Core - Version 4.0.8
Host - Windows Server 2012 R2 Standard running NSClient++ 0.4.4.19
I recently inherited this system and have been monitoring the disk usage on this host using the following command with the default warning and critical threshold values "$USER1$/check_nrpe -H $HOSTADDRESS$ -c check_drivesize -a drive=d"
I want to adjust the thresholds for warning and critical as the client is aware that the disk is full and is happy for it to be at 94%. They want alerting when it reaches 98% but I don't seem to be able to achieve this with the command arguments. I have followed the NRPE Syntax guide and it doesn't seem to work, I have also used the help info within the command with no success. Here are some examples of what I have tried;
$USER1$/check_nrpe -H $HOSTADDRESS$ -c check_drivesize -a drive=d "warning=used > 80%" "critical=used > 90%"
$USER1$/check_nrpe -H $HOSTADDRESS$ -c check_drivesize -a drive=d crit=used > 90%
$USER1$/check_nrpe -H $HOSTADDRESS$ -c check_drivesize -a drive=d "warning=used > 80%" "critical=used > 90%" "empty-state=unknown"
I have tried all the combinations that I can think of based on the syntax guides and --help output from the command. Even trying them on a word for word basis from the examples given and non of them seem to work.
Hopefully this is something simple and I am missing something really obvious but either way it is currently driving me insane.
Any help would be much appreciated.
First of all here are the details of the Nagios servers and the host that I am trying to monitor;
CentOS 7 Minimal running NagiosĀ® Core - Version 4.0.8
Host - Windows Server 2012 R2 Standard running NSClient++ 0.4.4.19
I recently inherited this system and have been monitoring the disk usage on this host using the following command with the default warning and critical threshold values "$USER1$/check_nrpe -H $HOSTADDRESS$ -c check_drivesize -a drive=d"
I want to adjust the thresholds for warning and critical as the client is aware that the disk is full and is happy for it to be at 94%. They want alerting when it reaches 98% but I don't seem to be able to achieve this with the command arguments. I have followed the NRPE Syntax guide and it doesn't seem to work, I have also used the help info within the command with no success. Here are some examples of what I have tried;
$USER1$/check_nrpe -H $HOSTADDRESS$ -c check_drivesize -a drive=d "warning=used > 80%" "critical=used > 90%"
$USER1$/check_nrpe -H $HOSTADDRESS$ -c check_drivesize -a drive=d crit=used > 90%
$USER1$/check_nrpe -H $HOSTADDRESS$ -c check_drivesize -a drive=d "warning=used > 80%" "critical=used > 90%" "empty-state=unknown"
I have tried all the combinations that I can think of based on the syntax guides and --help output from the command. Even trying them on a word for word basis from the examples given and non of them seem to work.
Hopefully this is something simple and I am missing something really obvious but either way it is currently driving me insane.
Any help would be much appreciated.