Page 1 of 1

Using Nagios for monitoring NAS4Free servers

Posted: 13 Nov 2012 04:26
by asari
I'm using Nagios + PNP4Nagios and manubulon-snmp to watch my servers.
Recently my NAS4Free servers successfully joined with SNMP service enabled... Thanks developers for all effort!

Look mom, I took screenshots!

Nagios's service listing page. I managed to watch load avg, memory usage and network usage.
nas-nagios.png
Network usage graph by PNP4Nagios. Network can be monitored just by enabling SNMP service.
nas0-interfaces-bge0.png
Load average graph by PNP4Nagios, which can be monitored by enabling UCB-SNMP-MIB option.
nas0-load-avg.png
I'm sad a bit that I couldn't use the storage usage plugins even though with "Host resources" option enabled; I got a strange error message like

Code: Select all

**ePN /usr/local/nagios_manubulon_plugins/check_snmp_storage.pl: "Illegal division by zero at (eval 13) line 533,".
I guess I need some work to monitor it... and perhaps I will need more consideration on some zfs-specific situations.
Does anybody have experience on monitoring NAS4Free using SNMP (Nagios/Icinga, Hobbit, Cacti, Munin, Zabbix or anything) ?
I want to know your success stories about monitoring!
I myself don't have much knowledge about SNMP, but I think I can answer some of questions about Nagios setup (if any).

( Thanks for reading this, and I'm sorry if you feel uncomfortable with reading. Usually I use LANG=ja_JP.UTF-8 ;) )

Re: Using Nagios for monitoring NAS4Free servers

Posted: 13 Nov 2012 11:04
by alexey123
You have Nagios + PNP4Nagios installed on NAS4Free server, or on another machine and view statistic over network?
If YES,
1. pls create HOWTO in SNMP section.
2. About error: you need installed additional package net-snmp on NAS4Free and run snmpd from it instead bsnmpd

Re: Using Nagios for monitoring NAS4Free servers

Posted: 13 Nov 2012 15:19
by asari
Hi alexey123, thank you for your reply!

Unfortunately yes to latter one, just installed Nagios on another machine.
And about error, thanks! I'll read [HowTo] Install Packages On N4F Embedded and give it a try.

( I noticed that I should have posted into Newbie forum :oops: )

Re: Using Nagios for monitoring NAS4Free servers

Posted: 28 Jan 2013 23:24
by alexplatform
You have Nagios + PNP4Nagios installed on NAS4Free server, or on another machine and view statistic over network?
If YES,
1. pls create HOWTO in SNMP section.
Alexei, this is pretty easy since the NRPE plugin for BSD is available as a package. Installing it would be as follows:

1. pkg_add -r nrpe2
2. create group "nagios" and user named "nagios", member of group "nagios"
3. Copy /usr/local/etc/nrpe.cfg-sample to nrpe.cfg in a permanent location (eg /mnt/usbdata/opt)
4. edit nrpe.cfg to your needs
5. add the startup command "/usr/local/sbin/nrpe2 -c [/mnt/usbdata/opt]/nrpe.cfg -d
6. add your NAS4free box to your NAGIOS host.
7. enjoy a shot of vodka. you earned it.

Re: Using Nagios for monitoring NAS4Free servers

Posted: 30 Jan 2013 10:38
by alexey123
alexplatform wrote:Alexei, this is pretty easy since the NRPE plugin for BSD is available as a package. Installing it would be as follows:

1. pkg_add -r nrpe2
2. create group "nagios" and user named "nagios", member of group "nagios"
3. Copy /usr/local/etc/nrpe.cfg-sample to nrpe.cfg in a permanent location (eg /mnt/usbdata/opt)
4. edit nrpe.cfg to your needs
5. add the startup command "/usr/local/sbin/nrpe2 -c [/mnt/usbdata/opt]/nrpe.cfg -d
6. add your NAS4free box to your NAGIOS host.
7. enjoy a shot of vodka. you earned it.
From freshport http://www.freshports.org/net-mgmt/nrpe2
nrpe is used to execute Nagios plugins on remote hosts and report the results to the main Nagios server
I need install nagios on nas4free.. Hmm It ask reinstall php http://www.freshports.org/net-mgmt/nagios/ . I can do it, but I 'll have problem with nas4free upgrade.
But I'll try install nagios on jail.

Re: Using Nagios for monitoring NAS4Free servers

Posted: 30 Jan 2013 19:02
by alexplatform
Its possible, but I think that fundamentally you want to keep the monitoring appliance seperately from your storage device. Besides, there is a lot of legwork in creating a fully working NAGIOS installation- it may be a better idea simply to run FAN in a virtualbox instance as it is already configured if you really have your heart set on it.

Re: Using Nagios for monitoring NAS4Free servers

Posted: 01 Feb 2013 17:54
by alexey123
Yes, this work under jail! I install php53 because php5 not want install with apache.