Formatting the output from ncpa agent
Posted: Fri Jul 03, 2020 2:09 am
Hi All,
with a fresh install of 5.7.1 I'm looking to migrate to ncpa agent from the previous nsclient++
With my existing installation, I monitor the total CPU usage of my VM's on a server using the following command
this returns a nice string of
I got the same check happening with ncpa using the command
However, this returns the very long and quite ugly
and also uses the long string Hyper-V Hypervisor Logical Processor(_Total)\% Total Run Time as the legend on the graphs. Is there any way of adding a "label" of sorts to the ncpa command like I could with the check_nt command?
Thanks in advance,
Chris.
with a fresh install of 5.7.1 I'm looking to migrate to ncpa agent from the previous nsclient++
With my existing installation, I monitor the total CPU usage of my VM's on a server using the following command
Code: Select all
/usr/local/nagios/libexec/check_nt -H ${Host} -s ${PW} -p 12489 -v COUNTER -l "\Hyper-V Hypervisor Logical Processor(_Total)\% Total Run Time","VM CPU Usage is %.1f" -w 70 -c 85Code: Select all
VM CPU Usage is 8.0Code: Select all
/usr/local/nagios/libexec/check_ncpa.py -H 1server.curric.lilydale-hs.wan -t 'mytoken' -P 5693 -M 'windowscounters/Hyper-V Hypervisor Logical Processor(_Total)/% Total Run Time' -q sleep=1Code: Select all
OK: \Hyper-V Hypervisor Logical Processor(_Total)\% Total Run Time was 14.86 % Total Run TimeThanks in advance,
Chris.