Thanks for the response cdienger.
The plugin is throwing error as below. The system has vmstat
bash-3.2# ./check_vital
WARNING - need either --vmstat or --netstat or both bash-3.2# vmstat
kthr memory page disk faults cpu
r b w swap free re mf pi po fr de sr m1 m1 m1 m2 in sy cs us sy id
0 0 0 30582968 29681736 2 7 0 0 0 0 0 0 0 0 0 1061 82 403 0 0 100
bash-3.2#
this script/plugin is taking too long to output the result. For example, below command is taking 1 min and 40 seconds. It's too long and it will have performance impact on the server. Is there any workaround for this?
date; /usr/local/nagios/libexec/check_nrpe -H 10.92.34.49 -t 600 -c check_vital; date
Thu May 30 09:05:55 EDT 2019
OK - cpu_r=0 cpu_b=0 cpu_w=0 mem_swap=442039056 mem_free=226611232 mem_re=211 mem_mf=457 mem_pi=0 mem_po=0 sr=0 cpu_int=8078 cpu_syc=9941 cpu_csw=8157 cpu_usr=3 cpu_sys=1 cpu_idl=97
Thu May 30 09:07:35 EDT 2019
Secondly, I created service as shown in attached screenshot. But it is timing out after 60.2 seconds, refer attached screenshot. Please note that I updated the nrpe.cfg to increase connection time out and command time out to "600"
You do not have the required permissions to view the files attached to this post.
You'll also need to increase the global timeout setting under Configure > Core Config Manager > CCM Admin > Core Configs > General. The setting is service_check_timeout and is set to 60 by default.
Does the data command exist on the Solaris system? If so, what is the output of "date;./check_vital --vmstat;date" ?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.