Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagetext
titleservices.cfg
define service{
        use                             generic-service    
        # host_name                       test190
        hostgroup_name                  sc-hosts
        contact_groups                  admins
        service_description             Sky Control Service for element with ID=1004 
        check_command                   check_snmp_vutlan! -C read -i 1004
        normal_check_interval           1
        retry_check_interval            1
        process_perf_data               1
}

Download:

Image Modified

Nagios plugin for checking single element (sensor)

 


check_vutlan.pl


Nagios plugin for checking table of elements (sensors)

...

Code Block
languagetext
titleservices.cfg
# SNMP Table of Elements for Sky Control devices  
define service{
        use                             generic-service    
        # host_name                     test190
        hostgroup_name                  sc-hosts
        service_description             Sky Control Table of Elements Service 
        check_command                   check_snmp_vutlan_table! -C read
        normal_check_interval           1
        retry_check_interval            1
        process_perf_data               1
}

Download:

Image Modified

Nagios plugin for checking all elements (sensors)

 


check_vutlan_table.pl

...


Sky Control script for Nagios passive checking

...

Code Block
languagetext
title/etc/nagios/objects/schosts.cfg
##
# Trap
##
define service{
        name                    trap-service
        use                     generic-service
        register                0
        is_volatile             1
        check_command           check-host-alive     ;Used to reset the status to OK when 'Schedule an immediate check of this service' is selected
        flap_detection_enabled  0                    ; Flap detection is disabled
        process_perf_data       0                    ; Do not Process performance data
        max_check_attempts      1
        normal_check_interval   1
        retry_check_interval    1
        passive_checks_enabled  1
        active_checks_enabled   0                    ; Prevent active checks from occuring as we are only using passive checks
        check_period            none
        notification_interval   31536000
        notification_options    w,u,c                ; Notify on warning, unknown and critical
        contact_groups          admins
}

define service{
        use                     trap-service
        service_description     Trap1
        hostgroup_name          sc-hosts
}


Download:

Image Modified

Sky Control script for Nagios passive checking

 


submit_check_result

...


Sky Control script for Nagios notify by GSM modem of Sky Control master module

This script provides sending notifications from Nagios by by GSM modem of Sky Control master module

Usage:
./sendsms_vutlan -H <host> -p <password> -P <phone number> -m <message> 

...

Code Block
languagetext
title/etc/nagios/objects/contacts.cfg
define contact{
        contact_name                    nagiosadmin             ; Short name of user
        use                             generic-contact         ; Inherit default values from generic-contact template (defined above)
        alias                           Nagios Admin            ; Full name of user
        service_notification_options    w,u,c,r
        host_notification_options       d,u,r
        service_notification_commands   notify-service-by-email,notify-service-by-sms
        host_notification_commands      notify-host-by-email,notify-host-by-sms
        email                           nagios@localhost        ; <<***** CHANGE THIS TO YOUR EMAIL ADDRESS ******
        pager                           +329999999999           ; <<***** CHANGE THIS TO YOUR PHONE NUMBER ******
}


Download:

Image Modified

Script for Nagios notify by GSM modem

 


sendsms_vutlan

...



To allow us better support please leave your comments below or on our forum.