Versions Compared

Key

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

Date of release: 22.04.2014

Nagios Plugins for

...

VTxx checking

Nagios plugin for checking single element (sensor)

Usage:
./check_skycontrolvutlan.pl [-v] -H <host> -C <snmp_community> [-2] | (-l login -x passwd) -i <ID> [-P <port>] [-t <timeout>] [-V]

...

Code Block
languagetext
titlecommands.cfg
define command {
        command_name check_snmp_skycontrol
        command_line $USER1$/check_skycontrolvutlan.pl -H $HOSTADDRESS$ $ARG1$
}

...

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_skycontrolvutlan! -C read -i 1004
        normal_check_interval           1
        retry_check_interval            1
        process_perf_data               1
}

...

Nagios plugin for checking single element (sensor)

 

check_skycontrolvutlan.pl


Nagios plugin for checking table of elements (sensors)

This plugin generate the alarm if at least one element is in the alarm, and the warning if at least one element is in the warning.
This plugin generate the performance data only for sensors with valid value field (as sensors with analog and discrete output)

Usage:
./check_skycontrolvutlan_table.pl [-v] -H <host> -C <snmp_community> [-2] | (-l login -x passwd)  [-P <port>] [-t <timeout>] [-V]

...

Code Block
languagetext
titlecommands.cfg
define command {
        command_name check_snmp_skycontrolvutlan_table
        command_line $USER1$/check_skycontrolvutlan_table.pl -H $HOSTADDRESS$ $ARG1$
}

...

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_skycontrolvutlan_table! -C read
        normal_check_interval           1
        retry_check_interval            1
        process_perf_data               1
}

...

Nagios plugin for checking all elements (sensors)

 

check_skycontrolvutlan_table.pl

 

Sky Control script for Nagios passive checking

...

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

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

...

Code Block
languagetext
title/etc/nagios/objects/commands.cfg
define command{
        command_name notify-service-by-sms
        command_line $USER1$/sendsms_skycontrolvutlan -H 192.168.1.190 -p guest -P $CONTACTPAGER$ -m "Nagios – $NOTIFICATIONTYPE$ : $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$"
}

define command{
        command_name notify-host-by-sms
        command_line $USER1$/sendsms_skycontrolvutlan -H 192.168.1.190 -p guest -P $CONTACTPAGER$ -m "Nagios – $NOTIFICATIONTYPE$ : Host $HOSTALIAS$ is $HOSTSTATE$"
}

...

Script for Nagios notify by GSM modem

 

sendsms_skycontrolvutlan

 


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

...