Hi,
Im trying to monitor how many mailboxes are online on my Exchange server cluster - the values is present in the perfmon key "\MSFTESQL-Exchange:Service\Catalogs mounted", problem is that this key have a - sign in it, which according to the Zabbix manual isn't supported in a key. Im just getting the message that it's not supported.
Fair enough, so im turning it around, making a UserParameterin the config file using the vbs script found in this thread
When i run the script manually with
cscript //nologo script.vbs "\MSFTESQL-Exchange:Service\Catalogs mounted"
i get the correct value (6 as a float value in my case), but when i insert this line into the zabbit conf file:
UserParameter=msexmb.onl,cscript //nologo script.vbs "\MSFTESQL-Exchange:Service\Catalogs mounted"
and run zabbix_agentd.exe -c zabbix_agentd.conf -t msexmb.onl i get this error message:
c:\zabbix\script.vbs(32,1) Microsoft VBScript runtime error: Subscript out of range: '[number 1]'
I am so lost as the script works outside the zabbix_agentd.conf file...
Anyone got any good ideas?
Im trying to monitor how many mailboxes are online on my Exchange server cluster - the values is present in the perfmon key "\MSFTESQL-Exchange:Service\Catalogs mounted", problem is that this key have a - sign in it, which according to the Zabbix manual isn't supported in a key. Im just getting the message that it's not supported.
Fair enough, so im turning it around, making a UserParameterin the config file using the vbs script found in this thread
When i run the script manually with
cscript //nologo script.vbs "\MSFTESQL-Exchange:Service\Catalogs mounted"
i get the correct value (6 as a float value in my case), but when i insert this line into the zabbit conf file:
UserParameter=msexmb.onl,cscript //nologo script.vbs "\MSFTESQL-Exchange:Service\Catalogs mounted"
and run zabbix_agentd.exe -c zabbix_agentd.conf -t msexmb.onl i get this error message:
c:\zabbix\script.vbs(32,1) Microsoft VBScript runtime error: Subscript out of range: '[number 1]'
I am so lost as the script works outside the zabbix_agentd.conf file...
Anyone got any good ideas?
Comment