Thanks for reply.
Now it's works for me .
I have executed the service called Memory and the output as shown and working fine.
Code: Select all
[root@nagios_test libexec]# ./check_ncpa.py -H <hostname> -t <my token> -M 'memory/virtual' -w 50 -c 60
OK: Used memory was 22.70 % (Available: 2.89 GiB, Total: 3.74 GiB, Free: 1.31 GiB, Used: 0.61 GiB) | 'available'=2.89GiB;50;60; 'total'=3.74GiB;50;60; 'free'=1.31GiB;50;60; 'used'=0.61GiB;50;60;
Code: Select all
[root@nagios_test libexec]# ./check_ncpa.py -H <hostname> -t <my token> -M disk/logical/C:|/used_percent -w 50 -c 60
-bash: /used_percent: No such file or directory
close failed in file object destructor:
Error in sys.excepthook:
I tried all of possibilities by changing the arguments
-M 'disk/logical' -w 50 -c 60
-M 'disk/logical/ _/free'
Please help me out to solve the issue.
cheers,
Simbu