| Cheshire Cat Computing http://www.steveshipway.org/forum/ |
|
| problem with 'global symbol $k requires explicit package' http://www.steveshipway.org/forum/viewtopic.php?f=28&t=950 |
Page 1 of 1 |
| Author: | tran-sogeti [ Tue Aug 08, 2006 3:17 am ] |
| Post subject: | problem with 'global symbol $k requires explicit package' |
I have an ESX server that contains 8 vhosts. When i run manually the check_esx2 command, there's no problem. [root@nagios]# /usr/lib/nagios/plugins/check_esx2 -c MEM -H 172.16.100.23 -C public -v SRVMIAREVMAIL_231 -l STATE VHost SRVMIAREVMAIL_231 is up (ID: 288) But In the nagios2 webinterface under service detail, i get the following error: *ePN failed to compile /usr/lib/nagios/plugins/check_esx2: "Global symbol "$k" requires explicit package name at (eval 1) line 509, Any idea ? Thank you for your time |
|
| Author: | stevesh [ Tue Aug 08, 2006 10:23 am ] |
| Post subject: | |
This is a problem with the script being good enough for normal perl, but the embedded perl compiler is a bit more fussy. I have fixed this in the latest version of check_esx2 - it should be available on the nagiosexchange site. (version 2.2 or later) |
|
| Author: | tran-sogeti [ Thu Aug 10, 2006 6:23 am ] |
| Post subject: | |
Thank you very much for help. I 've just installed the check_esx2.3 and i have another pb: **ePN /usr/lib/nagios/plugins/check_esx2: "Argument "" isn't numeric in numeric lt (<) at (eval 13) line 635,". Manually, we get the following warning: [root@SRVMIAREVWEB check_esx2.3]# perl /usr/lib/nagios/plugins/check_esx2 -N -H 172.16.100.23 -C public -l MEM -w 2048Kb -c 1024Kb Argument "1024Kb" isn't numeric in numeric lt (<) at /usr/lib/nagios/plugins/check_esx2 line 637. Argument "2048Kb" isn't numeric in numeric lt (<) at /usr/lib/nagios/plugins/check_esx2 line 637. 1024KbMemory free: 5871.75Mb (95.57%) [Total available 6143.75Mb] Thanks for any help! |
|
| Author: | stevesh [ Thu Aug 10, 2006 5:57 pm ] |
| Post subject: | |
Don't pass '1024Kb' as an argument. Just use '1024K'. This should solve this problem. |
|
| Page 1 of 1 | All times are UTC + 12 hours [ DST ] |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|