NagiosPi – Server Monitoring With The Power of Pi

NagiosPi is a lightweight, feature rich & fully configured Server Monitoring Distro for the Raspberry Pi. The Image contains Nagios Core, The Nconf front-end to easily edit hosts and configurations, Nagvis to translate your network health into an easy to read visual heads-up display & finally RaspControl to keep a close eye on Raspberry Pi Stats! While I have yet to test out the performance of NagiosPi in larger environments… I’m really optimistic about the general performance of the Image, as website response times are every-bit as fast as the Last Nagios Image I’ve done.  In fact, since we are using Nconf and Make-livestatus to interact with Nagios – Response times have been fantastic. If you wish to contribute (ideas or time) to the image, Please leave me a comment below or feel free to E-mail me directly via my Contact page. ~Enjoy.


Download NagiosPi:

You can download v2.2 of NagiosPi  HERE.


Installing NagiosPi:

  1. Download Win32DiskImager
  2. Write image to SD Card. (4gb+)
  3. After initial Boot-up, Run “Sudo raspi-config” to expand the file system.


About The Image:

  • SSH = pi/raspberry
  • Overclocked to “Medium” Setting
  • NagiosPi Landing Page:  http://Rasp_Ipaddres

This slideshow requires JavaScript.


For anyone interested in the details of my build, I’ve documented my entire process step-by-step…

[learn_more caption=”Getting Ready…”]

1.) Burn the latest image of Raspbian Wheezy to your SD card.

2.) Expand your File-system and customize.


3.) Let’s get up to date.


[/learn_more][learn_more caption=”Installing PHPmyadmin”]


1.) Install the MySQL DB

password: nagiosadmin


2.) Install phpmyadmin.

Choose apache when prompted.

When you are prompted again to configure DB via dbconfig – select yes.
password: nagiosadmin


4.) Next we need to alter the Apache configuration to include PHPmyadmin.

Scroll to very bottom of the file and add the following line:

Include /etc/phpmyadmin/apache.conf

Save the file. ( Ctrl + X  > Then Y to confirm )


5.) Now just restart the pache service:


6.) Now you should be able to access your MySQL database by accessing:


User: root
Pass: nagiosadmin

[/learn_more][learn_more caption=”Installing Nagios3″]


1.) Install Nagios3

password: nagiosadmin

2.) Install NRPE plugin (optional)


[/learn_more][learn_more caption=”Installing Nconf”]


1.) Download & Extract Nconf  v1.3.0

While we’re at it, Lets give apache permission to the /var/www/nconf directory:


2.) Before we begin installing Nconf, We’ll need to go login to PHPmyadmin and create the required Nconf database and user:

  • Browse to: http://NagiosPi/phpmyadmin
    User: root
    Pass: nagiosadmin
  • Privileges > Add a new user
    User name:  nconf
    Host:             localhost
    Password:    nagiosadmin
  • Check the radio button to “Create database with same name”
  • Finally, Set the User permissions as shown in the screenshot below.
  • Click: Go to finish.


Then Browse to  http://NagiosPi/nconf


3.) Most of this install is going to be just clicking the next button. However you will need to make one important change on Step 2 of the install process. This change has been highlighted in the screenshot below.



4.) After Nconf installs, You will be prompted to delete the Update & Install files:


5.) Now we need to tell Nagios to use Nconf config files.

We will want to comment out any lines that begin with cfg_dir or cfg_file.

Then add the 2 following lines:


Exit & Save.


6.)  Create the needed folders for our Nagios config files and set the appropriate permissions:


7.) Now we need to configure our deployment.ini file.

Un-comment and edit the following 3 sections where highlighted.


Save & Exit.


8.) In order for our Apache web user to issue the Nagios reload command using sudo, We’ll need to edit the sudoers file and give www-data rights.

Then we add the following line to the end of the file:

# Allow www-data (apache) user to reload nagios
www-data ALL=NOPASSWD: /etc/init.d/nagios3 reload

Save & Exit. Then Reboot.


