nagios to mrtg

Jun Li jun at lifecapturemedia.com
Thu Oct 20 20:40:02 CEST 2005


Thank you Andreas for your great help. I need time to study c thoroughly 
although it is the first programming langurage i start to learn myself nine 
years ago. Now i got a quick and lazy solution by just type make and copy the 
correspondant cgi to /urs/local/nagios/sbin/. 

Thank you for  you all for the great help,
JUn
On Thursday 20 October 2005 12:47 pm, Andreas Ericsson wrote:
> 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


-------------------------------------------------------
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