More Configurations

This page provides information on the command line utility you can use with HipChat Server and describes other configurations you can do on HipChat Server. 

HipChat command line utility

You can do a variety of actions, like upgrade, export your data, control networking, and more in HipChat Server's command line interface (CLI). 

To see the list of available commands type hipchat at the admin@hipchat prompt:

admin@hipchat:~$ hipchat

For help on using any of the commands, type the command like hipchat upgrade at the prompt:

admin@hipchat:~$ hipchat upgrade

The HipChat Server CLI returns explanations of all the arguments available for the command.

Setting Network time

HipChat Server uses network time protocol (NTP) with the following default servers:

  • 0.atlassian.pool.ntp.org
  • 1.atlassian.pool.ntp.org

To change the servers, type the following command:

hipchat service --ntp-servers time1.example.com,time2.example.com

where time1.example.com,time2.example.com are the servers you want to use

Enabling Monitoring

You can configure HipChat Server with a recipient email address for system alerts using the OVF alerts email property or the command line.

To configure email alerts through the command line, open the command line and enter:

hipchat email --alerts-email alerts@example.com

Expand for a list of alert triggers...

An alert email is sent when any of the following conditions are met:

System Utilization

  • Memory utilization over 98% for three cycles
  • Swap file utilization over 10% for three cycles
  • CPU (user) utilization over 95% for three cycles
  • CPU (system) utilization over 95% for three cycles
  • CPU (wait) utilization over 99% for three cycles

Services

  • 'gearman' over 30% CPU utilization
  • 'mysql' becomes unavailable after three attempts within five cycles
  • 'nginx' over 20% CPU utilization for five cycles
  • 'ntpd' becomes unavailable
  • 'php5' restarts three times within five cycles
  • 'punjab' unavailable for three cycles, or over 45% CPU for three cycles
  • 'redis' unavailable three times within five cycles, or over 35% CPU for three cycles
  • 'rsyslog'  over 75% CPU for three cycles

HipChat Server implements SNMP v2c using standard Ubuntu MIBs that can be enabled by the command line. 

  • To turn SNMP on or off, type:
    hipchat service -n "on" OR "off"
  • To set up the community string, type:
    hipchat service -c <communitystring>
    Example: hipchat service -c public
  • To add TRAP recipient server list, type:

    hipchat service -t trap.server.com
    Example: snmp1.exmaple.com,snmp2.example.com

    Note: Add \ prior to a special character as in dollar\$ign

Enabling SMS notifications

To enable your users to receive SMS Notifications, use a Twilio account. 

  1. Start a Twilio trial or log into your Twilio account.
  2. In the HipChat Server web interface, click Server admin > Notifications.
  3. In the fields provided, paste your Twilio credentials and phone number.
  4. Click Modify.
  5. To test SMS notifications, click Account settings, then Notifications in the left menu.
  6. Next to SMS, click Add phone.

Disabling Phone-Home Signal

HipChat Server sends a daily heartbeat “phone home” to help Atlassian improve the product. This can be disabled at the command line by running this command:

hipchat license --phone-home off 


Last modified on May 10, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.