Graphs PNP in Thruk with Shinken?

736 views
Skip to first unread message

Gauthier D

unread,
Aug 24, 2011, 6:15:30 AM8/24/11
to th...@googlegroups.com
Hello all,

I'm setting up a fresh install of Shinken + Thruk + pnp4nagios to test if these one could replace my currently nagios install.
In Nagios, I have an icon directly in host or service to see the pnp graph. I saw it's possible too in Thruk but I'm asking how to get this icon. Didn't find (or bad research) how to get this icon.
I read that to have this icon a service or host must have a pnp4nagios action url set, but didn't know exactly where to configure that.

Currently, I have a shinken+thruk and pnp4nagios working.

Could you tell me what to modify and where please?

Thank you very much for your future answers,

Regards,
Gauthier

Sven Nierlein

unread,
Aug 24, 2011, 7:04:34 AM8/24/11
to th...@googlegroups.com
Hi Gauthier,

configuration is just the same as in nagios. Just set the
according action_url to your host/service.

An example could be this host template:

define host {
name host-pnp
process_perf_data 1
action_url /shinken/pnp4nagios/index.php/graph?host=$HOSTNAME$&srv=_HOST_' class='tips' rel='/shinken/pnp4nagios/index.php/popup?host=$HOSTNAME$&srv=_HOST_
register 0
}

Just change the path to your pnp installation.

Sven

Gauthier DOUCHET

unread,
Sep 7, 2011, 9:37:49 AM9/7/11
to th...@googlegroups.com
Hi,

Sorry for the long time to answer, but some problems to resolve with shinken and pnp before working on thruk and pnp. :)

I have just a last problem. When I go on extras actions on thruk, the port 3000 is keeped in url. So the url it tries to go is: http://server:3000/pnp4nagios/index.php/graph?host=srv-02-vm&srv=_HOST_

Logically, I got a "page not found'. If I remove the port in the url, it's working.
What should I do to avoid this behaviour? It's maybe due to my apache config?

Thank you for your answers.

Gauthier

2011/8/24 Sven Nierlein <sv...@nierlein.de>



--
Gauthier DOUCHET

Sven Nierlein

unread,
Sep 7, 2011, 3:51:21 PM9/7/11
to th...@googlegroups.com
Hi,

On 9/7/11 15:37, Gauthier DOUCHET wrote:

> define host {
> name host-pnp
> process_perf_data 1
> action_url /shinken/pnp4nagios/index.php/graph?host=$HOSTNAME$&srv=_HOST_' class='tips' rel='/shinken/pnp4nagios/index.php/popup?host=$HOSTNAME$&srv=_HOST_
> register 0
> }

You can use absolute paths too. Just change that to
action_url http://host/shinken/pnp4nagios/...

And the :3000 Server is usually just for development. Better integrate Thruk as fastcgi process to make it available on port 80.

Sven

Gauthier DOUCHET

unread,
Sep 7, 2011, 5:50:15 PM9/7/11
to th...@googlegroups.com
Thank you for this tip. I didn't read it on the doc.
Now it's better :)

Gauthier

2011/9/7 Sven Nierlein <sv...@nierlein.de>



--
Gauthier DOUCHET
Reply all
Reply to author
Forward
0 new messages