Hi Jörg,

I'm currently working on a script like the one written by nicolargo (i based
my code on it).
Main differences :
- Install Thruk with mod_fcgid
- Options : installation of pnp and Nagvis
- Configure shinken brokers
- Configure Thruk to display nagvis maps

It has been tested several times on a debian squeeze, i never tested it on a
ubuntu.
Fyi : it's my first python code :p

For security reason, no changes are made to apache server if it's already
installed.
So remove it if it's installed and not in used before running the script

./stpn_installer.py --help

Please give me your feedback if you want to test it.

To be honest i recently stopped working on it 'cause the shinken dev team is
currently developping a new Web UI.

Regards,
Smaïne

2011/9/1 Jörg Schulz <jorg.sch...@lnu.se>

> Hi
>
> Yes i get "connection refused", but no errors in any log
> Strange , everything works as expected I can discover my Lan´s and restart
> shinken and everything is fine in thruk , only the http://<myip:3000> does
> not work , could it be something todo with the CATALYST perl modules ? .
>
>
>
> wget http://localhost:3000
> --2011-09-01 12:53:55--  http://localhost:3000/
> Resolving localhost... 127.0.0.1
> Connecting to localhost|127.0.0.1|:3000... connected.
> HTTP request sent, awaiting response... 302 Found
> Location: /thruk/ [following]
> --2011-09-01 12:53:55--  http://localhost:3000/thruk/
> Connecting to localhost|127.0.0.1|:3000... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 15284 (15K) [text/html]
>
>
>
> Ports :
> tcp        0      0 0.0.0.0:50000           0.0.0.0:*               LISTEN
>      1246/python
> tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN
>      1029/apache2
> tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN
>      584/sshd
> tcp        0      0 0.0.0.0:7768            0.0.0.0:*               LISTEN
>      1071/python
> tcp        0      0 0.0.0.0:3000            0.0.0.0:*               LISTEN
>      18970/perl
> tcp        0      0 0.0.0.0:7769            0.0.0.0:*               LISTEN
>      1148/python
> tcp        0      0 127.0.0.1:7770          0.0.0.0:*               LISTEN
>      4774/python
> tcp        0      0 0.0.0.0:7771            0.0.0.0:*               LISTEN
>      1107/python
> tcp        0      0 0.0.0.0:7772            0.0.0.0:*               LISTEN
>      1180/python
> tcp        0      0 0.0.0.0:7773            0.0.0.0:*               LISTEN
>      1208/python
>
> and so on ....
>
>
>
> root     18970     1  0 10:46 pts/0    00:00:01 perl /opt/thruk/script/
> thruk_server.pl
> thruk    19001     1  0 10:46 ?        00:00:00 perl-fcgi-pm
> www-data 19813 15843  0 12:40 ?        00:00:00 /usr/sbin/apache2 -k start
> www-data 21319 15843  0 12:41 ?        00:00:00 /usr/sbin/apache2 -k start
> www-data 24442 15843  0 12:45 ?        00:00:00 /usr/sbin/apache2 -k start
> www-data 25999 15843  0 12:46 ?        00:00:00 /usr/sbin/apache2 -k start
> thruk    26022 19001  0 12:46 ?        00:00:00 perl-fcgi
> thruk    27520 19001  0 12:48 ?        00:00:00 perl-fcgi
> thruk    27521 19001  0 12:48 ?        00:00:00 perl-fcgi
> www-data 27565 15843  0 12:48 ?        00:00:00 /usr/sbin/apache2 -k start
> www-data 27566 15843  0 12:48 ?        00:00:00 /usr/sbin/apache2 -k start
> thruk    28908 19001  0 12:49 ?        00:00:00 perl-fcgi
> www-data 28923 15843  0 12:49 ?        00:00:00 /usr/sbin/apache2 -k start
> www-data 29102 15843  0 12:49 ?        00:00:00 /usr/sbin/apache2 -k start
> thruk    29104 19001  0 12:49 ?        00:00:00 perl-fcgi
>
>
> shinken   1071     1  1 12:09 ?        00:00:27 /usr/bin/python
> /usr/bin//shinken-scheduler -d -c /etc/shinken/schedulerd.ini
> shinken   1107     1  0 12:09 ?        00:00:03 /usr/bin/python
> /usr/bin//shinken-poller -d -c /etc/shinken/pollerd.ini
> shinken   1127  1107  0 12:09 ?        00:00:01 /usr/bin/python
> /usr/bin//shinken-poller -d -c /etc/shinken/pollerd.ini
> shinken   1148     1  0 12:09 ?        00:00:05 /usr/bin/python
> /usr/bin//shinken-reactionner -d -c /etc/shinken/reactionnerd.ini
> shinken   1149  1148  0 12:09 ?        00:00:02 /usr/bin/python
> /usr/bin//shinken-reactionner -d -c /etc/shinken/reactionnerd.ini
> shinken   1180     1  0 12:09 ?        00:00:08 /usr/bin/python
> /usr/bin//shinken-broker -d -c /etc/shinken/brokerd.ini
> shinken   1208     1  0 12:09 ?        00:00:01 /usr/bin/python
> /usr/bin//shinken-receiver -d -c /etc/shinken/receiverd.ini
> shinken   1240  1107  0 12:09 ?        00:00:02 /usr/bin/python
> /usr/bin//shinken-poller -d -c /etc/shinken/pollerd.ini
> shinken   1241  1107  0 12:09 ?        00:00:02 /usr/bin/python
> /usr/bin//shinken-poller -d -c /etc/shinken/pollerd.ini
> shinken   1242  1107  0 12:09 ?        00:00:02 /usr/bin/python
> /usr/bin//shinken-poller -d -c /etc/shinken/pollerd.ini
> shinken   1246  1180  1 12:09 ?        00:00:30 /usr/bin/python
> /usr/bin//shinken-broker -d -c /etc/shinken/brokerd.ini
> shinken   1248  1148  0 12:09 ?        00:00:15 /usr/bin/python
> /usr/bin//shinken-reactionner -d -c /etc/shinken/reactionnerd.ini
> shinken   1251  1107  0 12:09 ?        00:00:02 /usr/bin/python
> /usr/bin//shinken-poller -d -c /etc/shinken/pollerd.ini
> shinken   4774     1  0 12:18 ?        00:00:02 /usr/bin/python
> /usr/bin//shinken-arbiter -d -c /etc/shinken/nagios.cfg -c
> /etc/shinken/shinken-specific.cfg
> shinken   4775  4774  0 12:18 ?        00:00:00 /usr/bin/python
> /usr/bin//shinken-arbiter -d -c /etc/shinken/nagios.cfg -c
> /etc/shinken/shinken-specific.cfg
>
>
> /J
>
>
> Vänliga hälsningar
> ______________________
> Jörg Schulz
> Systemtekniker
> IT-Sektion
> Linnéuniversitetet
> 391 82 Kalmar / 351 95 Växjö
>
>
> -----Original Message-----
> From: Sven Nierlein [mailto:s...@nierlein.de]
> Sent: den 1 september 2011 12:10
> To: shinken-devel@lists.sourceforge.net
> Subject: Re: [Shinken-devel] Cannot connect to serverip:3000
>
> On 01.09.2011 11:01, Jörg Schulz wrote:
> > I can start Thruk and shinken and force a discovery , the hosts/services
> are discovered , but I cant connect to the shinken by<myipaddress:3000>
> > No fw involved, thruk works fine but I want to see my discovered
> hosts/services .
> > I am new in Shinken and thruk so thanks for your help
>
> Hi Jörg,
>
> is Thruk really running? Any errors in the logs? Do you get a "connection
> refused" or what kind of error?
>
>  Sven
>
>
> ------------------------------------------------------------------------------
> Special Offer -- Download ArcSight Logger for FREE!
> Finally, a world-class log management solution at an even better
> price-free! And you'll get a free "Love Thy Logs" t-shirt when you
> download Logger. Secure your free ArcSight Logger TODAY!
> http://p.sf.net/sfu/arcsisghtdev2dev
> _______________________________________________
> Shinken-devel mailing list
> Shinken-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/shinken-devel
>
>
> ------------------------------------------------------------------------------
> Special Offer -- Download ArcSight Logger for FREE!
> Finally, a world-class log management solution at an even better
> price-free! And you'll get a free "Love Thy Logs" t-shirt when you
> download Logger. Secure your free ArcSight Logger TODAY!
> http://p.sf.net/sfu/arcsisghtdev2dev
> _______________________________________________
> Shinken-devel mailing list
> Shinken-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/shinken-devel
>

Attachment: stpn_installer-0.1.tar.bz2
Description: BZip2 compressed data

------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Shinken-devel mailing list
Shinken-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/shinken-devel

Reply via email to