Re: Anyone using munin?

2009-04-07 Thread Michael-John Turner
On Mon, Apr 06, 2009 at 10:47:36AM +0200, Toni Mueller wrote:
 I think that this is very optimistic, since a lot of Linux specific
 facilities are being used. Eg. several scripts parse the output of
 iptables, or read /proc...

I've not tried them on OpenBSD, but the pkgsrc package[1] contains some
monitoring scripts for NetBSD that may be usable or easily portable to
OpenBSD. Take a look in the files/node/node.d.netbsd directory in the
pkgsrc tree.

[1] sysutils/munin-node
http://cvsweb.se.netbsd.org/cgi-bin/bsdweb.cgi/pkgsrc/sysutils/munin-node/

-mj
-- 
Michael-John Turner 
m...@mjturner.nethttp://mjturner.net/



Re: Anyone using munin?

2009-04-06 Thread Toni Mueller
Hi,

On Sat, 04.04.2009 at 12:15:35 +0200, Cezary Morga c...@therek.net wrote:
 I think munin comes with a bunch of plugins already. If not you can grab some 
 Linux package (like Debian's munin-node) and extract them from it. These are 
 simple scripts (shell, perl, python) so they might run on OpenBSD even 
 without 
 any modifications.

I think that this is very optimistic, since a lot of Linux specific
facilities are being used. Eg. several scripts parse the output of
iptables, or read /proc...


Kind regards,
--Toni++



Re: Anyone using munin?

2009-04-06 Thread Martin Schröder
2009/4/3, Marc Runkel mrun...@untangle.com:
 Trying to set up munin work with OpenBSD and was wondering if anyone had some
  plugins pre-written?  In particular interface statistics but I'll take just
  about anything.

Good luck. AFAIK there's a freebsd port, try that. And there are some
plugins for pf at http://muninexchange.projects.linpro.no/

Best
   Martin



Re: Anyone using munin?

2009-04-06 Thread Alexander Bochmann
Hi,

...on Thu, Apr 02, 2009 at 05:44:32PM -0700, Marc Runkel wrote:

  Trying to set up munin work with OpenBSD and was wondering if anyone had some
  plugins pre-written?  In particular interface statistics but I'll take just
  about anything.

I have a bunch of badly hacked munin plugins I've 
been running for some time, which you could try to 
use as an inspiration. 
Warning: Undocumented cut  paste code from other 
existing plugins. I'll take no responsibility if 
it breaks your brain (or computer).

They do at least basic IF Statistics, cpu, disk, 
temperature sensors.

Can be downloaded from here:

http://ozeanos.gxis.de/temp/filepile/munin-plugins-obsd39.tar.gz

Alex.



Re: Anyone using munin?

2009-04-06 Thread Russell Howe

Martin SchrC6der wrote, sometime around 06/04/09 10:01:

2009/4/3, Marc Runkel mrun...@untangle.com:

Trying to set up munin work with OpenBSD and was wondering if anyone had some
 plugins pre-written?  In particular interface statistics but I'll take just
 about anything.


Good luck. AFAIK there's a freebsd port, try that. And there are some
plugins for pf at http://muninexchange.projects.linpro.no/


Munin can collect from SNMP, which makes life a LOT easier!

OK, so that's not so useful if you want to collect some stats which 
OpenBSD's snmpd doesn't expose but assuming you do, this is what you 
need to do:


munin-node can act as a proxy, forwarding requests to another box. This 
is handy if you want to monitor a bunch of hosts the other side of a 
firewall as you only need to punch a hole for the one machines. It can 
also do act as a munin-to-snmp one way bridge, forwarding incoming 
requests on to another node that speaks SNMP.


Install munin-node somewhere (I installed it on a Debian box that I run 
munin on, which is also where I collect all syslog messages and run 
logcheck and nagios).


Check that the box running munin-node can talk SNMP to OpenBSD:

This works well enough for me as a test:
$ snmpwalk -v 2c -c community address of obsd box

Run munin-node-configure-snmp - you can pass either a single address or 
a CIDR range. It will scan for SNMP and configure any plugins which can 
monitor the stats it finds.


Configure munin-node to allow connections from the host running munin

e.g.

echo 'allow ^10\.0\.0\.1$'  /etc/munin/munin-node.conf

where 10.0.0.1 is the IP address of the box running munin (the one which 
collects stats from all the nodes and draws graphs)


Restart munin-node

Wait for the pretty graphs to appear

Debug, rejoice and go on an SNMP configuring rampage across your network 
(hint: this is useful for monitoring Windows boxes, if you have any of 
those).


--
Russell Howe, IT Manager. rh...@bmtmarinerisk.com
BMT Marine  Offshore Surveys Ltd.



Re: Anyone using munin?

2009-04-06 Thread Cezary Morga
Dnia poniedzia3ek, 6 kwietnia 2009, Toni Mueller napisa3:
 Hi,

 On Sat, 04.04.2009 at 12:15:35 +0200, Cezary Morga c...@therek.net wrote:
  I think munin comes with a bunch of plugins already. If not you can grab
  some Linux package (like Debian's munin-node) and extract them from it.
  These are simple scripts (shell, perl, python) so they might run on
  OpenBSD even without any modifications.

 I think that this is very optimistic, since a lot of Linux specific
 facilities are being used. Eg. several scripts parse the output of
 iptables, or read /proc...

Argh, you're right. My bad.

--
Cezary Morga



Re: Anyone using munin?

2009-04-04 Thread Cezary Morga
Marc Runkel wrote:
 Trying to set up munin work with OpenBSD and was wondering if anyone had
 some plugins pre-written?  In particular interface statistics but I'll take
 just about anything.

I think munin comes with a bunch of plugins already. If not you can grab some 
Linux package (like Debian's munin-node) and extract them from it. These are 
simple scripts (shell, perl, python) so they might run on OpenBSD even without 
any modifications.
-- 
Cezary Morga
Man forgives woman anything save the wit to outwit him. (Minna Thomas 
Antrim)



Anyone using munin?

2009-04-02 Thread Marc Runkel
Trying to set up munin work with OpenBSD and was wondering if anyone had some
plugins pre-written?  In particular interface statistics but I'll take just
about anything.

Thanks,

Marc