Hi,
We have several services, NRPE_checks where the value in "Status information" throws in a couple chars when a service is measured in KB.
Example 6.14928e+009, when I see in performance data the extra chars which is always e+ is not there.
/Claus
nrpe service status information
Re: nrpe service status information
Can you post the configurations for those check with the incorrect status information so we can see which command you are running?
The status information is separate data from the Performance data so if the performance data output is correct, it will be displayed normally.
Can you run the command in a shell on the Nagios server and post the output?
The status information is separate data from the Performance data so if the performance data output is correct, it will be displayed normally.
Can you run the command in a shell on the Nagios server and post the output?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: nrpe service status information
define service {
host_name xxxxxxxxx
service_description SQLDatabases - Data File Size-KB
check_command check_nrpe_nossl_3args_4kpayload!check_pdh! -a "counter:SQLDB Data File size(KB)=\\SQLServer:Databases(_Total)\\Data File(s) Size (KB)"!!!!!!
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
register 1
}
ran command with output:
/usr/local/nagios/libexec/check_nrpe -2 -P 4096 -H 8.8.8.8 -n -t 30 -c check_pdh -a "counter:SQLDB Data File size(KB)=\\SQLServer:Databases(_Total)\\Data File(s) Size (KB)"
OK: SQLDB Data File size(KB) = 6.16157e+009|'SQLDB Data File size(KB)_value'=6161568704;0;0
host_name xxxxxxxxx
service_description SQLDatabases - Data File Size-KB
check_command check_nrpe_nossl_3args_4kpayload!check_pdh! -a "counter:SQLDB Data File size(KB)=\\SQLServer:Databases(_Total)\\Data File(s) Size (KB)"!!!!!!
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
register 1
}
ran command with output:
/usr/local/nagios/libexec/check_nrpe -2 -P 4096 -H 8.8.8.8 -n -t 30 -c check_pdh -a "counter:SQLDB Data File size(KB)=\\SQLServer:Databases(_Total)\\Data File(s) Size (KB)"
OK: SQLDB Data File size(KB) = 6.16157e+009|'SQLDB Data File size(KB)_value'=6161568704;0;0
Re: nrpe service status information
The status output is showing the counter in KB but the Performance data is in Bytes.
If you want to change them, you would have to add the detail-syntax option to the command to change the status output or add the perf-syntax option to the command to change the performance data output.
Take a look at these links for more details on those options.
http://docs.nsclient.org/0.4.3/referenc ... .check_pdh
https://docs.nsclient.org/0.4.4/referen ... ail-syntax
https://docs.nsclient.org/0.4.4/referen ... erf-syntax
If you want to change them, you would have to add the detail-syntax option to the command to change the status output or add the perf-syntax option to the command to change the performance data output.
Take a look at these links for more details on those options.
http://docs.nsclient.org/0.4.3/referenc ... .check_pdh
https://docs.nsclient.org/0.4.4/referen ... ail-syntax
https://docs.nsclient.org/0.4.4/referen ... erf-syntax
Be sure to check out our Knowledgebase for helpful articles and solutions!