Ad Widget

Collapse

Template - Port Check

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • whowd
    Junior Member
    • Jul 2007
    • 28

    #1

    Template - Port Check

    I've created a small perl script and zabbix template that will alert you if a open tcp port changes on a monitored host.

    The perl script uses nmap to monitor the host and will fire a trigger if any previously open port becomes closed, or if a closed port opens.

    To install put the checkPorts.pl (change extension to .pl) in your externalScripts directory on your Zabbix server and make sure the user running the Zabbix server has permissions to run the file and nmap. Then import and apply the template to your hosts.

    The script runs as an external check from your zabbix server to monitor your hosts.

    Script:


    Template:


    w
  • Edwin Eefting
    Junior Member
    • Oct 2015
    • 4

    #2
    NMAP open port scanner

    I also created an nmap checker: It will scan complete IP blocks with nmap and create triggers for each ip/port combination.

    We use it to check huge networks, without the need to add each IP. Its also usefull to get notified when a new unknown hosts appears.

    Available at https://github.com/psy0rz/stuff/tree/master/zabbix-nmap

    Comment

    • Abhiram_Cloud4c
      Junior Member
      • Nov 2016
      • 10

      #3
      Could yu kindly share the PORT CHECK script and template.

      hey whowd,


      that was really a grt work you have done..and even i was searching for the same...Could yu kindly share the PORT CHECK script and template.

      Comment

      Working...