9.) Finally, After the reboot. We can test our Nconf install.

  • Browse to:  http://NagiosPi/Nconf
  • Make any quick change to the config ( add a host, service, edit a setting )
  • Click:  “Generate Nagios Config”
  • If there are no errors, You will have the option to Deploy the new Nagios Config.



[/learn_more][learn_more caption=”Installing Mk-LiveStatus & Nagvis”]


1.) Install Mk-LiveStatus & Nagvis Requirements


2.) Set the appropriate permissions for use later.


3.) Configure Nagios to use MK Livestatus.

Add the following to the end of the file:


4.) After Nagios is restarted, the socket should be in place:

Restart Nagios:

To verify:

You should see a file called Live.sock.


5.) This will be our last step before we start installing Nagvis. Here we want to set the proper permissions for Nagvis to be able to access our Live.sock file we created earlier.


6.) Download & Extract Nagvis:


7.) Then to Start the Install:

I’ve included a screenshot of my responses to the install script to make this section easier to follow. Here are the 4 major prompts you will want to keep an eye on….

  1. Nagios Base Path: /etc/nagios3
  2. Nagvis Base Path: /etc/nagvis
  3. Use Make-LiveStatus:  Yes
  4. Make-LiveStatus Socket:  Unix:/var/lib/nagios3/rw/live.sock



8.) After the install is complete, You will need to reboot Apache:


9.) Finally, run the following commands to fix nagvis permissions.



10.) When you are done, you should be able to access Nagvis.


User: admin
Pass: admin



[/learn_more][learn_more caption=”Installing RaspControl”]


**Nothing special Here, Great directions for installing RaspControl are on their GitHub Page.


Image Change Log:

NagiosPi – v1.0

  • Installed & Configured Nagios, Nconf & Nagvis
  • Created NagiosPi Landing Page
  • Set hostname to “NagiosPi”
  • Installed PHPmyadmin
  • Installed RaspControl

NagiosPi – v1.1

  • Fix RaspControl Logo on Landing Page
  • Setup/Configure Postfix
  • Fixed notify-by-mail command paths

NagiosPi – v2.0

  • Misc. configuration & permission fixes

NagiosPi – v2.1

  • Misc. configuration & permission fixes

NagiosPi – v2.2

  • Fixed permission issues with Nagvis
  • Updated image to be compatible with latest models of the Raspberry Pi
  • Reduced image size


Additional Information:


Configuring E-mail Notifications(internal)

**Please note that you will have to make these changes manually as described below until v1.1 is released!


1.) Install PostFix:



2.) Now we should be able to send a test e-mail internally.


If you are getting IPv6 disabled messages every time you try to send a test email, You can
force postfix to use ipv4 to avoid getting these spammy messages.


#Add this Line to EOF
inet_protocols = ipv4


3.) At this point you should be able to successfully send e-mail via postfix. Next we will want to make sure that Nagios can send successful notifications as well. The first thing we will need to do, Is fix the mail path command used by Nconf.

  • Misc Commands > modify hosts-via-email > Edit

Change the listed command to:

**The important change here is that we change the “/bin/mail” path to “/usr/bin/mail“.


4.) That really should be all it takes. I would go ahead and  setup a test host within Nconf and deploy it to Nagios to make sure that E-mail Notifications are indeed working properly. By default there is a example alert for linksys-srw224p which should throw a failure alert every 1/2 hour as well. It’s probably a good idea to go ahead and remove this alert once you’ve figured out that E-mail notifications are indeed working 😀


**Check out the next section to easily setup SMS notifications.

Configuring SMS Notifications

Each major cell phone carrier is able to translate an e-mail to an SMS message when given the proper format from a trusted source. Now all we need to do is create an external user in Active Directory for each person that needs to be notified via SMS, using the following E-mail formats.

  • Verizon:   
  • AT&T:        
  • US Cellular:
  • Sprint:       


You then add each team member to a Distribution group – and Setup Alerts to be sent to that distribution group, just as you would send out an e-mail Alert.

Improving Performance

Here are few ways you can try to improve the performance of your NagiosPi image…

1.) OverClock

