[Nagios-devel] trends hard/soft patch

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

[Nagios-devel] trends hard/soft patch

Post by Guest »

This is a multi-part message in MIME format.

------=_NextPart_000_0028_01C1B35D.60005710
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

I've noticed that some of the CGIs in 1.0a4 have the ability to choose hard,
soft, or both states.. so I applied this to trends.cgi and created a .patch
file .. so I thought I'd submit..let me know what you guys think.. this is
one of my first attempts at contributing and creating a diff.. =)


--
Jason Curtis (SyBase)
sybase@vantageltd.com

------=_NextPart_000_0028_01C1B35D.60005710
Content-Type: application/octet-stream;
name="trends-hardsoft.patch"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="trends-hardsoft.patch"

103a104,108=0A=
> =0A=
> #define GRAPH_SOFT_STATETYPES 1=0A=
> #define GRAPH_HARD_STATETYPES 2=0A=
> #define GRAPH_ALL_STATETYPES 3=0A=
> =0A=
107,111c112,116=0A=
time_t time_stamp;=0A=
> int entry_type;=0A=
> char *state_info;=0A=
> struct archived_state_struct *next;=0A=
> }archived_state;=0A=
143a149,150=0A=
> int graph_statetypes=3DGRAPH_HARD_STATETYPES;=0A=
> =0A=
239,311c246,354=0A=
int result=3DOK;=0A=
> char temp_buffer[MAX_INPUT_BUFFER];=0A=
> char image_template[MAX_INPUT_BUFFER];=0A=
> char start_time[MAX_INPUT_BUFFER];=0A=
> char end_time[MAX_INPUT_BUFFER];=0A=
> int string_width;=0A=
> int string_height;=0A=
> char start_timestring[MAX_INPUT_BUFFER];=0A=
> char end_timestring[MAX_INPUT_BUFFER];=0A=
> host *temp_host;=0A=
> service *temp_service;=0A=
> int is_authorized=3DTRUE;=0A=
> int found=3DFALSE;=0A=
> int days,hours,minutes,seconds;=0A=
> char *first_service=3DNULL;=0A=
> time_t t3;=0A=
> time_t current_time;=0A=
> struct tm *t;=0A=
>

...[email truncated]...


This post was automatically imported from historical nagios-devel mailing list archives
Original poster: sybase@vantageltd.com
Locked