background image

HWg-SMS-GW3 manual 

HW group 

 

 

www.HW-group.com

 

18

 

 

3.2)

  Define contacts and contact groups for SMS messaging in a file 

/etc/nagios3/conf.d/contacts_nagios.cfg

 

Note: In case you want to send notifications to multiple phone numbers, create a contact for every 
phone number and enter each contact into a memebers parameters in a contactgroup (divided with , 
). 
 

In case you are using a standard Nagios configuration and want to add SMS sending for all devices 
and services, do not create a contactgroup and add only 

peter-gsm

 to the 

admins

 group. The setup is 

then complete and the notifications will be sent also via SMS after restarting the Nagios service 
(points 3 and 4). 

 

 

3.3)

 Adding SMS notification options to selected sevices and services can be done in their definition, 

by adding a contact_groups parameter, for example: 
 

Note: Contacts are usually defined in the device's or service's templates, adding contact_groups 
parameters will rewrite the pre-set template. This example is based in a standard settings of an 
admins contact group, which uses e-mails for sending notifications. Only SMS messages will be sent 
after adding "contact_groups sms" parameter.

 

 

3.4)

 A restart of Nagios needed to activate the changes. 

define contact { 
        contact_name                    

peter-gsm

 

        alias                           Peters GSM phone 
        service_notification_period     24x7 
        host_notification_period        24x7 
        service_notification_options    w,u,c,r 
        host_notification_options       d,r 
        service_notification_commands   notify-service-by-sms 
        host_notification_commands      notify-host-by-sms 
        pager                           

+420777888999

 


 
define contactgroup { 
        contactgroup_name       

sms

 

        alias                   Notifications via SMS 
        members                 

peter-gsm

 

}

 

define contactgroup { 
        contactgroup_name       admins 
        alias                   Nagios Administrators 
        members                 root,

peter-gsm

 

}

 

define host { 
        use                     generic-host 
        host_name               localhost 
        alias                   localhost 
        address                 127.0.0.1 
        

contact_groups          admins,sms

 


 
define service { 
        use                     generic-service 
        host_name               localhost 
        service_description     Disk Space 
        check_command           check_all_disks!20%!10%

 

        contact_groups          admins,sms

 

}

 

Summary of Contents for HWg-SMS-GW3

Page 1: ...HWg SMS GW3 manual HW group www HW group com 1 HWg SMS GW3 An SMS gateway for HW group products ...

Page 2: ...om any number of connected HW group devices via a single GSM modem with netGSM 1 Insert a SIM card with disabled PIN security 2 Lanch HWg Config and get the assigned IP address DHCP 4 Enter IP address of the unit HWg SMS GW port 80 in default 5 Enter 2x phone number of an SMS messages recipient and try sending a test SMS ...

Page 3: ...s POWER Green power OK Modem Blue Activity on GPRS Status Yellow blinking if device is OK Alarm Red Error on device LINK Activity Yellow Ethernet connectivity Physical parameters Temperature range Operating 10 to 65 C Storage 25 to 85 C MTBF 90 000 hours Dimensions Weight 92 x 76 x 28 mm 300g EMC FCC Part 15 Class B CE EN 55022 EN 55024 EN 61000 Restarting into the default settings LOAD TO DEFAULT...

Page 4: ...ion Connectors Power Connect the power adapter 9 30V USB A connector for service purposes Ethernet Network data connector GSM SIM A SIM card socket GSM An SMA connector for connecting an external antenna Reset Reset button for restoring the factory default settings more on page 3 LED indication Power green Power supply connected Status yellow Flashes slowly if the device is working correctly Alarm...

Page 5: ...es icon Start search HWg Config searches for devices in your LAN Clicking on a MAC address of the device opens a window with basic network parameters settings Network parameters of the device Enable DHCP or Set IP address HTTP port 80 Set the mask of your network Gateway IP address for the local network Save the settings with Apply Changes button Open the WEB setup of the device Enter IP address o...

Page 6: ... Correct time is usually obtained from an online server Date Unit date settings can be changed on the Time tab Correct date is usually obtained from an online server Network registration Information on registration of the unit to an operator s GSM network Signal Quality GSM signal level This information can be used for resolving network problems Operator Name Name of the operator to which the GSM ...

Page 7: ...e Info Pending Message Capacity A number of pending messages queue capacity Message Sent Amount of sent messages since the last power up Messages Dropped Amount of dropped messages since the last power up SMS Queue An overview of messages queued for sending ...

Page 8: ...ng this function depends on actual requirements of the network users and administrators IP Address IP address of the HWg SMS GW3 assigned by the network administrator Network Mask assigned by the network administrator Gateway IP address of a default gateway assigned by the network administrator DNS Primary DNS Secondary IP address of a DNS server assigned by the network administrator HTTP Port por...

Page 9: ...t gov Interval interval of a time synchronisation with a server Summertime allows DST switching required for correct logging of the measured values and events Necessary for correct data logging Time Zone sets the time zone where the HWg SMS GW3 is located used for setting the correct system time Necessary for correct data logging Synchronise Time is used for an immediate synchronisation with a tim...

Page 10: ...ion section Network registration Information on registration of the unit to an operator s GSM network Signal Quality GSM signal level This information can be used for resolving network problems Operator Name Name of the operator to which the GSM modem is connected SMS Center Number information obtained from the SIM card Used for verifying the communication with the SMS centre Configuration section...

Page 11: ...HW group www HW group com 11 Test SMS section Tel Number recipients phone number for test SMS sending Text content of the test SMS Send SMS Test Verifies the functionality and sends a test SMS to the selected phone number ...

Page 12: ...s for instance his Email address SNMP port Port settings for communication with SNMP protocol 161 SNMP Access Defines authorisation and user group names for work with a Poseidon device Community Text name of the group to which the rights are assigned to Public and Private in default Read assigns to a community the rights to read the variables over SNMP Write assigns to a community the rights to wr...

Page 13: ...ation System System tab offers access to main system details such as uptime and firmware version It also offers restart options or tools for firmware update Download section Backup configuration by clicking the link you can save the actual HWg SMS GW3 configuration and later restore this configuration Backup XML configuration by clicking the link you can save the actual HWg SMS GW3 configuration a...

Page 14: ...leshooting UpTime Uptime since last power on or reset of the device Diagnostic information for troubleshooting Demo mode activated demo mode disables changes in configuration of your device Visitors can freely browse all pages of the WWW interface in this mode but they cannot make any changes The device can be then made available on a public network without any risk of problems with settings Uploa...

Page 15: ...larm is detected HWg SMS GW can be used for sending SMS notifications 1 Set IP address of your HWg SMS GW in the account settings SensDesk com My Account Edit 2 Set the recipient phone number for each single sensor for sending alarm SMS messages from SensDesk com SensDesk com Sensors Edit Note HWg SMS GW must be accessible on a public IP address in order to send SMS alarms from your SensDesk com a...

Page 16: ...fers them via HTTP protocol to HWg SMS GW which then sends an SMS message Installation The following steps are based on standard Ubuntu server installation process Some folders or commands can vary due to different Linux distribution used 2 1 Download the notify poseidon sms pl plug in from https www netways org projects plugins files do adresáře usr lib nagios and set the setup rights nagios serv...

Page 17: ...by creating a file etc nagios3 notify poseidon sms cfg Note The whole command_line definition text has to be in one line in order to work correctly Note do not forget to change the H parameter to an actual IP address eventually to a DNS name of your HWg SMS GW device SMS text is assembled by the M parameter A list of supported variables macros can be found on http nagios sourceforge net docs 3_0 m...

Page 18: ...emplates adding contact_groups parameters will rewrite the pre set template This example is based in a standard settings of an admins contact group which uses e mails for sending notifications Only SMS messages will be sent after adding contact_groups sms parameter 3 4 A restart of Nagios needed to activate the changes define contact contact_name peter gsm alias Peters GSM phone service_notificati...

Page 19: ...is case the device works as a SOAP Web Service and this example demonstrates how to make a simple client with a graphical user interface Written in Borland C Builder using the HWg SDK Easy to use with simply GUI Sends SMS via remote GSM modem EX232 SMS GW Client CMD Microsoft Visual C Supported devices Poseidon 2250 Poseidon 4002 HWg SMS GW Project file sms_gw_cmd bpr Win EXE version sms_gw exe Sc...

Reviews: