Editing CGI files in Nagios

Marc Powell marc at ena.com
Fri Oct 3 00:38:38 CEST 2008


On Oct 2, 2008, at 4:03 PM, Mike Carey wrote:

> Is it possible to customize the avail.cgi file to add things like  
> Title and Logos to the Summary and Availability reports that run?   
> Everytime I try to adjust the avail.cgi file in /usr/local/share/ 
> nagios/sbin on a Ubuntu server, the Availability main report page  
> doesn’t come up anymore.
>
> I’ve tried editing it with both vi and nano.  And I’m just testing  
> it with a simple change, like making Nagios, ALL CAPS, in the frame  
> box just to see if it will work.

It's a binary program and not editable like that. You're corrupting it  
every time you save it. ;) You need to edit the source file from the  
nagios tarball (avail.c for example) and recompile nagios.

--
Marc


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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





More information about the Users mailing list