Overclocking within sudo raspi-config is directly supported by the Raspberry Pi foundation, however you should be warned that pushing your overclocking settings too far may result in corruption of your SD card image. Always create a backup of your SD card image if you decide to try any setting above “meduim”.


2.) Change mem-split

Basically what we are doing by setting memsplit to a value of 16, is telling the raspberry Pi that we are operating a headless unit here. ( no monitor ) And it should be allocating as little ram as possible to our Pis graphics.


3.) Get a approved Class 10 SD card. You can find the approved list of SD cards @


4.) Un-install any additional software. If you simply aren’t using PHPmyadmin, RaspControl or Nagvis – You can remove them to reduce some of the CPU load on your Raspberry Pi unit.



  • Pingback: Nagios(FAN) – A Beginners Guide | EveryDay-Tech.Com()

  • Александр Беккер

    Thanks so much for NagiosPi! It’s very helpfull!

    • You’re very welcome – Glad you found it helpful.

      • Александр Беккер

        Ryan, Is it possible to install Thruk on your NagiosPI?
        I found the assembly OMD (he’s already pre-installed), but I am having problems installing it nConf
        Thanks in advance for your reply

        • Thruk? Yea I’m sure it’s possible. Haven’t done it before though..

          OMD is a great distro 🙂 If you like that, I’d suggest checking out Adagios.

          • Александр Беккер

            Your assembly is completely satisfied me in everything, but I would like to install Thruk, because of the possibility of generating graphs with it.
            I would be very grateful if you could help me with the installation Thruk?

            • I’ll look into it – but I have a big project I’m working on currently…perhaps in 2 weeks when it’s over I’ll be able to look at Thruk.

              • If you don’t feel like waiting..I’d suggest starting here:

              • Александр Беккер

                Thank’s, I’ll try 🙂 if anything, I’ll wait!
                thank you! Good luck with the project!

              • Александр Беккер

                Hi, Ryan! How is your project? Do you have the spare time? Could you help me with the installation Thruk on your Nagios P? 🙂

              • nearly done 🙂 I’ll put this on my to do list for this weekend.

              • nearly done 🙂 I’ll put this on my to do list for this weekend!

              • Александр Беккер

                It’s great. very much hope that will fix it!

              • Александр Беккер

                You have not looked Thruk? Does it happen to include in your NagiosPI?

              • Thruk install from source documentation can be found here:

                I’ve decided that it is simply to involved / time consuming to add thruk to NagiosPi, that and it will consume more resources on an already resource starved build. Plus their documentation/setup process is really involved…. I simply don’t have the time to troubleshoot the install and test right now.

                Best of luck~

  • Malcolm

    HI Ryan – great idea well done! I was going to build the same stack onto my Pi but then spotted your efforts here already…. I’m having problems with the image however, downloads, unzips to a .img, wrote the image to SD card on both windows and Mac and every time, the Pi fails to boot the image.
    Have you tested the image on the B+ ?

    • I have not gotten a chance to try it on the b+, but I would imagine it should still work all the same…. What size sd card are u using? Did u expand filesystem?

      • Malcolm

        8GB I think it is. Can’t get to expand filesystem, it doesn’t boot at all, just red lights on Pi IIRC.

        • Re-image, it should at least boot.

          • Peter

            Just got the same problem. Download, unpacked, wrote to SD, pluged in the SD in a B+..and got red and green and after half a second red light only. No Screen output. Did this several times always with same results. Anyone tested the image with a B+?

            • Malcolm

              Peter – did you ever solve this?
              Looking to revisit the project with the new quad core Pi release!!

              • Unfortunately not – I just don’t have the time to rebuild the image at the moment with all the new projects i’m taking on. If you follow the build instructions it should work just fine on the new Raspberry PI models though 🙂

              • Yanig

                Did you solve this ? I have same problem !!

              • Yes – NagiosPi has been updated to work with the newer models of the RaspberryPi.

  • jon

    Hi Ryan

    this seems just what i am after as i was looking to install nagios onto my raspberry pi to monitor networked printers at work. is there anything i need to know when i do this?


    • Well… having some experience with Nagios will definitely help – But everything you need to get started should be on this project page 🙂

  • Mono

    Hi Ryan,

    This look great! I’m really unwilling to overclock my Raspberry Pi. Any chance of image without the medium settings?


    • I really wouldn’t worry about the slight overclocking on the Pi to be honest – but if you feel strongly about it you can run “sudo raspi-config” and tone down the overclocking yourself.

  • Andy

    Hi Ryan,

    My NagiosPi does not appear to be sending notifications? it looks as though postfix is installed, and I have set my email address but nothing is received when sending a test email using;
    echo “hello there” | /usr/bin/mail -s subject
    Any pointers for this?

    • Are you sending e-mails internally or externally?

      If it is the latter, It will require some additional configuration. (IE – Gmail )

    • Arshad


      If you need help setting up email client on RasPi , i would recommend SSMTP instead of Postfix. You can find more info about the setting up the same on


  • RictusGrin

    Wow! This is great! I just installed the image, plugged it in, and boom. It’s up via HTTP! But, what is the default password for RaspControl? I tried a bunch of stuff including my root but that didn’t work.

    Also, what is the default password for NagVis?

  • PietjeNL

    Got error at copy collector config and copy global config.
    I was missing rights for for /etc/nagios3/global and mkdir /etc/nagios3/Default_collector for www-data user.

    Fixed it with this:
    sudo chown -R www-data:www-data /etc/nagios3/global
    sudo chown -R www-data:www-data /etc/nagios3/Default_collector

    • Thanks for sharing PietejeNL! This fix has been rolled into the latest update.

  • Mike D

    Hmm… I can’t seem to get the keyboard to work, I’ve tried multiple keyboards and nothing works. It’s a model b+, perhaps that’s causing some problems? I’ve reimaged it once already, I had to force HDMI to safe mode, and it seems to boot up fine and sits at the login, but I can’t move on from here. Any suggestions?

    • asdf

      username: pi
      password: raspberry

  • Jamie McCallum

    Not sure if this is even still monitored. I do hope so though. Getting a couple of errors when trying to deploy my config.

    PHP copy:FAILEDrecursive copy(/tmp/Default_collector/, /etc/nagios3/Default_collector/)

    PHP copy:FAILEDrecursive copy(/tmp/global/, /etc/nagios3/global/)

    Any Advice?

    • Hey Jamie,

      Yea I still keep tabs on all my posts 🙂 I’ll try to get this sorted out this weekend. In the meantime, I would try PietjeNL’s solution posted below:

      sudo chown -R www-data:www-data /etc/nagios3/global
      sudo chown -R www-data:www-data /etc/nagios3/Default_collector

      Please let me know if that fixes it for you!

      • Can you share the steps you took to create that error so I can troubleshoot?

        • Jamie McCallum

          So just to mention I never used the image. I put raspbian on my Pi v2 (new 2015 one)
          Just followed your steps as mentioned above. Everything installs fine just this one error. I followed everything as mentioned step by step.

          • Ahh.. Good to know! I was going to say I thought I fixed these issues in the image…

            To be honest Jamie – I’m not entirely sure, if I had to guess I think it has something to do with the sudoers file…It’s been awhile since I looked at this project. For what it’s worth it should work in the image…

            • JasonP

              I had that issue from copying and pasting from the step-by-step. Installing nconf, part of step 8 – This has to be 2 lines but is only shown as one line above.

              # Allow www-data (apache) user to reload nagios
              www-data ALL=NOPASSWD: /etc/init.d/nagios3 reload

              • André Cardoso

                I can confirm the solution for this error. Thank you JasonP!

        • Jamie McCallum

          Just made the changes as mentioned and trying now

        • Jamie McCallum

          Ok that seemed to have fixed the initial error. Now I have this error.

          system callFAILEDsudo /etc/init.d/nagios3 reloadsudo: no tty present and no askpass program specified

          Happens when again I try to deploy the config from nconf

          • Jamie McCallum


            • Here is the Nconf FAQ where the prupose a fix for this error:

              Let me know if that works for you^

              • Jamie McCallum

                I’m going to assume i’m editing the deployment.ini file for this fix? It doesn’t actually say anywhere :/

              • Jamie McCallum

                Just to go a bit further on this it looks like that even though this error exists. It still deploys the configuration file. I can see my hosts I have added and all looks to be working fine. I just need to manually restart nagios myself.

                Thanks for the tutorial and help. 🙂

      • Jamie McCallum

        Just to confirm also is this the correct way to do the nano /etc/nagios3/nagios.cfg file ? Just when you said “We will want to comment out any lines that begin with cfg_dir or cfg_file”

        Just want to make sure I understood.

        • That is correct – but you also have to add the 2 cfg lines detailed in the post^

  • eStark

    I have an issue deploying the config:

    Generate config log:

    [INFO] Starting generate_config script
    [INFO] Generating global config files
    [INFO] Generating config for Nagios-collector ‘Default Nagios’
    [INFO] Ended generate_config script

    Running syntax check:

    Default_collectorError generating config

    ErrorDeployment not possible due to errors in configuration.

    Can you explain what I’ve missed in my config?

    • eStark

      Sorry. Very new at Nagios. Here are the details from NConf when I try to add a monitored windows host:

      Nagios Core 3.4.1
      Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors
      Copyright (c) 1999-2009 Ethan Galstad
      Last Modified: 05-11-2012
      License: GPL

      Reading configuration data…
      Read main config file okay…
      Processing object config file ‘/var/www/nconf/temp/global/timeperiods.cfg’…
      Processing object config file ‘/var/www/nconf/temp/global/contacts.cfg’…
      Processing object config file ‘/var/www/nconf/temp/global/misccommands.cfg’…
      Processing object config file ‘/var/www/nconf/temp/global/checkcommands.cfg’…
      Processing object config file ‘/var/www/nconf/temp/global/host_templates.cfg’…
      Processing object config file ‘/var/www/nconf/temp/global/service_templates.cfg’…
      Processing object config file ‘/var/www/nconf/temp/global/contactgroups.cfg’…
      Processing object config file ‘/var/www/nconf/temp/Default_collector/service_dependencies.cfg’…
      Processing object config file ‘/var/www/nconf/temp/Default_collector/host_dependencies.cfg’…
      Processing object config file ‘/var/www/nconf/temp/Default_collector/advanced_services.cfg’…
      Processing object config file ‘/var/www/nconf/temp/Default_collector/servicegroups.cfg’…
      Processing object config file ‘/var/www/nconf/temp/Default_collector/services.cfg’…
      Processing object config file ‘/var/www/nconf/temp/Default_collector/hosts.cfg’…
      Processing object config file ‘/var/www/nconf/temp/Default_collector/hostgroups.cfg’…
      Processing object config directory ‘/var/www/nconf/static_cfg’…
      Error: Invalid max_attempts, check_interval, retry_interval, or notification_interval value for service ‘check_local_procs’ on host ‘NETBOOK’
      Error: Could not register service (config file ‘/var/www/nconf/temp/Default_collector/services.cfg’, starting on line 48)
      Error processing object config files!

      Folder Default_collector does not exist on my PI.

      If I select “Not monitored” the config works.

      Any help is appreciated

      • I’ll take a look at it this weekend.

        • Lupita Uscanga

          Hi Ryan, i have the same error, can you help me?

          • This should be fixed in the newest version^

  • paulwebster

    Thanks for the detailed instructions on how to do this.

    I have been working through them but was having a problem with this step.

    “Add the following to the end of the file:

    #### mk-livestatus config broker_module=/usr/lib/check_mk/livestatus.o /var/lib/nagios3/rw/live.sock

    I finally realised that this should be split into 3 lines … I did think it was odd to have what appeared to be a comment having real live config data in it but that sort of thing does occasionally happen.

    After splitting it into
    #### mk-livestatus config
    broker_module=/usr/lib/check_mk/livestatus.o /var/lib/nagios3/rw/live.sock

    and restarting Nagios i had the .sock file appearing.
    now to the next steps …

  • Gino

    Hi Ryan first of all thank you for this Tech it work totally fine, but the I got 1 problem, I’m unable to login to Raspcontrol, I tried all the passwords but no success. Can you help me with this ? or do I have to reinstall Raspcontrol to put in a pwd of me own? Thanks Gino

    • Gino

      Oooowkay found it 😀

      • ELWIS

        Can U Please post the solution you found. I Got the same problem.
        Thank you in advance.

        • RaspControl works out of the box ( just tested it) – Login = admin/nagiosadmin

  • Jan Pollet

    Can you upgrade nagiospi from version 1.0 to 1.1? or is it reinstall?

    • I’m afraid it’s either re-install or follow the build instructions currently.

  • Rodrigo Araújo Cavalcante

    HI, I can’t download by google Drive 🙁 another link please 🙂

  • Ray Prettyman

    When i Click Generate Nagios Config I get

    Error accessing or executing Nagios / Icinga binary ‘/usr/sbin/nagios’

    I believe this is due to a typo. but i cannot find a place to change this.

    • rg33

      Are you using nagios or nagios3?

      $ ls /usr/sbin/nagios*

      Looks like you can edit nconf/config/nconf.php NAGIOS_BIN if needed.

      • Just FYI for anyone that is new to the image – This should be fixed in the latest version 🙂

  • Jeremy

    Hello Ryan

    Sorry for my english, it is not my nativ language.

    Thanks for your post it has been more than helpful

    I set up your image on my raspberry. So far everything work except the link between nagvis and nagios.

    When i try to add an host i get :

    “Unable to fetch data from backend – falling back to input field”

    My guess was an issue from the right but i did not find anything strange.

    Any idea ?

    Many thanks,

    • Sorry it took me so long to get back to you – I’m looking into this problem right now.

      • Just found this…Looks like a promising fix:

        “Permissions on /var/lib/nagios3/rw was bad, the group nagios had no rights ! So, I give 770 permission avec it’s good !”

        • Here is the fix:

          sudo /etc/init.d/nagios3 stop
          sudo dpkg-statoverride –update –add nagios www-data 2710 /var/lib/nagios3/rw
          sudo dpkg-statoverride –update –add nagios nagios 751 /var/lib/nagios3
          sudo /etc/init.d/nagios3 start

          Will apply to next update.

          • Jérémy

            Hi Ryan !
            Thanks for the answer. Lot of great stuff on your website.
            Take care

  • K_i_l_g_o_r_e_T_r_o_u_t

    I’m helping my 72 year old mom troubleshoot intermittent network issues from 400 miles away (it’s impossible to determine if it’s a router/wireless issue or a modem/provider issue) so I thought I’d see if there was a way to implement a network monitor on Raspberry Pi and I came across your post! Setting this up was dead simple. Once I’ve mapped her network I’m going to pop this it in the mail and let it do the hard part. 🙂

    Anyway, thank you bunches!!! You’re saving me a lot of effort and hair pulling!

    • Thanks for taking the time to share your story Kilgore 🙂 Glad to hear you found this image helpful!

  • JasonP

    had an issue with the image acknowledging problems. “Sorry, but Nagios is currently not checking for external commands” was the error coming up. had to change a bit of /etc/nagios3/nagios.cfg from “check_external_commands=0” to “check_external_commands=1”
    Awesome image though. I didn’t think the Pi 1 model b would have the horsepower to push it all, but it does.

  • Adesfire

    Hello, first of all thank you for your work, it’s great!
    But I have a issue with notifications. NagiosPi try to send notifications to a contact that no longer exists (nagios@nagiosPi) as he did not send to the contacts I have created! So I feel that there is a big issue here …. what can i do?

  • Luke Frost

    Good Afternoon All,

    I have just downloaded and configured NasiosPi and its brilliant. I am however having a few issues when adding new hosts to it. When i click on the Generate Naigos Config i get the following error Deployment not possible due to errors in configuration. Any ideas as to what’s going wrong?

    Thanks in advanced

  • Parkan


    A great article.

    However, I have been through the install process 3 times now and still get the same issue, being unable to access nconf via the browser. I get the following message.

    The requested URL /nconf/ was not found on this server.
    Apache/2.4.10 (Raspbian) Server at Port 80

    I am using a R-Pi 2 with Jessie. Gone through udate and upgrade.

    phpmyadmin works and I have been able to create the user and the database, granting the necessary privileges to the nconf db.

    Privileges for /var/www/nconf is www-data:www-data (although I did find that the nconf.php file was still at root:root – I did change this but no difference).

    Would appear at 1st glance to be an apache issue but could be wrong. There were no errors in the install process.

    Any ideas?


    • Parkan

      Ok, I tried something else tonight. It appears that Apache does not recognise the url http://pi/nconf
      directly after install. So I created a directory, /var/www/html/nconf, and copied the nconf files to this directory.
      Sure enough, I am now able to browse to http://pi/nconf and run the setup program.
      So has something changed in this version of the R-Pi OS (i.e. Jessie)? or apache?
      Or have I missed something?

  • Thomas Zimmermann

    Hi, thanks for the good work!
    One problem though: I am following this guide with a RasPi 2 and Jessie. Everything worked out great except the last point for nagvis. it always says “404 not found”. And if I link the /etc/apache2/nagvis.conf to /etc/apache2/conf-enabled/nagvis.conf I get “forbidden”.
    Am I missing something?

    Regards,Thomas from Germany

  • André Cardoso

    Really nice work! Any chance of a new release using the Raspbian Jessie as the base system? And/or a version optimized to the new Raspberry Pi 3? Thanks!

  • André Cardoso

    For who with problems to add nconf to apache2, just do this BEFORE nconf configuration item 2:

    sudo nano /etc/apache2/apache2.conf

    Add the following code:

    Alias /nconf “/var/www/nconf/”

    Order allow,deny
    Allow from all
    Require all granted

  • Michael

    Hi Ryan,

    this looks like just what I was looking for to start experimenting with nagios!
    Just curious: Where does this nagios bundle write its collected events?
    Is it relatively trivial to reconfigure it to use a remote mysql db in order to increase the local sd-card’s life expectancy?


  • shonyx

    Any plans in updating the core to 4?

  • Martin

    It doesn’t seem to work on raspberry pi 3. Just got a rainbow screen on startup. 🙁 Any plans on updating the package to make it work on RP3?

  • Ben Hall

    Great image and working really well for me; just wondered though as someone else has asked, if you plan to update it to v4 at all?

  • David Bailey


    I’m currently running NagiosPi v1.0. Does anyone know the easiest way to update to v2.2?

  • Stephan P.

    I run your distribution with around 30 hosts in a mixed environment. Its a real beauty and a performer aswell.
    I have managed to integrate Hwg hardware boxes for both offline SMS gateway and temperature and RH% monitoring aswell.

    For above to happen i have had to add advanced services and commands due to the relying of the nconf. In other setups where i dont use nconf it would another way to do it.

    Just shows that it works very well indeed =)

    I would very much wish for a version 4 =) id even give you beer and food if ever get to Denmark. I do run other nagios servers both Virtualized and physical servers versioning from 2-4 and your appliance rocks so much !

    Best regards from Denmark

    • Thanks Stephen! Glad to hear it’s been working well for you with all those hosts 🙂 Life has been pretty crazy lately but i’ll put upgrading the image on the ol’ to do list.

      If i’m ever in Denmark, I’ll definitely take you up on that beer 🙂

  • dickinsonjl

    Very handy guide! I decided to configure from scratch, one thing is my default apache webroot on my copy of raspbian is:

    -So may need to tweak the path when copying into this folder etc.

    Also, I came across an issue when I clicked “Generate Nagios config”:


    Error accessing or executing Nagios / Icinga binary ‘/var/www/html/nconf/bin/nagios’.

    Cannot run the mandatory syntax check.

    It needs to run the nagios binary, so I soft-linked the binary to the location it was trying to execute, to fix:

    sudo ln -s /usr/sbin/nagios3 /var/www/html/nconf/bin/nagios

  • Wafi

    Hello, I am trying this image on a RPi 3 and if I power it up, it freezes at the colored splash screen. Is there a problem with this kernel and RPi 3?

    • The image hasn’t been updated for V3 yet.

      To update it you’ll have to throw it on a v2 pi, run the usual sudo apt-get update && apt-get upgrade and perhaps upgrade the firmware as well. ( sudo rpi-update i believe)

      • Wafi

        Thank you very much for your quick reply. Unfortunately I dont have a v2 pi. So is there a chance in the near future that this image will be updated for v3?

        • C’mon Ryan, tell them about NEMS (or upgrade NagiosPi) 🙂

          • I’d love to upgrade NagiosPi, but i don’t have ability to make a GUI that can beat that of NEMS. I strongly feel that it has always been a necessary addition to NagiosPi and NEMS was able to deliver what is essentially an updated and improved version of NagiosPi. No reason not to start using NEMS for the time being. Nice work Robbie!


            For Reference:

            • Kind words, thanks man. Fact is NEMS wouldn’t exist without NagiosPi and all the hard work you did. So I consider it more of a continuation than a replacement. It has a lot of your love and hard work in it.

              NEMS 1.1 comes out this Sunday (November 13) so I highly recommend getting a copy of that.

              • Look forward to it. Will definitely download a copy on Sunday!

              • Hey Ryan, hope you’ve been well! Just a note that NEMS 1.2 is being released this weekend and has direct support for upgrading from nagiospi while maintaining settings. Please see

                Thank you for all you did with nagiospi. I’ll always give you credit for all you contributed, and hope you and your community love what I’ve been doing with NEMS.

                NEMS 1.2 is based on Debian Stretch and I’ve custom-built nConf now so it’s no longer a dead project.

                NEMS is found at

                Please feel free to link back to NEMS if you like, and I’d still be honored to have you join me on my TV show sometime to talk about the legacy of nagiospi.

              • Thanks for the update Robbie!

                It’s great to hear that you are continually improving NEMS 🙂 I actually have a fairly large list of security updates and qaulity of life improvements i’ve made to NagiosPi/NEMS recently that might be worth discussing.

                Things like:
                -Setting up WMI check commands
                -Setting up pre-configured commands/alerts in nConf as templates
                -Updating Apache
                -SSL Cipher & TLS Hardening
                -PostFix Cipher Hardening
                -Enable UFW Firewall
                -USB Temp sensor documentation
                -Service restart scripts
                -Adding SSL certs documentation
                -etc, etc

                I don’t know how well I’d do in front of a live audience, but I’d be happy to join you on your show anytime.


              • That’s wonderful! Are these improvements just something on your own Pi? I didn’t see a new nagiospi build so figured it was abandoned. Or are you now running NEMS yourself? Would love to have you over on the NEMS site making suggestions in the comments. I take suggestions very seriously and do a lot of work making things operate the way the community would like. Your collaboration would be quite welcome.

                Re. my show, we do a live broadcast demo with each release of NEMS, so you could get in on the 1.2 release show if you’re available. Email to touch base and we’ll coordinate.


              • I think i cut over to NEMS 1.1 with those improvements. (can’t beat that UI!)

                I’ve documented everything though, so it should be easy enough to add it to the next release if you are so inclined.

                I’ll shoot you an e-mail here shortly.


              • Nice! 1.2 is already in RC2 and about to be frozen. There’s still 2 days though, and I’m not opposed to going to RC3 before Thursday. If you’d like, email me the docs and I’ll see if any of your features can get in before it freezes.

                Since you basically built the original foundation of NEMS, if you are going to contribute moving forward I think it would be right come up with an official designation for you. Let me know your thoughts.

                PS – If you like the UI of NEMS 1.1, you’re gonna love 1.2.

      • Timothy Seibert

        I’m testing this out today!
        I’ll report my results shortly.

      • Timothy Seibert

        Took roughly 30 minutes for the whole process and it worked like a well oiled machine!
        Thank you for the hard work you put into this image it has been a LIFESAVER!

        • Awesome 🙂 Glad to hear it Timothy!

          • Timothy Seibert

            I’m having trouble finding where to configure email alerts.
            Any chance you can point me in the right direction?

  • Maurice S

    As Nagios doesn’t need X11 it looks like, a better (and much smaller) base image would be to use Minibian:

Pin It on Pinterest