[omd-users] Getting perf graphs from command line SOLVED

Lander, Scott slander at hearstsc.com
Mon May 21 19:23:19 CEST 2012

If you are ok with having a link to the original, something like this works

$Over = "http://$server/pnp4nagios/index.php/graph?host=$$Site{'hostname'}&srv=$$Site{'service'}&source=0&end=$end&start=$start";

I ripped this out of some perl code of mine, so the variable names are perl format....

-----Original Message-----
From: omd-users-bounces at lists.mathias-kettner.de [mailto:omd-users-bounces at lists.mathias-kettner.de] On Behalf Of Stephen Berg (Contractor)
Sent: Monday, May 21, 2012 11:46 AM
To: omd-users at lists.mathias-kettner.de
Subject: Re: [omd-users] Getting perf graphs from command line SOLVED

Nevermind, I can't find a utility to do this but I was able to figure out how to get it done with wget.

wget --user=<username> --password=<pw>
-O /<output_file>.png

On 05/21/2012 07:03 AM, Stephen Berg (Contractor) wrote:
> Anyone have a method to generate graphs from a command line?  I'd like 
> to grab some performance graphs from pnp4nagios to be loaded into a 
> wiki using a cron job.  This is to give access to those graphs to a 
> user but I'd rather not give the user access into OMD itself.

Stephen Berg
Systems Administrator
NRL Code: 7320
Office: 228-688-5738
stephen.berg.ctr at nrlssc.navy.mil

omd-users mailing list
omd-users at lists.mathias-kettner.de
This e-mail message is intended only for the personal use of the recipient(s) named above. If you are not an intended recipient, you may not review, copy or distribute this message. If you have received this communication in error, please notify the Hearst Service Center (cadmin at hearstsc.com) immediately by email and delete the original message.

More information about the omd-users mailing list