Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
commands:nems-info [2019/06/05 11:35]
Robbie Ferguson
commands:nems-info [2019/09/13 11:45] (current)
Robbie Ferguson
Line 33: Line 33:
   * //nems-info **services**//​ - Output a count of how many services you are currently monitoring (uses livestatus).   * //nems-info **services**//​ - Output a count of how many services you are currently monitoring (uses livestatus).
   * //nems-info **benchmark** [test-name]//​ Outputs numeric result of NEMS Benchmark. Will return 0 if test has not yet been run via cron task, or if being run on an unsupported version of NEMS (requires 1.4+). Generally not for end-users. Used by [[:​anonymous_stats|NEMS Anonymous Stats]] and [[https://​gigglescore.com/​|GiggleScore.com]]. Available tests: cpu io ram mutex 7z-m 7z-s   * //nems-info **benchmark** [test-name]//​ Outputs numeric result of NEMS Benchmark. Will return 0 if test has not yet been run via cron task, or if being run on an unsupported version of NEMS (requires 1.4+). Generally not for end-users. Used by [[:​anonymous_stats|NEMS Anonymous Stats]] and [[https://​gigglescore.com/​|GiggleScore.com]]. Available tests: cpu io ram mutex 7z-m 7z-s
-  * //nems-info **state**// Output the state information of your NEMS hosts and services to JSON format.+  * //nems-info **state**// Output the state information of NEMS hosts and services ​that are in a problem state to JSON format. Honors the NEMS TV Dashboard display setting in NEMS SST (immediate display or in accordance to service notification settings). 
 +  * //nems-info **state all**// Output the state information of all NEMS hosts and services to JSON format, regardless of state.
   * //nems-info **alias**// Output the alias of your NEMS Linux server.   * //nems-info **alias**// Output the alias of your NEMS Linux server.
   * //nems-info **cloudauth**//​ Check if this NEMS server is authorized to use [[features:​nems-cloud|NEMS Cloud]]. 1 = yes, 0 = no.   * //nems-info **cloudauth**//​ Check if this NEMS server is authorized to use [[features:​nems-cloud|NEMS Cloud]]. 1 = yes, 0 = no.
 +  * //nems-info **cloudauthcache**//​ Output the last status of this NEMS server'​s authorization to use [[features:​nems-cloud|NEMS Cloud]]. 1 = yes, 0 = no. Loads from a log file rather than realtime result, making this a faster way to load the status.
   * //nems-info **allowupdate**//​ Show NEMS' automatic update setting. 1 = Not allowed, 2 = Allowed monthly, 3 = Allowed semi-weekly,​ 4 = Allowed weekly, 5 = Allowed daily   * //nems-info **allowupdate**//​ Show NEMS' automatic update setting. 1 = Not allowed, 2 = Allowed monthly, 3 = Allowed semi-weekly,​ 4 = Allowed weekly, 5 = Allowed daily
   * //nems-info **wifi**// Output a json-encoded list of detected WiFi networks.   * //nems-info **wifi**// Output a json-encoded list of detected WiFi networks.
Line 52: Line 54:
   * //nems-info **speedtest which**// Output 0 if using automatically-selected speedtest server (automatically updates itself each day based on which server is best). Output 1 if using the server number provided in the ARGS on the check_command in NEMS NConf.   * //nems-info **speedtest which**// Output 0 if using automatically-selected speedtest server (automatically updates itself each day based on which server is best). Output 1 if using the server number provided in the ARGS on the check_command in NEMS NConf.
   * //nems-info **fileage [file]**// Output the age of any file on the NEMS server. Particularly helpful in determining how long a process has been running. Eg., //nems-info fileage /​var/​run/​nems-quickfix.pid//​   * //nems-info **fileage [file]**// Output the age of any file on the NEMS server. Particularly helpful in determining how long a process has been running. Eg., //nems-info fileage /​var/​run/​nems-quickfix.pid//​
 +  * //nems-info **tv_require_notify**//​ Output the NEMS TV Dashboard setting for notification state. 1=Require notification state, 2=Display state information immediately.
 +  * //nems-info **tv_24h**//​ Output the clock format setting for NEMS TV Dashboard (configured in NEMS SST). 1=15:35, 2=3:35 PM, 3=3:35
 +  * //nems-info **livestatus**//​ Output JSON result of full livestatus query.
 +  * //nems-info **temper**//​ Output JSON response from supported [[hardware:​temper|TEMPer]] hardware.
 +  * //nems-info **frequency**//​ Output the current CPU operating frequency in realtime, averaged across all cores.
 +  * //nems-info **perfdata_cutoff**//​ Output the cutoff (in days) for perfdata retention, as configured in NEMS SST. All perfdata that falls outside this number of days will be automatically purged.
  • commands/nems-info.1559748951.txt.gz
  • Last modified: 2019/06/05 11:35
  • by Robbie Ferguson