Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
bernard@lheureux.be
php -q ./NSXMon.php -H 10.6.253.253 -f "/usr/lib/nagios/plugins/NSXauthfile.cfg" -m "system" -a "mem-usage" -c "95" -C "" -O "" -s "" -n ""
PHP Notice: Undefined variable: mymempercent in /usr/lib/nagios/plugins/NSXMon.php on line 384
PHP Stack trace:
PHP 1. {main}() /usr/lib/nagios/plugins/NSXMon.php:0
PHP 2. main() /usr/lib/nagios/plugins/NSXMon.php:1177
PHP Notice: Undefined variable: mymempercent in /usr/lib/nagios/plugins/NSXMon.php on line 389
PHP Stack trace:
PHP 1. {main}() /usr/lib/nagios/plugins/NSXMon.php:0
PHP 2. main() /usr/lib/nagios/plugins/NSXMon.php:1177
How could I fix that ?
PHP Notice: Undefined variable: mymempercent in /usr/lib/nagios/plugins/NSXMon.php on line 384
PHP Stack trace:
PHP 1. {main}() /usr/lib/nagios/plugins/NSXMon.php:0
PHP 2. main() /usr/lib/nagios/plugins/NSXMon.php:1177
PHP Notice: Undefined variable: mymempercent in /usr/lib/nagios/plugins/NSXMon.php on line 389
PHP Stack trace:
PHP 1. {main}() /usr/lib/nagios/plugins/NSXMon.php:0
PHP 2. main() /usr/lib/nagios/plugins/NSXMon.php:1177
How could I fix that ?
Owner's reply
Can you remove the -C "" variable from your command?
Also could you provide the output from
"/api/1.0/appliance-management/summary/system"
--SN
bybernard@lheureux.be, February 4, 2020
Before anything, please perform a dos2unix on this file !