Send SMS in HP Openview with text fileThis configuration guide presents the solution
how you can setup Ozeki NG SMS Gateway to send SMS alerts from HP Openview
using a text file.
HP Openview can efficiently monitor the network
applications and workstations. It provides an overall picture from the
eventlog to the temperature of the processor. It can also
supervise the availability of the computer. Rules can be configured fully
and elaborate criteria can be added to them.
An exterior program can
also be conditioned to run when a rule completes, thus SMS functionality can be
easily integrated into HP Openview with the help of Ozeki NG SMS Gateway system.
Please follow the installation guide's steps to ensure the proper
functioning of this solution.
Preconditions
To adopt this solution you will need a connection between the mobile network and your
system. You can establish this connection in two ways: using an Internet connection
or using a wireless connection by attaching a GSM phone or GSM modem to your PC.
(Comparison: Internet based SMS connections
vs. GSM modem based (wireless) SMS connections). According to your decision, you will need
different preconditions.
Preconditions for Internet based connection
To establish the connection between your system and an SMS service provider via the Internet, you will need these devices:

Figure 1/a - Components of IP SMS connection
With this type of connection you will need an SMS service provider
who provides access to its services and ensures Internet based SMS services. (Browse some
mobile service providers:
SMPP SMS Service
providers). After you have decided which provider and which service is the most
appropriate for you, you need to sign a contract and you will receive connection
parameters from your provider. Once you got the necessary parameters you can setup
your Ozeki NG SMS Gateway software.
Preconditions for wireless (GSM modem) connection
With this type of connection all you need is a GSM modem or a GSM
phone and you can join it easily to your PC with a data cable. The GSM device will
be operated by your Ozeki NG SMS Gateway software and it will be able to handle SMS
messaging wirelessly. You will need the following components to use this type of
connection:
Figure 1/b - Components of GSM modem connection
For GSM modem connection you will need the following components:
*The SIM card will come with a plan, that will
determine how much money you will spend on each SMS.
System overview
As HP Openview monitors the system it notices and reports
all malfunctions and errors. This report is sent to a text file
(e.g.: reports.txt) and it is stored there. Ozeki NG SMS Gateway reads that
file and understands the report. This means that the SMS gateway is not in
direct connection with HP Openview but communicates through the report text
file. After it understands the report Ozeki NG SMS Gateway translates it into
an SMS text message and sends it out. Through a GSM modem or IP SMS connection
the messages are transferred to the SMSC (SMS center). Finally the SMSC
forwards it directly to the mobile user. Ozeki's superior performance ensures
the procedure's security and velocity and thus creates a perfect SMS sending
service for HP Openview (Figure 2).
Figure 2 - How SMS alerts are sent from HP Openview to
cellphones with Ozeki NG SMS Gateway
Configuration guide HP Openview SMS alert solution
Step 1 - Configuring HP Openview
First, you need to run HP Operations Manager Console and
extend "Policy Management" view and then "Policy Groups" view, as well.
After this, right click on "Policy Groups" submenu and select "New" menu
and here click on "Policy Group" (Figure 3).
Figure 3 - New Policy Group
The newly created policy group appears in the "Policy
Groups" list. Now you need to provide a name for it (e.g. Notification)
(Figure 4).
Figure 4 - Policy Group name
Then right click on the created policy group and select
"Windows Event Log" within "New" menu. In this way rules will be applied to
this EventLog (Figure 5).
Figure 5 - New EventLog policy
In the pop-up window, specify the EventLog to be monitored
(in this example: Application) then click on "Rules" tab (Figure 6).
Figure 6 - The monitored EventLog
On "Rules tab" click on the "New..." button (Figure 7).
Figure 7 - Add new rule
In the appearing window provide the criteria
(in our example):
Rule Description: SMS Notification
Source: EventCreate Type: Error.
When it is done click on "Actions" tab (Figure 8).
Figure 8 - Criteria for the rule
In the next window choose the "Active Msg. Browser and"
menu item then click on "Automatic Command" tab (Figure 9).
Figure 9 - Add automatic command
In "Command" line type the follows:
cmd /c echo +36301234567 Alert! An error Occurred on <$MSG_NODE_NAME>.
Description: <$MSG_TEXT>. > C:\sms\smsout\smsout.txt
|
This command creates an "smsout" library on drive C in which the
smsout.txt file will contain the following message:
+36301234567 Alert! An error Occurred on <$MSG_NODE_NAME>.
Description: <$MSG_TEXT>.
|
The number "+36301234567" is the recipient's telephone number,
<$MSG_NODE_NAME> means the monitored computer's name,
<$MSG_TEXT> will be the alert's description.
<$MSG_NODE_NAME> and <$MSG_TEXT> is replaceable for any of the variables
described in this Policy
variables file.
In "Node" field you need to provide the application on which the command
will run. By default it is the monitored computer (Figure 10).
Figure 10 - Automatic command
If you click on "OK" the created automatic command will
appear in a window. In this window, click on "OK", as well (Figure 11).
Figure 11 - Created automatic command
At the bottom of the window you can see the entire text of
the rule. Here click on "Save and Close" button (Figure 12).
Figure 12 - Created rule properties
You need to provide a name for the rule and this created
rule will be seen in the rule list (Figure 13).
Figure 13 - Created rule
In order to come into operation, the rule needs to be
installed on the monitored computer. To do so, right click on the created
rule's name and click on "Deploy on" submenu in "All tasks" menu (Figure 14).
Figure 14 - Deploy rule
In the appeared window select the name of the monitored
computer, then click on "OK" (Figure 15).
Figure 15 - Deploy policy on managed computer
This concludes the configuration of HP Openview.
The next step is to configure Ozeki NG SMS Gateway.
Step 2 - Configuring Ozeki NG SMS Gateway software
In Ozeki NG SMS Gateway you need to add a new user to the
users list.
To do so click on "Add new user or application" submenu in
"Users/Applications" menu (Figure 16).
Figure 16 - Add a user
Select "File user" from the list of users and click on
"Install" next to it (Figure 17).
Figure 17 - Add file user
Provide a name for the user then click on "OK". In our
example it is "OpenView".
When it's done click on the user's name (Figure 18).
Figure 18 - File user
Then click on "Configure" (Figure 19).
Figure 19 - Configure file user
On "General" tab select "Outbox" and set the destination
to the follows:
"Inbox", "Sent", "Failed", "Delivered" also can be configured to the same
destination (Figure 20).
Figure 20. - Set outbox path
This concludes the configuration of Ozeki NG SMS Gateway.
Now the system will be tested to see it is fully operational.
Testing the system of HP Openview SMS alert solution
For testing the system I will generate an error into the
"Application log" which will conform to the requirements of the rule created
in HP "Operational Console".
To generate an error I need to issue the following command in Windows'
command line:
eventcreate /T ERROR /ID 1000 /L APPLICATION /D "Test Alert"
|
(Figure 21).
Figure 21 - Eventcreate command
In the "Operation Console" expand the "Node" view then right
click on the computer's name and choose "Active Messages" submenu in
"View" menu (Figure 22).
Figure 22 - Configure to view active messages
The generated error can be seen and its name is "Critical"
(Figure 23).
Figure 23 - Generated error
Double clicking on the critical entry shows that it runs
successfully (Figure 24).
Figure 24 - Command properties
In Ozeki NG SMS Gateway the sent SMS is in the file
"Outbox" menu of the user (Figure 25).
Figure 25 - Sent message
This section concludes the configuration of HP Openview and
Ozeki NG SMS Gateway.
If you wish to add SMS extension to your existing
IT system, please go to the Download page to download Ozeki NG SMS Gateway
>>>
|