npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

hubot-sitescope

v0.0.1

Published

Package allows to trigger SiteScope APIs

Downloads

1

Readme

hubot-sitescope

A hubot package for SiteScope ChatOps integration

Installation

  1. Generate new Hubot deployment by running yo hubot command or use an existing deployment you already have.
  2. From the Hubot main direcrtory, run the following command: npm install git+https://github.com/HPSoftware/hubot-sitescope.git --save
  • This command will install hubot-sitescope package on your Hubot.
  1. Then add hubot-sitescope to your external-scripts.json file contains list of packages from npm:
[
  "hubot-sitescope"
]

Config

Bot configuration stored in config file at: src/sitescope-setting.config

{
    "variables":{
      "default_sis"  :"SiteScope_Instanse_1"
    },
    "instances":{
        "SiteScope_Instanse_1": {
                "url": "http://[your host]:8080/SiteScope/api",
                "Authorization": "Basic [your base64 encoded auth]"
         },
        "SiteScope_Instanse_X": {
                "url": " http://[your host]:8080/SiteScope/api",
                "Authorization": "Basic [your base64 encoded auth]"
         }
    },
    "help_commands":{
        "Show/reload configuration ": {
                "Description": "Show or reload SiteScope instances configuration file",
                "Syntax": "SiteScope show config file\nSiteScope reload config file",
                "Examples":""
         },
		 
		 
        "Run monitor/group": {
                "Description": "Run monitor, for monitors in group set group's path",
                "Syntax": "sitescope run monitors [Entity full path]",
                "Examples":"sitescope run monitors memMonitors/mem\nrun monitors in group: sitescope run monitors HPE/M1"
         }
    }
}
  • To configure the default SiteScope instance edit default_sis parameter.
    • This parameter used to select default SiteScope instance that will be used if no specific instance name specified then running bot commands from the chat
  • instances parameter represent the array of SiteScope instance settings
    • For each set of settings the url parameter is the URL of the SiteScope REST api in following format: http(s)://[your SiteScope host]:[port]/SiteScope/api
  • `Authorization`` is the authorization required to authenticate against your SiteScope instance in basic authentication format.
    • For more details about basic atuh please check: Wiki

Note: If your bot is running and you make any changes to the configuration values, then you must reload the configuration file for the changes to take effect.

Commands support

Show/reload configuration

	Description: Show or reload SiteScope instances configuration file.
	Syntax: SiteScope show config file
			SiteScope reload config file

Add acknowledgement

	Description:Add acknowledgement to entity.
	Syntax: 	SiteScope add ack for [Entity full path] disable [Comment]
				SiteScope add ack for [Entity full path] enable [Comment]
	Examples:	SiteScope add ack for memMonitors/mem disable I'm on it
				SiteScope add ack for memMonitors/mem enable it's OK now

Enable/disable Entity

	Description:Enable or disable entity , monitor or group.
	Syntax: 	SiteScope [enable | disable] [entity type] [Entity full path]
	Examples:	SiteScope enable group HPE/M1
				SiteScope disable group HPE/M1
				SiteScope enable monitor memMonitors/mem
				SiteScope disable monitor memMonitors/mem

Get monitors list

	Description:Get monitors list (recursive) in group.
	Syntax: 	SiteScope get monitors in group [Group full path]
				SiteScope get monitors recursive in group [Group full path]
	Examples:	SiteScope get monitors in group HPE/M1
				SiteScope get monitors recursive in group HPE/M1

Check health

	Description:get all monitors status for target or tag.
	Syntax: 	health of [Target | Tag] on [SiteScope name]
	Examples:	health of SiteScope Server on SisOnAmazon
				health of DockerTag on SisOnAmazon

Search monitor/group

	Description:Search monitors, group , tag or all.
	Syntax: 	SiteScope search [entity type] for [Entity name]
	Examples:	SiteScope search monitors for mem
				SiteScope search group for memMonitors
				SiteScope search tag for DockerMonitors
				SiteScope search all for Docker

Run monitor/group

	Description:Run monitor, for monitors in group set group's path.
	Syntax: 	SiteScope run monitors [Entity full path]
	Examples:	SiteScope run monitors memMonitors/mem
				run monitors in group: SiteScope run monitors HPE/M1