Generate Custom CLI For Data Base HP-UX

Generate Custom CLI For Data Base HP-UX

Hi:

Please can you help me with the following case:

We are monitoring some HP-UX servers. These servers are installed one data base.

I generate a script on the server so that by typing the command:

$ sh /home/mprebel/shells/listener_monitor.sh;tail -1 lista_ora.txt| cut -c 1-2

 

Throw the state (If it is up or down) or the availability of the data base.

For example: If the database is up, the result is "OK".


If the data base is down, the result is "TN".


The help that I ask is, can you please help create a custom CLI, so show me records of these two values (OK or TN), and graph the availability.

Thank´s.



                  New to ADSelfService Plus?