Sponsored Content
Full Discussion: Fix a change I made
Contact Us Post Here to Contact Site Administrators and Moderators Fix a change I made Post 303021621 by Neo on Monday 13th of August 2018 12:54:55 PM
Old 08-13-2018
Image
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Can this be made into one single line?

Can someone please suggest a script to make the following into one single (continuous) line so that a pattern search can be carried out on the resulting single line. Note : Sample (may be shorter or longer) and will be contained in a text file ... (6 Replies)
Discussion started by: nmsinghe
6 Replies

2. UNIX for Dummies Questions & Answers

monitor changes made by root

Is there any way in Solaris 9 to monitor changes made to user accounts by root? (0 Replies)
Discussion started by: scriptarg
0 Replies

3. Cybersecurity

Help - Made a serious admin error

Hello, I am a newbie to Unix administration (specifically Solaris 9). I have everything setup properly for auditing but I neglected to realize I needed to start a new logfile each week. Thus the one logfile grew to about 2.5GB before the auditreduce command could no longer process the file. ... (4 Replies)
Discussion started by: jtbates
4 Replies

4. UNIX for Advanced & Expert Users

How to : Identify changes made with root ?

Thanks Avklinux (1 Reply)
Discussion started by: avklinux
1 Replies

5. Shell Programming and Scripting

strtotime() error - no changes made

Not sure what happened, this page/code always worked before, no changes were made to the code, only the box was powered down, moved and powered back up, the code seems to still be doing its job but spewing out these errors right on the page. Again no changes were made. Warning: strtotime()... (1 Reply)
Discussion started by: ippy98
1 Replies

6. UNIX for Dummies Questions & Answers

Made something wrong in server

hello friends, l was using this command to empty tmp directory but l made this by mistake : and l cant reach my sites now. what l did ??? ---------- Post updated 11-13-11 at 12:07 AM ---------- Previous update was 11-12-11 at... (3 Replies)
Discussion started by: rcpkrc
3 Replies

7. AIX

How to check changes made in last few weeks?

Hi, I want to know what changes were made to my AIX system in last few weeks/months. Is there any command that I can use for this? I am facing a problem wherein my program which are built few weeks back runs fine but if I build the same program now, it doesn't run as expected. ... (4 Replies)
Discussion started by: shriashishpatil
4 Replies

8. What is on Your Mind?

Self made monitoring application

Hi.. Looking for advice / feedback Work in IT in an operational team, number of years ago, all monitoring was manual, vast checklists for unix checks, checking space, checking application processes, files etc. filling in spreadsheets etc. I took some basic scripting courses in ksh and... (2 Replies)
Discussion started by: frustrated1
2 Replies

9. What is on Your Mind?

An email that has made my day...

Today I received an email from 'code.activestate.com'. It was referenced to a Python code snippet I wrote 3 years and 2 months ago. It was the third party comment at the bottom that was emailed to me... As I am a pure amateur coder this has really made my day... Platform Independent... (1 Reply)
Discussion started by: wisecracker
1 Replies
upsstats.html(5)					      Network UPS Tools (NUT)						  upsstats.html(5)

NAME
upsstats.html - HTML template for Network UPS Tools upsstats DESCRIPTION
This file is used by upsstats.cgi(8) to generate status pages. Certain commands are recognized, and will be replaced with various status elements on the fly. FORMATTING
All commands must be alone on a line, and start and end with @. A line that has any extra characters before or after the @ will be passed through unchanged. BLOCK CONTROL
Some commands begin blocks - sections of the template that will be included, excluded, or repeated depending on certain parameters. @FOREACHUPS@ Starts a block that will be repeated for each MONITOR directive in the hosts.conf(5). This is how you can generate pages that moni- tor all of your systems simultaneously. @ENDFOR@ Ends a FOREACHUPS block. @IFSUPP var@ Starts a block that will only be printed if the variable var is supported by the current UPS. This is generally used to suppress "not supported" messages by avoiding the label and variable call entirely. @ENDIF@ Ends an IFSUPP block. IFSUPP blocks may be contained within a FOREACHUPS block. Nesting and other combinations are not supported. OTHER COMMANDS
@AMBTEMP@ Insert the ambient temperature in the current temperature scale. @DATE format@ Insert the current date and time. The format string is passed to strftime, so almost anything is possible. See strftime(3) for possible values. @DEGREES@ Insert the entity for degrees (°) and either C or F depending on the current temperature scale. @HOST@ Insert the designation of the host being monitored, like myups@localhost. @HOSTDESC@ Insert the host's description from hosts.conf(5). @HOSTLINK@ Insert a link to upsstats.cgi with the "host" variable set to the current UPS. This is only useful within a FOREACHUPS block. @IMG varname [extra]@ Insert an IMG SRC to upsimage.cgi(8) for one of four possible status variables: BATTPCT - Battery charge - a percentage LOADPCT - UPS load - percentage OUTVOLT - Outgoing voltage (from the UPS) UTILITY - Incoming utility voltage extra is where you can put additional definitions. Right now the valid definitions are colors for various parts of the bars drawn by upsimage.cgi. Possible color names are: back_col - background color scale_num_col - scale number color summary_col - summary color (number at the bottom) ok_zone_maj_col - major scale color for the normal ("ok") zone ok_zone_min_col - minor scale color for the normal ("ok") zone neutral_zone_maj_col - major scale color for the neutral zone neutral_zone_min_col - minor scale color for the neutral zone warn_zone_maj_col - major scale color for the warning zone warn_zone_min_col - minor scale color for the warning zone bar_col - the color of the bar in the middle All colors are hex triplets - 0xff0000 is red, 0x00ff00 is green, and 0x0000ff is blue. Examples: @IMG BATTPCT@ @IMG BATTPCT back_col=0xff00ff bar_col=0xaabbcc@ @IMG UTILITY ok_zone_maj_col=0x123456@ @REFRESH@ Insert the META header magic for refreshing the page if that variable has been set by the browser. This needs to be in the HEAD section of the page. @STATUS@ Expand the abbreviations in the STATUS variable - OL becomes "On line", OB becomes "On battery", and so on. @STATUSCOLOR@ Insert red, green, or yellow color triplets depending on the severity of the current UPS status. Normal operations are green, warn- ings like voltage trim/boost or "off" are yellow, and other events like being on battery or having a low battery are red. @VAR varname@ Insert the current value of the status variable varname on the host being monitored, or "Not supported". @TEMPC@ Use the Celsius scale for temperature data (default). @TEMPF@ Use the Fahrenheit scale for temperature data. @UPSTEMP@ Insert the UPS temperature in the current scale. @UTILITYCOLOR@ Insert either #FF0000 (red) or #00FF00 (green) depending on the incoming utility voltage. By default this will return green, unless the utility is outside the bounds defined by lowxfer and highxfer. Those voltages are a function of your driver, and do not exist on all of them. @VERSION@ Insert the version number of the software. OTHER TEMPLATES
upsstats.cgi(8) will also open a file called upsstats-single.html if you call it with "host=" set in the URL. That file uses the same rules and techniques documented here. SEE ALSO
upsstats.cgi(8), upsimage.cgi(8) Internet resources: The NUT (Network UPS Tools) home page: http://www.exploits.org/nut/ NUT mailing list archives and information: http://lists.exploits.org/ Mon Sep 16 2002 upsstats.html(5)
All times are GMT -4. The time now is 12:33 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy