Latest News:
2017-09-16: NAS4Free 11.1.0.4.4578 - released!
2017-08-18: NAS4Free-ARM / 10.3.0.3.4529 released!
We really need "Your" help on NAS4Free https://translations.launchpad.net/nas4 ... s/nas4free translations. Please help today!

Producing and hosting NAS4Free cost money, please consider a donation to our project so we can continue to offer you the best.
We need your support! eg: PAYPAL

Using Nagios for monitoring NAS4Free servers

SNMP service.
Forum rules
Set-Up GuideFAQsForum Rules
asari
NewUser
NewUser
Posts: 2
Joined: 12 Nov 2012 18:32
Status: Offline

Using Nagios for monitoring NAS4Free servers

Post #1 by asari » 13 Nov 2012 04:26

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 ;) )
You do not have the required permissions to view the files attached to this post.
--
asari

User avatar
alexey123
Moderator
Moderator
Posts: 1609
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: Using Nagios for monitoring NAS4Free servers

Post #2 by alexey123 » 13 Nov 2012 11:04

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
Home11.0.0.4 - Sayyadina (revision 4249)/ x64-embedded on SAPPHIRE Pure Mini E350 / 8G RAM / UPS Ippon Back Power Pro 600
Lab 10.2.0.2 - Prescience (revision 2545) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
TEST 11.0.0.4 - Sayyadina (revision 4249) on x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM
TEST1 11.0.0.4 - Pilingitam (revision 4333) bpi-embedded on Allwinner a20 / 1015MiB RAM

asari
NewUser
NewUser
Posts: 2
Joined: 12 Nov 2012 18:32
Status: Offline

Re: Using Nagios for monitoring NAS4Free servers

Post #3 by asari » 13 Nov 2012 15:19

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: )
--
asari

alexplatform
Starter
Starter
Posts: 35
Joined: 26 Jun 2012 21:21
Status: Offline

Re: Using Nagios for monitoring NAS4Free servers

Post #4 by alexplatform » 28 Jan 2013 23:24

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.

User avatar
alexey123
Moderator
Moderator
Posts: 1609
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: Using Nagios for monitoring NAS4Free servers

Post #5 by alexey123 » 30 Jan 2013 10:38

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.
Home11.0.0.4 - Sayyadina (revision 4249)/ x64-embedded on SAPPHIRE Pure Mini E350 / 8G RAM / UPS Ippon Back Power Pro 600
Lab 10.2.0.2 - Prescience (revision 2545) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
TEST 11.0.0.4 - Sayyadina (revision 4249) on x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM
TEST1 11.0.0.4 - Pilingitam (revision 4333) bpi-embedded on Allwinner a20 / 1015MiB RAM

alexplatform
Starter
Starter
Posts: 35
Joined: 26 Jun 2012 21:21
Status: Offline

Re: Using Nagios for monitoring NAS4Free servers

Post #6 by alexplatform » 30 Jan 2013 19:02

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.

User avatar
alexey123
Moderator
Moderator
Posts: 1609
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: Using Nagios for monitoring NAS4Free servers

Post #7 by alexey123 » 01 Feb 2013 17:54

Yes, this work under jail! I install php53 because php5 not want install with apache.
Home11.0.0.4 - Sayyadina (revision 4249)/ x64-embedded on SAPPHIRE Pure Mini E350 / 8G RAM / UPS Ippon Back Power Pro 600
Lab 10.2.0.2 - Prescience (revision 2545) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
TEST 11.0.0.4 - Sayyadina (revision 4249) on x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM
TEST1 11.0.0.4 - Pilingitam (revision 4333) bpi-embedded on Allwinner a20 / 1015MiB RAM


Return to “SNMP”

Who is online

Users browsing this forum: No registered users and 1 guest

cron