nagios to mrtg

Andreas Ericsson ae at op5.se
Thu Oct 20 18:47:22 CEST 2005


Jun Li wrote:
> Yes, i want to modify the cgi to meet my requirament. Can you send me the 
> instuctions how to modify nagios cgi code?
> 

Read "The C Programming Language" by Kernighan & Ritchie. You'll pick it 
up in no-time.

> Thank you in advance,
> JUn
> 
> On Wednesday 19 October 2005 06:08 pm, jeff vier wrote:
> 
>>On Wed, 2005-10-19 at 14:55 -0700, Harper Mann wrote:
>>
>>>Hi,
>>>
>>>It's in nagios/share/side.html:
>>
>>he said *not* in the sidebar.
>>
>>You have to do some cgi hacking to include links on the status page.
>>
>>
>>><tr>
>>>    <td width=13><img src="images/greendot.gif" width="13" height="14"
>>>name="notifications-dot"></td>
>>>    <td nowrap><a href="/nagios/cgi-bin/notifications.cgi?contact=all"
>>>target="main" onMouseOver="switchdot('notifications-dot',1)"
>>>onMouseOut="switchdot('notifications-dot',0)"
>>>class="NavBarItem">Notifications</a></td>
>>>  </tr>
>>>  <tr>
>>>    <td width=13><img src="images/greendot.gif" width="13" height="14"
>>>name="logfile-dot"></td>
>>>    <td nowrap><a href="/nagios/cgi-bin/showlog.cgi" target="main"
>>>onMouseOver="switchdot('logfile-dot',1)"
>>>onMouseOut="switchdot('logfile-dot',0)" class="NavBarItem">Event
>>>Log</a></td>
>>>  </tr>
>>>
>>>Copy between <tr> and </tr> and duplicate for your MRTG entry, something
>>>like:
>>>
>>>  <tr>
>>>    <td width=13><img src="images/greendot.gif" width="13" height="14"
>>>name="mrtg-dot"></td>
>>>    <td nowrap><a href="/mrtg/myhost.html" target="main"
>>>onMouseOver="switchdot(mrtg-dot',1)" onMouseOut="switchdot(mrtg-dot',0)"
>>>class="NavBarItem">MRTG</a></td>
>>>  </tr>
>>>
>>>Good luck!
>>>
>>>Regards,
>>>
>>>- Harper
>>>
>>>Harper Mann
>>>Groundwork
>>>510-599-2075 (cell)
>>>
>>>
>>>>-----Original Message-----
>>>>From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
>>>>admin at lists.sourceforge.net] On Behalf Of Jun Li
>>>>Sent: Wednesday, October 19, 2005 2:51 PM
>>>>To: nagios-users at lists.sourceforge.net
>>>>Subject: [Nagios-users] nagios to mrtg
>>>>
>>>>Hi,
>>>>
>>>>Anyone can let me know how to put some link in the main frame not the
>>>>side bar,for example in service detail main frame in my nagios web site
>>>>to link to ../www/html/mrtg/myhost.html, so, for example, people can
>>>>see the charts
>>>>as well as can check mrtg log.
>>>>
>>>>Thanks in advance,
>>>>JUn
>>>>
>>>>
>>>>-------------------------------------------------------
>>>>This SF.Net email is sponsored by:
>>>>Power Architecture Resource Center: Free content, downloads,
>>>>discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl
>>>>_______________________________________________
>>>>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
>>>
>>>-------------------------------------------------------
>>>This SF.Net email is sponsored by:
>>>Power Architecture Resource Center: Free content, downloads, discussions,
>>>and more. http://solutions.newsforge.com/ibmarch.tmpl
>>>_______________________________________________
>>>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
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by:
> Power Architecture Resource Center: Free content, downloads, discussions,
> and more. http://solutions.newsforge.com/ibmarch.tmpl
> _______________________________________________
> 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
> 

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
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