The attached zip file contains both a Perl script and an XML import file for Zabbix that allows it to monitor 85 different ASSP statistics in a fraction of a second.
I just finished working on this--it contains only Items, I have not built out any triggers or graphs based on this information yet.
First, you need to have Raw Stats enabled on ASSP, and you need to allow whatever IP you will be running the script on to view those stats. This can be done in the ASSP web interface. By default it should already allow 127.0.0.1 so as long as you run this script on the ASSP server, you should be fine.
To use it:
1. Extract the zip file.
2. Place the Perl script send_assp_stats.pl on the mail server running ASSP.
3. Import the XML file assp_stats.xml into Zabbix, which will create the Template_App_ASSP template, the ASSP application, and 86 monitoring items.
4. Associate your mailserver with the Template_App_ASSP template in Zabbix.
5. Set up a cron job or other means of calling the script as often as you would like on the mail server with whatever parameters you would like (from below).
6. Let me know if you have any questions!
send_assp_stats.pl main parameters (all optional):
Feel free to look in the perl script for details about what I am monitoring and how--basically, every stat that is exposed from ASSP in the Raw Statistics interface is here.
Let me know if any changes should be made or if you have any comments.
I just finished working on this--it contains only Items, I have not built out any triggers or graphs based on this information yet.
First, you need to have Raw Stats enabled on ASSP, and you need to allow whatever IP you will be running the script on to view those stats. This can be done in the ASSP web interface. By default it should already allow 127.0.0.1 so as long as you run this script on the ASSP server, you should be fine.
To use it:
1. Extract the zip file.
2. Place the Perl script send_assp_stats.pl on the mail server running ASSP.
3. Import the XML file assp_stats.xml into Zabbix, which will create the Template_App_ASSP template, the ASSP application, and 86 monitoring items.
4. Associate your mailserver with the Template_App_ASSP template in Zabbix.
5. Set up a cron job or other means of calling the script as often as you would like on the mail server with whatever parameters you would like (from below).
6. Let me know if you have any questions!
send_assp_stats.pl main parameters (all optional):
--statsurl=http://url
ort (Default: http://127.0.0.1:55553)
--sender=/path/to/zabbix_sender (Default: zabbix_sender - assumes it's in your path, which is likely not true for cron)
--server=hostname (Default: localhost)
--port=port (Default: 10051)
--host=host (Default: localhost - This must match the host description in Zabbix)
--sincereset (Default off - This shows statistics since last time the statistics were reset, instead of last time ASSP was restarted, which happens often)
--senderlimit=limit (Default: 25 - This is how many stats will be sent to with zabbix_sender at a time. If there are more than this, multiple files will be sent.)
ort (Default: http://127.0.0.1:55553)--sender=/path/to/zabbix_sender (Default: zabbix_sender - assumes it's in your path, which is likely not true for cron)
--server=hostname (Default: localhost)
--port=port (Default: 10051)
--host=host (Default: localhost - This must match the host description in Zabbix)
--sincereset (Default off - This shows statistics since last time the statistics were reset, instead of last time ASSP was restarted, which happens often)
--senderlimit=limit (Default: 25 - This is how many stats will be sent to with zabbix_sender at a time. If there are more than this, multiple files will be sent.)
Let me know if any changes should be made or if you have any comments.
Comment