tag:blogger.com,1999:blog-2579179085246704249.post2370202514003882408..comments2022-11-09T12:02:48.176+01:00Comments on Stefan Daniel Schwarz's Blog: HOWTO: How to install Nagios with check_mk, PNP and NagVisStefanhttp://www.blogger.com/profile/14834303352268277856noreply@blogger.comBlogger25125tag:blogger.com,1999:blog-2579179085246704249.post-68279864672132088392013-10-29T11:26:14.977+01:002013-10-29T11:26:14.977+01:00This tutorial is excelent :) Helped me a lot with ...This tutorial is excelent :) Helped me a lot with just one exeption. For some unknown to me reason i am unable to create any graph. It shows nothing but a blank page /pnp4nagios/graph?host=MY_HOST probably something to do with ownership but i have no clue where it might be :<Anonymoushttps://www.blogger.com/profile/13266205590220981672noreply@blogger.comtag:blogger.com,1999:blog-2579179085246704249.post-7439402705910417142013-04-09T21:23:58.371+02:002013-04-09T21:23:58.371+02:00Thanks for the tutorial works perfectly!Thanks for the tutorial works perfectly!Scotthttps://www.blogger.com/profile/13715743824176149890noreply@blogger.comtag:blogger.com,1999:blog-2579179085246704249.post-43590460100077696702012-07-23T17:00:08.265+02:002012-07-23T17:00:08.265+02:00Hello,
I am running through your tutorial, great ...Hello,<br /><br />I am running through your tutorial, great help, btw. I ran into an issue with pnp4nagios. It says framework error, any ideas?Anonymoushttps://www.blogger.com/profile/17181155191644978689noreply@blogger.comtag:blogger.com,1999:blog-2579179085246704249.post-89893316415520482372012-07-20T14:51:33.734+02:002012-07-20T14:51:33.734+02:00Hello Stefan,
I have a live nagios system up and ...Hello Stefan,<br /><br />I have a live nagios system up and running. I am monitoring windows,printers and linux. But am looking to monitor more things. I came across this tutorial and figured well I'll try it and see how it goes.<br /><br />I came across the part of "sudo sed -i~ "s|/nagios/pnp/index.php?host=\$HOSTNAME\$&srv=\$SERVICEDESC\\$|/pnp4nagios/graph?host=\$HOSTNAME\$\&srv=\$SERVICEDESC\$' class='tips' rel='/pnp4nagios/popup?host=\$HOSTNAME\$\&srv=\$SERVICEDESC\$|;s|/nagios/pnp/index.php?host=\$HOSTNAME\\$|/pnp4nagios/graph?host=\$HOSTNAME\$\&srv=_HOST_' class='tips' rel='/pnp4nagios/popup?host=\$HOSTNAME\$\&srv=_HOST_|" /usr/share/doc/check_mk/check_mk_templates.cfg", <br />I received the error "sed: can't read /usr/share/doc/check_mk/check_mk_templates.cfg: No such file or directory".<br /><br />After checking the directory there is no templates in that directory.<br />I decided I will run the install again this without the --yes option and now I see 2 entries of MK listed on the left frame and it still doesn't find the templates. I am using 1.2.0p1 with nagios 3.4.1 on Ubuntu 12.04.<br /><br />Thanks for any assistanceAnonymoushttps://www.blogger.com/profile/17181155191644978689noreply@blogger.comtag:blogger.com,1999:blog-2579179085246704249.post-41466888947051960622012-06-28T19:41:09.425+02:002012-06-28T19:41:09.425+02:00Stefan,
I think I may have found what I am lookin...Stefan,<br /><br />I think I may have found what I am looking for here:<br /><br />http://mathias-kettner.de/checkmk_multisite_icon_image.html<br /><br />Thank you for your help!Anonymoushttps://www.blogger.com/profile/00979709715081506177noreply@blogger.comtag:blogger.com,1999:blog-2579179085246704249.post-50273680389828085392012-06-28T14:34:53.031+02:002012-06-28T14:34:53.031+02:00This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/00979709715081506177noreply@blogger.comtag:blogger.com,1999:blog-2579179085246704249.post-54596634965210415442012-06-28T00:00:38.492+02:002012-06-28T00:00:38.492+02:00With OMD, you can still configure and use Nagios (...With OMD, you can still configure and use Nagios (or Icinga, or even another monitoring core) like you would in a manual installation - by editing the Nagios configuration files in etc/nagios (within the site directory, not /etc).<br /><br />Instead of that, you could also use check_mk which is much more powerful and at the same time easier to use. You'd edit etc/check_mk/main.mk for that.<br /><br />Or, totally new and amazingly cool, you could use WATO to manage your complete Nagios install with the web interface and without having to edit config files manually.<br /><br />So which approach are you using?Stefanhttps://www.blogger.com/profile/14834303352268277856noreply@blogger.comtag:blogger.com,1999:blog-2579179085246704249.post-57377881717502074662012-06-27T22:06:47.614+02:002012-06-27T22:06:47.614+02:00Hello Stefan,
I have omd up and running. Thank yo...Hello Stefan,<br /><br />I have omd up and running. Thank you for the lead on that! Can you help me find information on how to configure host icons in this distro? There doesn't seem to be much documentation and it is just different enough from the other nagios installs that I cannot seem to find out where to put "icon_image" in any config and have it work. Thanks!Anonymoushttps://www.blogger.com/profile/00979709715081506177noreply@blogger.comtag:blogger.com,1999:blog-2579179085246704249.post-10720755741624217742012-06-08T17:06:06.758+02:002012-06-08T17:06:06.758+02:00Thanks Stefan! I wish I had seen this first! :-) ...Thanks Stefan! I wish I had seen this first! :-) I'm starting over with a clean install of Ubuntu 10.04 and OMD!<br /><br />I have a question if you can help. With the version I was installing (now scratching) I was not successful at monitoring ESXi hosts. The agent returned no information and I could not get xinet installed. Is there any help with how to monitor VMWARE hosts?Anonymoushttps://www.blogger.com/profile/00979709715081506177noreply@blogger.comtag:blogger.com,1999:blog-2579179085246704249.post-37241263641605042072012-06-04T18:32:12.664+02:002012-06-04T18:32:12.664+02:00"alltcp" is no longer necessary, just le..."alltcp" is no longer necessary, just leave it off.<br /><br />Currently the best long-term stable base is probably Ubuntu Server 10.04 ("lucid"). The new LTS release, 12.04, unfortunately disappoints because of various incompatibilities, so I'd stick to the older version for now.<br /><br />Most importantly however, stop following this outdated guide and choose the easy way: Just use OMD, the Open Monitoring Distribution, do check it out here: <a href="http://omdistro.org/" rel="nofollow">http://omdistro.org/</a>Stefanhttps://www.blogger.com/profile/14834303352268277856noreply@blogger.comtag:blogger.com,1999:blog-2579179085246704249.post-1402056567920875922012-06-04T14:35:43.166+02:002012-06-04T14:35:43.166+02:00Thank you so much for the detailed help. Everythin...Thank you so much for the detailed help. Everything went as expected except one thing. I have check_mk version 1.1.12p7. <br /><br />When I run:<br />check_mk -I alltcp<br /><br />I get:<br /><br />Cannot resolve alltcp into IP address.<br />Cannot get information from host 'alltcp': Cannot contact agent: host 'alltcp' has no IP address.<br /><br /><br />Likewise, when I run:<br /><br />check_mk -I tcp<br /><br />I get:<br /><br />Cannot resolve tcp into IP address.<br />Cannot get information from host 'tcp': Cannot contact agent: host 'tcp' has no IP address.<br /><br />In both cases tcp and alltcp are being interpreted as a hostname argument. I ran check_mk --help and do not see the options "tcp' or "alltcp” anywhere. Was this taken out in this version of check_mk perhaps?<br /><br />Following your instructions i installed this on Ubuntu 8.04.4 LTS. Is this still the best distro or would I be better off starting clean with Ubuntu 9.10?<br /><br />Thanks again!<br /><br />-TonyAnonymoushttps://www.blogger.com/profile/00979709715081506177noreply@blogger.comtag:blogger.com,1999:blog-2579179085246704249.post-13088473609070203022010-10-07T01:34:53.121+02:002010-10-07T01:34:53.121+02:00Thanks a lot for this post. Nagios, check_mk and o...Thanks a lot for this post. Nagios, check_mk and other stuff You mentioned are great fun to me and I just cannot wait till I set up complete monitoring system in my enterprise environment.Unknownhttps://www.blogger.com/profile/04609324710960508363noreply@blogger.comtag:blogger.com,1999:blog-2579179085246704249.post-30482127667540270912010-08-05T05:16:03.843+02:002010-08-05T05:16:03.843+02:00Stefan
Great info. I already have a great nagios...Stefan<br /><br />Great info. I already have a great nagios setup and was looking at adding in PNP. I followed your steps and looks like most everything works except when I click the action script a new page is opened instead of opening inside the same frame. The hover over doesn't work aswell. Do you need to have check_mk for the functionally to work? Also by installing check_mk will this damage any of my current nagios configs. Luckly its running in a hyper-v virtual session so it will be easy to backup. Thanks!Davehttps://www.blogger.com/profile/15502924263981611979noreply@blogger.comtag:blogger.com,1999:blog-2579179085246704249.post-38717821219276726942010-07-27T19:26:26.763+02:002010-07-27T19:26:26.763+02:00Hi Stefan
Thanks for the great tutorial. It reall...Hi Stefan<br /><br />Thanks for the great tutorial. It really is pretty easy with such a great explanation. I am just stuck on one thing and i would really appreciate some help if you dont mind.<br /><br />I can see all my hosts but the status is always "DOWN" and the status information always reads "(Return code of 127 is out of bounds - plugin may be missing)". I have searched the web for days trying to find the solution and a lot of forums point to permissions on a "folder" but none of them say which folder or what permissions to give it.<br /><br />Have you seen this before and do you have a solution for my dilema? Cause i am pulling my hair out. <br /><br />Kind Regards<br />BradBazzieBhttps://www.blogger.com/profile/05247040615314653373noreply@blogger.comtag:blogger.com,1999:blog-2579179085246704249.post-76447083409219214092010-06-13T14:00:01.067+02:002010-06-13T14:00:01.067+02:00Then it's as simple as three commands:
wget h...Then it's as simple as three commands:<br /><br />wget http://mathias-kettner.de/download/install_nagios-1.1.4.sh<br /><br />sed -i~ '/Ubuntu/s/9.10/10.04 LTS/;s/9.10/10.04/' install_nagios-1.1.4.sh<br /><br />sudo bash install_nagios-1.1.4.sh<br /><br />Now that's an easy tutorial... :)Stefanhttps://www.blogger.com/profile/14834303352268277856noreply@blogger.comtag:blogger.com,1999:blog-2579179085246704249.post-76995450374756600272010-06-13T12:07:07.329+02:002010-06-13T12:07:07.329+02:00Okay, I've just tested it on Ubuntu 10.04 LTS....Okay, I've just tested it on Ubuntu 10.04 LTS.<br />Have a look "cat /etc/lsb-release"<br /><br />Within the install_nagios.sh change this lines from:<br /><br />lif grep -qi "DISTRIB_DESCRIPTION=\"Ubuntu 9.10\"" /etc/lsb-release 2>&1 >/dev/null<br />then<br /> DISTRO=UBUNTU<br /> DISTRONAME="Ubuntu 9.10"<br /> DISTROVERS=9.10<br /><br />to this:<br /><br />elif grep -qi "DISTRIB_DESCRIPTION=\"Ubuntu 10.04 LTS\"" /etc/lsb-release 2>&1 >/dev/null<br />then<br /> DISTRO=UBUNTU<br /> DISTRONAME="Ubuntu 10.04 LTS"<br /> DISTROVERS=10.04Benhttps://www.blogger.com/profile/04291697151136188554noreply@blogger.comtag:blogger.com,1999:blog-2579179085246704249.post-39998269766485536682010-06-13T11:05:00.588+02:002010-06-13T11:05:00.588+02:00Exactly! However, unfortunately the install_nagios...Exactly! However, unfortunately the install_nagios.sh script is currently only compatible with Ubuntu 9.10.<br /><br />I've been holding off posting more about this until it's compatible with 8.04 LTS and 10.04 LTS. (Personally, I'd much prefer 8.04 LTS support since all of my stable servers at work will stay at that version until 10.04's stability and compatibility have improved - but that's another topic.)<br /><br />Funny: By now, Nagios is more of an addon for check_mk than the other way round. Amazing. :)Stefanhttps://www.blogger.com/profile/14834303352268277856noreply@blogger.comtag:blogger.com,1999:blog-2579179085246704249.post-26649848357558355362010-06-13T10:43:13.575+02:002010-06-13T10:43:13.575+02:00Or much more simple...
1. Download latest check_mk...Or much more simple...<br />1. Download latest check_mk Tarball.<br />2. unpack<br />3. cd into the dir<br />4. sudo ./install_nagios.sh<br />5. wait 10min (depending on internet speed)<br />Finally you've got<br />Nagios 3.2.1, Nagvis 1.4.7, pnp4nagios 0.6, check_mk,<br />and rrd incl. rrd-cache daemon up and running.Benhttps://www.blogger.com/profile/04291697151136188554noreply@blogger.comtag:blogger.com,1999:blog-2579179085246704249.post-60557228316270895422010-06-09T21:56:18.364+02:002010-06-09T21:56:18.364+02:00Thank you so much! This is the only straightforwar...Thank you so much! This is the only straightforward way I found to install pnp. I had modify the process a bit because I installed nagios via the ubuntu package already, but it worked. Also, I would have prefered "edit this file, changing this line" rather than using sed, but, regardless, it did the trick! Once again, I thank you greatly!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2579179085246704249.post-49947542262313429682010-04-30T11:49:01.594+02:002010-04-30T11:49:01.594+02:00I'm glad I could help!
On hosts where you ins...I'm glad I could help!<br /><br />On hosts where you installed the Linux agent to have them monitored, it suffices to open port 6556, TCP. If you're using Ubuntu's ufw firewall interface, you can use this command:<br /><br />sudo ufw allow 6556/tcp<br /><br />It's a good idea to restrict which IP addresses are allowed to connect in /etc/xinetd.d/check_mk ("only_from"). Restart xinetd afterwards.<br /><br />For even more security, use SSH instead of xinetd. Check out the "Datasource programs" section of the check_mk documentation for detailed instructions.Stefanhttps://www.blogger.com/profile/14834303352268277856noreply@blogger.comtag:blogger.com,1999:blog-2579179085246704249.post-67041877269249916042010-04-30T06:27:51.600+02:002010-04-30T06:27:51.600+02:00Stefan, I'm a newbie to Nagios after only a we...Stefan, I'm a newbie to Nagios after only a week or so, but you have made my WEEK! Your tutorial is brilliant!<br /><br />Now I just need to dig a bit after my 15 minute install/testflight and see what ports I have to open for check_mk over the 'net. Literally, with your instructions, 15 minutes from bare Nagios to monitoring localhost and a Windows box that's separate. You are awesome.<br /><br />Regards from a long-time Windows Sysadmin who is rapidly bailing wherever possible while still trying to maintain a decent standard of living...Unknownhttps://www.blogger.com/profile/11027558696432071204noreply@blogger.comtag:blogger.com,1999:blog-2579179085246704249.post-1539384624831319522010-04-21T00:09:40.965+02:002010-04-21T00:09:40.965+02:00Are you sure you followed every step properly? The...Are you sure you followed every step properly? The instructions were written for Check_MK v1.1.0 which only included support for PNP v0.4.x. That's why there's a (pretty long) sed command to rewrite the check_mk_templates.cfg, pretty much the same as you did manually.<br /><br />By the way, Check_MK is now at version 1.1.3. I didn't have time to update the whole HOWTO yet, but since it's mostly just a matter of downloading the latest versions instead of the ones I used here, it shouldn't be much of a problem.<br /><br />With the latest Check_MK updates, this whole guide is becoming obsolete very quickly since the amazing Mathias Kettner is now including an install script which does all of this and more automatically! The only drawback right now is that it only supports Ubuntu 9.10 (among a few other select Linux distros) - but I'm hopeful he'll update it for 10.04 LTS once it's released. I'll write some more about it another time, it's truly awesome!Stefanhttps://www.blogger.com/profile/14834303352268277856noreply@blogger.comtag:blogger.com,1999:blog-2579179085246704249.post-70364623129799285852010-04-20T23:10:03.343+02:002010-04-20T23:10:03.343+02:00Thank you for your answer. I just used the PNP par...Thank you for your answer. I just used the PNP part in my first try. But now I tried the hole tutorial. I had some difficulties in doing it. I had to modify /usr/local/nagios/etc/check_mk.d/check_mk_templates.cfg<br />action_URL /nagios/pnp to /pnp4nagios further I had to create the /var/log/nagios/rw folder with ownership nagios:nagcmd. Now everything is working properly.Unknownhttps://www.blogger.com/profile/07400546265041261931noreply@blogger.comtag:blogger.com,1999:blog-2579179085246704249.post-83626606822750127762010-04-19T13:22:20.873+02:002010-04-19T13:22:20.873+02:00Hi Philipp, thanks for your comment.
Check_MK by ...Hi Philipp, thanks for your comment.<br /><br />Check_MK by default already includes this functionality as an "action_url". When both Check_MK and PNP4Nagios are installed, it works out-of-the-box.<br /><br />See ya!<br />-- StefanStefanhttps://www.blogger.com/profile/14834303352268277856noreply@blogger.comtag:blogger.com,1999:blog-2579179085246704249.post-83638700735709701512010-04-19T12:14:32.441+02:002010-04-19T12:14:32.441+02:00Hi Stefan, I really appreciate your tutorial. What...Hi Stefan, I really appreciate your tutorial. What I like to suggest is to modify the templates.cfg with an further entry:<br /><br />notes_url /pnp4nagios/graph?host=$HOSTNAME$<br /><br />Now, after every host appears an additional Icon with a direct link to the statistics.<br /><br />Best Regards,<br />PhilippUnknownhttps://www.blogger.com/profile/07400546265041261931noreply@blogger.com