Ad Widget

Collapse

Extensive ASSP Monitoring Script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bmcclure
    Junior Member
    • Apr 2010
    • 14

    #1

    Extensive ASSP Monitoring Script

    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):
    --statsurl=http://urlort (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.)
    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.
    Attached Files
  • nimra9
    Junior Member
    • Apr 2010
    • 1

    #2
    no output on the second host

    thanks for the script and template. i have it running on my first ASSP server after upgrading the Zabbix-sender. tried the same thing on my second server and don't get any output. The text file is not created either. is there a way how i can debug it?
    Cheers, Andreas

    Comment

    • kankei71
      Junior Member
      • May 2012
      • 1

      #3
      Thank you for the script and XML. I have it installed on my zabbix server, all items are tagged as "active" but I dont receive any data. Something's not working but I can't figure out what...

      Running the script on the terminal gives this output:

      sent: 27; skipped: 58; total: 85
      But no data visible in zabbix

      Any idea?

      thx

      ***
      Mac OSX Lion
      zabbix_agent(d) 1.8.2
      Last edited by kankei71; 04-05-2012, 00:54.

      Comment

      Working...