Running availability reports automatically
Peter Farrell
peter.d.farrell at gmail.com
Mon Apr 3 21:33:11 CEST 2006
Yeah - I've tried the wget method and it's just messy... not really
suitable for output into client-side reporting.
Essentially you've got to beat it out of Nagios, then format it again
so it's usable?
There is no 'easy way' as it stands now right?
----------------------------------------------------------------
[peter at server]$ wget --save-cookie cookies
https://peter:password@server.example.com/nagios/cgi-bin/avail.cgi?show_log_entries=&host=honda&service=check_orbit_login&timeperiod=thismonth'
| mail peter.farrell at example.com
--16:50:24-- https://peter:*password*@server.example.com/nagios/cgi-bin/avail.cgi?show_log_entries=&host=honda&service=check_orbit_login&timeperiod=thismonth
=> `avail.cgi?show_log_entries=&host=honda&service=check_orbit_login&timeperiod=thismonth'
Resolving server.example.com... 192.168.100.100
Connecting to server.example.com[192.168.100.100]:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
[ <=>
] 10,383 4.79K/s
16:50:27 (4.79 KB/s) -
`avail.cgi?show_log_entries=&host=honda&service=check_orbit_login&timeperiod=thismonth'
saved [10383]
No message, no subject; hope that's ok
------------------------------------------------------------------------------------------------
I've tried several permutations of this and they are all cantankerous.
Although sed and awk are also my friends, spending all my time with
them is a bit of a downer... isn't there something that exist now to
allow users pull data out for their reports without pestering the
sysadmin everytime they want the data manipulated?
(I've just been asked to start thinking about a solution for someone,
and 'no - I haven't googled it yet')
-Peter
On 03/04/06, Marc Powell <marc at ena.com> wrote:
>
>
> > -----Original Message-----
> > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> > admin at lists.sourceforge.net] On Behalf Of Peter Farrell
> > Sent: Monday, April 03, 2006 8:36 AM
> > To: nagios-users at lists.sourceforge.net
> > Subject: [Nagios-users] Running availability reports automatically
> >
> > Can you run various availability reports automatically?
> >
> > I'd like to run a few on particular services and have them emailed to
> > me each week / month.
> >
> > I had seen a Perl script that pulled a few bits out on a previous post
> > - but is there a facility to do this within the application itself?
>
> There is not. Cron + wget (or LWP's GET) are your friends.
>
> --
> Marc
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
N¬HS^µéX¬²'²Þu¼±<ÂÚº.Öëy©"®*mx%jx.j
«^ÆקvÆ©¦Xjبȧ¶m©Ýâév&¶×§vØ^+ÞÁæÜjËZØè{azâç^½éh¥êனn·)à{h¶¬ì¡Ø§×«®+h¯(m¶ÿ±éZ²ëjYwþÇ¥rg
More information about the Users
mailing list