Open ArnoAnderson opened 3 years ago
Hi,
Sorry for the late response i am not at home thoose days.
Could you post the result of the commands for your zabbix server :
./frogg_nfs_check.sh version <ip-of-server>
./frogg_nfs_check.sh share <ip-of-server> "/nfsShare1,/nfsShare2,/nfsShare3"
you should find them in /usr/lib/zabbix/externalscripts
folder
Best regards.
Hello.
I have the same problem.
Result commands: [root@zabbix01 externalscripts]# ./frogg_nfs_check.sh version 10.250.0.106 3 [root@zabbix01 externalscripts]# ./frogg_nfs_check.sh share 10.250.0.106 /midias,/mnt [/midias][/mnt] [root@zabbix01 externalscripts]#
Hi @andersonnunes1984,
What is your zabbix version ? Do you have zabbix log server side that can help ?
thanks.
Zabbix 5.0.2
log: [root@kczabbix01 zabbix]# more /var/log/zabbix/zabbix_server.log | grep kcnas01 2176671:20211025:102202.518 item "kcnas01.kosmo.cloud:nfsshare.share[{HOST.CONN},{$NFSSHARES}]" became not supported: Unsupported item key. 2176663:20211025:103603.969 item "kcnas01.kosmo.cloud:nfsshare.version[{HOST.CONN}]" became not supported: Unsupported item key. 2176666:20211025:123229.316 item "kcnas01.kosmo.cloud:nfsshare.share[{HOST.CONN},{$NFSSHARES}]" became not supported: Unsupported item key. 2176671:20211025:123629.030 item "kcnas01.kosmo.cloud:nfsshare.version[{HOST.CONN}]" became not supported: Unsupported item key. 2176664:20211026:110334.827 item "kcnas01.kosmo.cloud:nfsshare.share[{HOST.CONN},{$NFSSHARES}]" became not supported: Unsupported item key. 2176670:20211026:110735.887 item "kcnas01.kosmo.cloud:nfsshare.version[{HOST.CONN}]" became not supported: Unsupported item key. [root@kczabbix01 zabbix]#
Did you defined the MACRO ?
{$NFSVERSION} | the NFS version that should be returned by the server -- | -- {$NFSSHARES} | the list of NFS shares that should be available, to set multiple shares they must be separated by ,Yes. As information, we are agent2 of zabbix.
Can you try to increase you debug level to 4 or 5 ?(temporarily for test why it became unsuported, else log will be too heavy if you keep this option all the time)
Hi.
[root@kczabbix01 ~]# more /var/log/zabbix/zabbix_server.log | grep nfsshare 529949:20211104:113526.906 hostmacroid:1443 hostid:10715 macro:'{$NFSSHARES}' value:'/nfsshare1,/nfsshare2' context '' op:0 type:0 529949:20211104:113531.471 itemid:101254 hostid:10386 key:'nfsshare.share[{HOST.CONN},{$NFSSHARES}]' 529949:20211104:113531.471 itemid:101255 hostid:10386 key:'nfsshare.version[{HOST.CONN}]' 529949:20211104:113532.232 value:0 state:1 error:'Cannot evaluate expression: "Cannot evaluate function "kcnas01.kosmo.cloud:nfsshare.share[{HOST.CONN},{$NFSSHARES}].strlen()": item is not supported.".' lastchange:0 529949:20211104:113532.232 value:0 state:1 error:'Cannot evaluate expression: "Cannot evaluate function "kcnas01.kosmo.cloud:nfsshare.version[{HOST.CONN}].last()": item is not supported.".' lastchange:0 529949:20211104:113532.232 value:0 state:1 error:'Cannot evaluate expression: "Cannot evaluate function "kcnas01.kosmo.cloud:nfsshare.version[{HOST.CONN}].last()": item is not supported.".' lastchange:0 530059:20211104:113631.165 In substitute_key_macros_impl() data:'nfsshare.version[{HOST.CONN}]' 530059:20211104:113631.165 End of substitute_key_macros_impl():SUCCEED data:'nfsshare.version[10.250.0.106]' 530059:20211104:113631.166 In get_value() key:'nfsshare.version[{HOST.CONN}]' 530059:20211104:113631.166 In get_value_agent() host:'kcnas01.kosmo.cloud' addr:'10.250.0.106' key:'nfsshare.version[10.250.0.106]' conn:'unencrypted' 530009:20211104:113631.166 In substitute_key_macros_impl() data:'nfsshare.share[{HOST.CONN},{$NFSSHARES}]' 530009:20211104:113631.167 End of substitute_key_macros_impl():SUCCEED data:'nfsshare.share[10.250.0.106,"/midias,/mnt"]' 530009:20211104:113631.167 In get_value() key:'nfsshare.share[{HOST.CONN},{$NFSSHARES}]' 530009:20211104:113631.167 In get_value_agent() host:'kcnas01.kosmo.cloud' addr:'10.250.0.106' key:'nfsshare.share[10.250.0.106,"/midias,/mnt"]' conn:'unencrypted' 530059:20211104:113631.167 Sending [nfsshare.version[10.250.0.106]] 530009:20211104:113631.168 Sending [nfsshare.share[10.250.0.106,"/midias,/mnt"]] 530059:20211104:113631.168 Item [kcnas01.kosmo.cloud:nfsshare.version[{HOST.CONN}]] error: Unsupported item key. 530009:20211104:113631.170 Item [kcnas01.kosmo.cloud:nfsshare.share[{HOST.CONN},{$NFSSHARES}]] error: Unsupported item key. 529966:20211104:113632.285 evaluate_expressions():expression [{32492}>0] cannot be evaluated: Cannot evaluate function "kcnas01.kosmo.cloud:nfsshare.share[{HOST.CONN},{$NFSSHARES}].strlen()": item is disabled. 529966:20211104:113632.285 evaluate_expressions():expression [{32493}=0] cannot be evaluated: Cannot evaluate function "kcnas01.kosmo.cloud:nfsshare.version[{HOST.CONN}].last()": item is disabled. 529966:20211104:113632.285 evaluate_expressions():expression [{32494}<>4] cannot be evaluated: Cannot evaluate function "kcnas01.kosmo.cloud:nfsshare.version[{HOST.CONN}].last()": item is disabled. 529966:20211104:113632.299 query [txnlev:1] [update triggers set error='Cannot evaluate function "kcnas01.kosmo.cloud:nfsshare.share[{HOST.CONN},{$NFSSHARES}].strlen()": item is disabled.' where triggerid=28035; update triggers set error='Cannot evaluate function "kcnas01.kosmo.cloud:nfsshare.version[{HOST.CONN}].last()": item is disabled.' where triggerid=28036; update triggers set error='Cannot evaluate function "kcnas01.kosmo.cloud:nfsshare.version[{HOST.CONN}].last()": item is disabled.' where triggerid=28037; 529949:20211104:113633.347 hostmacroid:1443 hostid:10715 macro:'{$NFSSHARES}' value:'/nfsshare1,/nfsshare2' context '' op:0 type:0 530035:20211104:113633.363 In substitute_key_macros_impl() data:'nfsshare.share[{HOST.CONN},{$NFSSHARES}]' 529992:20211104:113633.363 In substitute_key_macros_impl() data:'nfsshare.version[{HOST.CONN}]' 530035:20211104:113633.363 End of substitute_key_macros_impl():SUCCEED data:'nfsshare.share[10.250.0.106,"/midias,/mnt"]' 529992:20211104:113633.363 End of substitute_key_macros_impl():SUCCEED data:'nfsshare.version[10.250.0.106]' 529992:20211104:113633.363 In get_value() key:'nfsshare.version[{HOST.CONN}]' 530035:20211104:113633.363 In get_value() key:'nfsshare.share[{HOST.CONN},{$NFSSHARES}]' 529992:20211104:113633.363 In get_value_agent() host:'kcnas01.kosmo.cloud' addr:'10.250.0.106' key:'nfsshare.version[10.250.0.106]' conn:'unencrypted' 530035:20211104:113633.363 In get_value_agent() host:'kcnas01.kosmo.cloud' addr:'10.250.0.106' key:'nfsshare.share[10.250.0.106,"/midias,/mnt"]' conn:'unencrypted' 530035:20211104:113633.364 Sending [nfsshare.share[10.250.0.106,"/midias,/mnt"]] 529992:20211104:113633.365 Sending [nfsshare.version[10.250.0.106]] 530035:20211104:113633.366 Item [kcnas01.kosmo.cloud:nfsshare.share[{HOST.CONN},{$NFSSHARES}]] error: Unsupported item key. 529992:20211104:113633.366 Item [kcnas01.kosmo.cloud:nfsshare.version[{HOST.CONN}]] error: Unsupported item key. 529975:20211104:113633.538 End of evaluate() error:'Cannot evaluate expression: "Cannot evaluate function "kcnas01.kosmo.cloud:nfsshare.share[{HOST.CONN},{$NFSSHARES}].strlen()": item is not supported.".' 529975:20211104:113633.538 evaluate_expressions():expression [(ZBX_UNKNOWN0)>0] cannot be evaluated: Cannot evaluate expression: "Cannot evaluate function "kcnas01.kosmo.cloud:nfsshare.share[{HOST.CONN},{$NFSSHARES}].strlen()": item is not supported.". 529975:20211104:113633.538 query [txnlev:1] [update triggers set error='Cannot evaluate expression: "Cannot evaluate function "kcnas01.kosmo.cloud:nfsshare.share[{HOST.CONN},{$NFSSHARES}].strlen()": item is not supported.".' where triggerid=28035; 529974:20211104:113634.290 End of evaluate() error:'Cannot evaluate expression: "Cannot evaluate function "kcnas01.kosmo.cloud:nfsshare.version[{HOST.CONN}].last()": item is not supported.".' 529974:20211104:113634.291 End of evaluate() error:'Cannot evaluate expression: "Cannot evaluate function "kcnas01.kosmo.cloud:nfsshare.version[{HOST.CONN}].last()": item is not supported.".' 529974:20211104:113634.292 evaluate_expressions():expression [(ZBX_UNKNOWN0)=0] cannot be evaluated: Cannot evaluate expression: "Cannot evaluate function "kcnas01.kosmo.cloud:nfsshare.version[{HOST.CONN}].last()": item is not supported.". 529974:20211104:113634.292 evaluate_expressions():expression [(ZBX_UNKNOWN0)<>4] cannot be evaluated: Cannot evaluate expression: "Cannot evaluate function "kcnas01.kosmo.cloud:nfsshare.version[{HOST.CONN}].last()": item is not supported.". 529974:20211104:113634.297 query [txnlev:1] [update triggers set error='Cannot evaluate expression: "Cannot evaluate function "kcnas01.kosmo.cloud:nfsshare.version[{HOST.CONN}].last()": item is not supported.".' where triggerid=28036; update triggers set error='Cannot evaluate expression: "Cannot evaluate function "kcnas01.kosmo.cloud:nfsshare.version[{HOST.CONN}].last()": item is not supported.".' where triggerid=28037; 529949:20211104:113638.475 itemid:101254 hostid:10386 key:'nfsshare.share[{HOST.CONN},{$NFSSHARES}]' 529949:20211104:113638.475 itemid:101255 hostid:10386 key:'nfsshare.version[{HOST.CONN}]' 529949:20211104:113639.198 value:0 state:1 error:'Cannot evaluate expression: "Cannot evaluate function "kcnas01.kosmo.cloud:nfsshare.share[{HOST.CONN},{$NFSSHARES}].strlen()": item is not supported.".' lastchange:0 529949:20211104:113639.198 value:0 state:1 error:'Cannot evaluate expression: "Cannot evaluate function "kcnas01.kosmo.cloud:nfsshare.version[{HOST.CONN}].last()": item is not supported.".' lastchange:0 529949:20211104:113639.198 value:0 state:1 error:'Cannot evaluate expression: "Cannot evaluate function "kcnas01.kosmo.cloud:nfsshare.version[{HOST.CONN}].last()": item is not supported.".' lastchange:0 530041:20211104:113734.502 In substitute_key_macros_impl() data:'nfsshare.share[{HOST.CONN},{$NFSSHARES}]' 530041:20211104:113734.502 End of substitute_key_macros_impl():SUCCEED data:'nfsshare.share[10.250.0.106,"/midias,/mnt"]' 530041:20211104:113734.502 In get_value() key:'nfsshare.share[{HOST.CONN},{$NFSSHARES}]' 530041:20211104:113734.502 In get_value_agent() host:'kcnas01.kosmo.cloud' addr:'10.250.0.106' key:'nfsshare.share[10.250.0.106,"/midias,/mnt"]' conn:'unencrypted' 530041:20211104:113734.503 Sending [nfsshare.share[10.250.0.106,"/midias,/mnt"]] 530041:20211104:113734.505 Item [kcnas01.kosmo.cloud:nfsshare.share[{HOST.CONN},{$NFSSHARES}]] error: Unsupported item key. 529975:20211104:113734.847 End of evaluate() error:'Cannot evaluate expression: "Cannot evaluate function "kcnas01.kosmo.cloud:nfsshare.share[{HOST.CONN},{$NFSSHARES}].strlen()": item is not supported.".' 529975:20211104:113734.848 evaluate_expressions():expression [(ZBX_UNKNOWN0)>0] cannot be evaluated: Cannot evaluate expression: "Cannot evaluate function "kcnas01.kosmo.cloud:nfsshare.share[{HOST.CONN},{$NFSSHARES}].strlen()": item is not supported.". 529991:20211104:113735.260 In substitute_key_macros_impl() data:'nfsshare.share[{HOST.CONN},{$NFSSHARES}]' 529991:20211104:113735.260 End of substitute_key_macros_impl():SUCCEED data:'nfsshare.share[10.250.0.106,"/midias,/mnt"]' 529991:20211104:113735.261 In get_value() key:'nfsshare.share[{HOST.CONN},{$NFSSHARES}]' 529991:20211104:113735.261 In get_value_agent() host:'kcnas01.kosmo.cloud' addr:'10.250.0.106' key:'nfsshare.share[10.250.0.106,"/midias,/mnt"]' conn:'unencrypted' 529991:20211104:113735.262 Sending [nfsshare.share[10.250.0.106,"/midias,/mnt"]] 529991:20211104:113735.264 Item [kcnas01.kosmo.cloud:nfsshare.share[{HOST.CONN},{$NFSSHARES}]] error: Unsupported item key. 529991:20211104:113735.519 In substitute_key_macros_impl() data:'nfsshare.version[{HOST.CONN}]' 529991:20211104:113735.519 End of substitute_key_macros_impl():SUCCEED data:'nfsshare.version[10.250.0.106]' 529991:20211104:113735.519 In get_value() key:'nfsshare.version[{HOST.CONN}]' 529991:20211104:113735.519 In get_value_agent() host:'kcnas01.kosmo.cloud' addr:'10.250.0.106' key:'nfsshare.version[10.250.0.106]' conn:'unencrypted' 529991:20211104:113735.521 Sending [nfsshare.version[10.250.0.106]] 529991:20211104:113735.522 Item [kcnas01.kosmo.cloud:nfsshare.version[{HOST.CONN}]] error: Unsupported item key. 529972:20211104:113735.864 End of evaluate() error:'Cannot evaluate expression: "Cannot evaluate function "kcnas01.kosmo.cloud:nfsshare.share[{HOST.CONN},{$NFSSHARES}].strlen()": item is not supported.".' 529972:20211104:113735.864 End of evaluate() error:'Cannot evaluate expression: "Cannot evaluate function "kcnas01.kosmo.cloud:nfsshare.version[{HOST.CONN}].last()": item is not supported.".' 529972:20211104:113735.864 End of evaluate() error:'Cannot evaluate expression: "Cannot evaluate function "kcnas01.kosmo.cloud:nfsshare.version[{HOST.CONN}].last()": item is not supported.".' 529972:20211104:113735.864 evaluate_expressions():expression [(ZBX_UNKNOWN1)>0] cannot be evaluated: Cannot evaluate expression: "Cannot evaluate function "kcnas01.kosmo.cloud:nfsshare.share[{HOST.CONN},{$NFSSHARES}].strlen()": item is not supported.". 529972:20211104:113735.864 evaluate_expressions():expression [(ZBX_UNKNOWN0)=0] cannot be evaluated: Cannot evaluate expression: "Cannot evaluate function "kcnas01.kosmo.cloud:nfsshare.version[{HOST.CONN}].last()": item is not supported.". 529972:20211104:113735.864 evaluate_expressions():expression [(ZBX_UNKNOWN0)<>4] cannot be evaluated: Cannot evaluate expression: "Cannot evaluate function "kcnas01.kosmo.cloud:nfsshare.version[{HOST.CONN}].last()": item is not supported.". 529949:20211104:113740.346 hostmacroid:1443 hostid:10715 macro:'{$NFSSHARES}' value:'/nfsshare1,/nfsshare2' context '' op:0 type:0 529949:20211104:113745.251 itemid:101254 hostid:10386 key:'nfsshare.share[{HOST.CONN},{$NFSSHARES}]' 529949:20211104:113745.251 itemid:101255 hostid:10386 key:'nfsshare.version[{HOST.CONN}]' 529949:20211104:113745.931 value:0 state:1 error:'Cannot evaluate expression: "Cannot evaluate function "kcnas01.kosmo.cloud:nfsshare.share[{HOST.CONN},{$NFSSHARES}].strlen()": item is not supported.".' lastchange:0 529949:20211104:113745.931 value:0 state:1 error:'Cannot evaluate expression: "Cannot evaluate function "kcnas01.kosmo.cloud:nfsshare.version[{HOST.CONN}].last()": item is not supported.".' lastchange:0 529949:20211104:113745.931 value:0 state:1 error:'Cannot evaluate expression: "Cannot evaluate function "kcnas01.kosmo.cloud:nfsshare.version[{HOST.CONN}].last()": item is not supported.".' lastchange:0
Hello guys,
I got a unsupported item key in nfsshare.share[{HOST.CONN},{$NFSSHARES}] and nfsshare.version[{HOST.CONN}] My Zabbix server version is 5.2.7
Test: ./frogg_nfs_check.sh share MyIP "/mnt/nfstest" [/mnt/nfstest] (response after three minutes)
./frogg_nfs_check.sh version Myip 0 (response after two minutes)
In var/log/zabbix/zabbix.log i found: "agfaeicentcsp01:nfsshare.share[{HOST.CONN},{$NFSSHARES}]" became not supported: Unsupported item key
The monitored server is a Windows Server 2016
could you help with this problem?
Thanks!