HP-UX CPU statistics is not working
Posted: Fri Jun 02, 2017 5:45 am
Hi Team,
We have a HP-UX box for which CPU statistics is not showing data when we are running the script as a service.
However when we are running it manually on server it's working fine.
Server output:
/opt/nrpe/libexec/check_cpu.sh
CPU STATISTICS OK : user=0% system=0% iowait=0% idle=100% nice=0.00% steal=0.00% | CpuUser=0;CpuSystem=0;CpuIowait=0;CpuIdle=100;CpuNice=00.0;CpuSteal=00.0;70,40,30;90,60,40
Nagios error:
/usr/local/nagios/libexec/check_nrpe -H 172.24.x.x-t 60 -c check_cpu -n -a '-w 70,40,30 -c 90,40,30'
ERROR : Bad count parameter in Warning Threshold
Plugin Details:
# CPU Utilization Statistics plugin for Nagios
#
# Written by : Steve Bosek
# Patched by : Bas van der Doorn
# Release : 2.3
# Creation date : 8 September 2007
# Revision date : 11 December 2008
# Package : DTB Nagios Plugin
# Description : Nagios plugin (script) to check cpu utilization statistics.
# This script has been designed and written on Unix plateform (Lin
ux, Aix, Solaris),
# requiring iostat as external program. The locations of these can
easily
# be changed by editing the variables $IOSTAT at the top of the sc
ript.
# The script is used to query 6 of the key cpu statistics (user,sy
stem,iowait,steal,nice,idle)
# at the same time.
#
# USAGE : ./check_cpu_stats.sh Regards,
Sk Abdul Goffar
We have a HP-UX box for which CPU statistics is not showing data when we are running the script as a service.
However when we are running it manually on server it's working fine.
Server output:
/opt/nrpe/libexec/check_cpu.sh
CPU STATISTICS OK : user=0% system=0% iowait=0% idle=100% nice=0.00% steal=0.00% | CpuUser=0;CpuSystem=0;CpuIowait=0;CpuIdle=100;CpuNice=00.0;CpuSteal=00.0;70,40,30;90,60,40
Nagios error:
/usr/local/nagios/libexec/check_nrpe -H 172.24.x.x-t 60 -c check_cpu -n -a '-w 70,40,30 -c 90,40,30'
ERROR : Bad count parameter in Warning Threshold
Plugin Details:
# CPU Utilization Statistics plugin for Nagios
#
# Written by : Steve Bosek
# Patched by : Bas van der Doorn
# Release : 2.3
# Creation date : 8 September 2007
# Revision date : 11 December 2008
# Package : DTB Nagios Plugin
# Description : Nagios plugin (script) to check cpu utilization statistics.
# This script has been designed and written on Unix plateform (Lin
ux, Aix, Solaris),
# requiring iostat as external program. The locations of these can
easily
# be changed by editing the variables $IOSTAT at the top of the sc
ript.
# The script is used to query 6 of the key cpu statistics (user,sy
stem,iowait,steal,nice,idle)
# at the same time.
#
# USAGE : ./check_cpu_stats.sh Regards,
Sk Abdul Goffar