You are looking at the wrong page source. What you posted is the PNP4Nagios
page.
My example was a check_mk view.
If you want to use the PNP4Nagios pages it is also possible you can
directly access the graphs like the following example.
https://monitoringhost/sitename/pnp4nagios/index.php/graph?host=
<hostname>&srv=<service_description>&theme=multisite
This will open the graph directly with a complete PNP4Nagios page around.
Second option is
https://monitoringhost/sitename/pnp4nagios/index.php/image?host=
<hostname>&srv=<service_description>&source=0
Only the graph without page around.
With the "source" option you can select the graph if the service has more
then one.

br
Andreas

Ivan Voras <ivo...@footholdtechnology.com> schrieb am Di., 12. Juni 2018 um
13:50 Uhr:

> Hi,
>
> In my case, there are no DIV ID="..." elements which look like your
> example.
>
> The closest thing I see is:
>
> <div start=1528789217 end=1528803617 style="width:500px; height:100px;
> position:absolute; top:33px" class="graph"
> *id="?host=somehost&srv=_HOST_"* ></div>
> <img class="graph"
> src="/monhost_mon01/pnp4nagios/index.php/image?host=somehost&srv=_HOST_&theme=multisite&baseurl=https%3A%2F%
> 2Fmonhost.company.com
> %2Fmonhost_mon01%2Fcheck_mk%2F&view=0&source=0&start=1528789217&end=1528803617">
>
> So the id="?host=..." doesn't help me much because it doesn't contain the
> graph (or service) name.
>
> Searching for the "_graph" string in the HTML source doesn't find anything.
>
>
>
> On Thu, Jun 7, 2018 at 10:07 PM, Andreas Döhler <andreas.doeh...@gmail.com
> > wrote:
>
>> Hi,
>>
>> every graph has an id and it should be possible to jump to this id
>> <div id="test_windows2012r2_Interface Server-Team_graph">
>>
>> In my example it looks like this
>>
>> http://monitoringhost/sitename/check_mk/view.py?host=windows2012r2&service=Interface%20Server-Team&view_name=service#test_windows2012r2_Interface%20Server-Team_graph
>>
>> And it jumps directly to the service graph on this page
>>
>> br
>> Andreas
>>
>>
>>
>> Ivan Voras <ivo...@footholdtechnology.com> schrieb am Do., 7. Juni 2018
>> um 13:59 Uhr:
>>
>>> Hello,
>>>
>>> We are using Check_mk raw edition if that's what CRE stands for.
>>>
>>>
>>> On Thu, Jun 7, 2018 at 11:17 AM, Andreas Döhler <
>>> andreas.doeh...@gmail.com> wrote:
>>>
>>>> Hi Ivan,
>>>>
>>>> what version of Check_MK do you use? CRE or CEE
>>>> As booth versions use different graphing systems it is important to
>>>> give some information.
>>>>
>>>> Best regards
>>>> Andreas
>>>>
>>>> Ivan Voras <ivo...@footholdtechnology.com> schrieb am Do., 7. Juni
>>>> 2018 um 08:35 Uhr:
>>>>
>>>>> Hello,
>>>>>
>>>>> We'd like to link to specific graphs in check_mk from an external
>>>>> site, so the browser window is scrolled just to the right spot.
>>>>>
>>>>> As I currently see (in v1.4), there are no HTML anchors (<A
>>>>> NAME="...">) present, so we can't do that. What is the best way to modify
>>>>> check_mk to include them? What files do we need to modify?
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> checkmk-en mailing list
>>>>> checkmk-en@lists.mathias-kettner.de
>>>>> Manage your subscription or unsubscribe
>>>>> http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
>>>>
>>>>
>>>
>
_______________________________________________
checkmk-en mailing list
checkmk-en@lists.mathias-kettner.de
Manage your subscription or unsubscribe
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en

Reply via email to