Hi All!
I'm stuck here, any help would be appreciated.
Here is the setup:
I have
- zabbix 2.0 server ( working fine, monitoring multiple servers)
- Pfsense router 2.0.1 (Again working fine and it's monitored by the zabbix server with the pfsense agent package included zabbix2-agent-2.2.2_1 pkg v0.8_2 with standard config. I just added the different variables.
- APC Smart UPS that is connected to the Pfsense machine with the "proprietary" serial cable. It's monitored in the Pfsense with the NUT package
Installed: 2.6.5_1 pkg 2.0 Again, working ok. I can see all info, load, voltage, battery etc.
Challenge: I want to have zabbix monitor the UPS on the Pfsense machine.
For that there is is this template:
Which is listed on the official zabbix template:
under Network UPS Tools.
So I did the following:
imported the XML template in zabbix server. - ok
added in the pfsense agent page - UserParameter=upsmon[*],/etc/zabbix/sh/ups_status.sh $1 $2 - ok
Created the script /etc/zabbix/sh/ups_status.sh and chmod ug+x - ok
With this modification, /bin/upsc to /usr/local/bin/upsc to adapt to freebsd since I think the script was written for linux. - ok
Tested the script with /etc/zabbix/sh/ups_status.sh apc@localhost without any returned error.
Problem:
In zabbix server, on the host config, item section, I get "not supported" under the status of all the UPS variables.
I think is the User parameters key variables. I just don't know where to begin to troubleshoot this. Thanks for any ideas!
Spazio
I'm stuck here, any help would be appreciated.
Here is the setup:
I have
- zabbix 2.0 server ( working fine, monitoring multiple servers)
- Pfsense router 2.0.1 (Again working fine and it's monitored by the zabbix server with the pfsense agent package included zabbix2-agent-2.2.2_1 pkg v0.8_2 with standard config. I just added the different variables.
- APC Smart UPS that is connected to the Pfsense machine with the "proprietary" serial cable. It's monitored in the Pfsense with the NUT package
Installed: 2.6.5_1 pkg 2.0 Again, working ok. I can see all info, load, voltage, battery etc.
Challenge: I want to have zabbix monitor the UPS on the Pfsense machine.
For that there is is this template:
Which is listed on the official zabbix template:
under Network UPS Tools.
So I did the following:
imported the XML template in zabbix server. - ok
added in the pfsense agent page - UserParameter=upsmon[*],/etc/zabbix/sh/ups_status.sh $1 $2 - ok
Created the script /etc/zabbix/sh/ups_status.sh and chmod ug+x - ok
With this modification, /bin/upsc to /usr/local/bin/upsc to adapt to freebsd since I think the script was written for linux. - ok
Tested the script with /etc/zabbix/sh/ups_status.sh apc@localhost without any returned error.
Problem:
In zabbix server, on the host config, item section, I get "not supported" under the status of all the UPS variables.
I think is the User parameters key variables. I just don't know where to begin to troubleshoot this. Thanks for any ideas!
Spazio
Comment