Re: [Nagios-users] Need help
Been using nagios since 1.0, and I think the methodology has shifted a little, but I am still old skool. I finally got Nagios working and into the web panel. Excellent! :-) Now, how on earth do I ADD new services to monitor??? In your nagios implementation there should be a series of config files underneath the etc directory. In there will be something called nagios.cfg. There will be a bunch of config files specified thus: cfg_file=/usr/local/nagios/etc/contactgroups.cfg cfg_file=/usr/local/nagios/etc/contacts.cfg cfg_file=/usr/local/nagios/etc/dependencies.cfg cfg_file=/usr/local/nagios/etc/escalations.cfg cfg_file=/usr/local/nagios/etc/hostgroups.cfg cfg_file=/usr/local/nagios/etc/hosts.cfg cfg_file=/usr/local/nagios/etc/services.cfg cfg_file=/usr/local/nagios/etc/timeperiods.cfg These files are what you use to configure nagios. In the hosts file you can specify a host like this: # 'SydInt01' host definition define host{ use generic-host; Name of host template to use host_name SydInt01 alias SydB2 address 172.30.20.244 check_command check-host-alive max_check_attempts 10 notification_interval 480 notification_period 24x7 notification_optionsd,u,r contact_groups npsadmins Once the host is defined, you specify the services in the services.cfg. For example: define service{ use generic-service ; Name of service template to use host_name SydInt01 service_description PING is_volatile 0 check_period24x7 max_check_attempts 11 normal_check_interval 5 retry_check_interval1 contact_groups fw notification_interval 120 notification_period 24x7 notification_optionsc,r check_command check_ping!1000.0,20%!5000.0,100% } I hope this helps some. Let me know if you have any more questions. _ Get more out of your e-mail. Update to Windows Live Hotmail today! http://ninemsn.com.au/share/redir/adTrack.asp?mode=click&clientID=778&referral=HotmailTagline&URL=http://g.msn.com/8HMBEN/14811??PS= - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] Is it possible to nest check_by_ssh commands?
I have a nagios server monitoring a unix server and use check_by_ssh to get results. It works great. I have recently added a second NIC to this server to allow it to see a few boxes in a small isolated network. The nagios server can't see these boxes directly and I was thinking that I might be able to nest check_by_ssh to run some checks on things like disk and cpu. >From the unix server I can run the following on a command line and get an appropriate response. check_by_ssh -t 20 -H 192.168.166.2 -C "/usr/local/nagios/libexec/check_disk -w 10% -c 7% -p /" If I try to encapsulate that into a nested check_by_ssh I get the following: check_by_ssh -t 40 -H 172.30.30.216 -C "/usr/local/nagios/check_by_ssh -t 20 \ -H 192.168.166.5 -C "/usr/local/nagios/libexec/check_disk -w 10% -c 7% -p /"" check_by_ssh: invalid option -- w check_by_ssh: Unknown argument - (null) Is this possible to do? Or do I need to write some scripts to encapsulate the check_by_ssh command instead? TIA Nemir _ Advertisement: Meet Sexy Singles at Lavalife today. Click here http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Flavalife9%2Eninemsn%2Ecom%2Eau%2Fclickthru%2Fclickthru%2Eact%3Fid%3Dninemsn%26context%3Dan99%26locale%3Den%5FAU%26a%3D25448&_t=754951090&_r=meet&_m=EXT - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] Is it possible to nest check_by_ssh commands?
I have a nagios server monitoring a unix server and use check_by_ssh to get results. It works great. I have recently added a second NIC to this server to allow it to see a few boxes in a small isolated network. The nagios server can't see these boxes directly and I was thinking that I might be able to nest check_by_ssh to run some checks on things like disk and cpu. >From the unix server I can run the following on a command line and get an appropriate response. check_by_ssh -t 20 -H 192.168.166.2 -C "/usr/local/nagios/libexec/check_disk -w 10% -c 7% -p /" If I try to encapsulate that into a nested check_by_ssh I get the following: check_by_ssh -t 40 -H 172.30.30.216 -C "/usr/local/nagios/check_by_ssh -t 20 \ -H 192.168.166.5 -C "/usr/local/nagios/libexec/check_disk -w 10% -c 7% -p /"" check_by_ssh: invalid option -- w check_by_ssh: Unknown argument - (null) Is this possible to do? Or do I need to write some scripts to encapsulate the check_by_ssh command instead? TIA Nemir _ Advertisement: Your Future Starts Here. Dream it? Then be it! Find it at www.seek.com.au http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fninemsn%2Eseek%2Ecom%2Eau%2F%3Ftracking%3Dsk%3Ahet%3Ask%3Anine%3A0%3Ahot%3Atext&_t=754951090&_r=seek&_m=EXT - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] problems with check_traffic plugin displaying images
>Has anybody able to get this plugins working, ie: be able to view the >graphs of the >monitored device bandwidth? >It works just fine except I can not display the graphs I get error is >the apache log That sounds like Nagios is very happy. > In the apache log, I have lines with this : > "Premature end script header ..." This is a classic apache problem. The "Premature end of script headers" error message is probably the most loathed and common error message you'll find. What the error actually means, is that the script stopped for whatever reason before it returned any output to the web server. A common cause of this for script writers is to fail to set a content type before printing output code. What do the apache logs say? What does the source code of the page say? HTH Nemir _ Advertisement: 110,000+ cars with the click of a mouse at carsales.com.au http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fsecure%2Dau%2Eimrworldwide%2Ecom%2Fcgi%2Dbin%2Fa%2Fci%5F450304%2Fet%5F2%2Fcg%5F801577%2Fpi%5F1005244%2Fai%5F838593&_t=757768878&_r=endtext_11&_m=EXT - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Monitoring disk state on Dell servers withNetware
Hi, >yes, we check free disk space with check_nwstat. >But I'm looking for a scpecial dell openmanage solution to check the >hardware disk state. If you want that level of information you will need to implement SNMP and either hope that there's a MIB available for the disks you've got or perhaps write one yourself. It isn't as hard as it sounds. :-) - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] trouble installing plugins --with-openssl under ubuntu 5.10
I am having trouble compiling nagios-plugins 1.4.1 on an ubuntu 5.10 server. THe advice I have read in previous threads says to install openssl. I am new to apt-get, but it wasn't too hard. Output from apt-get install openssl is: # apt-get install openssl Reading package lists... Done Building dependency tree... Done openssl is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded. # which openssl /usr/bin/openssl Whne I do a ./configure --with-openssl=/usr/bin I get the following summary. config.status: creating po/Makefile --with-ping6-command: /bin/ping6 -n -U -w %d -c %d %s --with-ping-command: /bin/ping -n -U -w %d -c %d %s --with-lwres: no --with-ipv6: yes --with-mysql: no --with-openssl: no --with-gnutls: no --enable-emulate-getaddrinfo: no --with-perl: /usr/bin/perl --with-cgiurl: /nagios/cgi-bin --with-nagios-user: nagios --with-nagios-group: nagios --with-trusted-path: /bin:/sbin:/usr/bin:/usr/sbin Going through the ./configure output I notice: checking openssl/ssl.h usability... no checking openssl/ssl.h presence... no checking for openssl/ssl.h... no checking openssl/x509.h usability... no checking openssl/x509.h presence... no checking for openssl/x509.h... no checking openssl/rsa.h usability... no checking openssl/rsa.h presence... no checking for openssl/rsa.h... no checking openssl/pem.h usability... no checking openssl/pem.h presence... no checking for openssl/pem.h... no checking openssl/crypto.h usability... no checking openssl/crypto.h presence... no checking for openssl/crypto.h... no checking openssl/err.h usability... no checking openssl/err.h presence... no checking for openssl/err.h... no checking ssl.h usability... no checking ssl.h presence... no checking for ssl.h... no checking the config.log file I also notice: configure:27062: checking openssl/ssl.h usability configure:27074: gcc -c -g -O2 conftest.c >&5 conftest.c:72:25: error: openssl/ssl.h: No such file or directory configure:27080: $? = 1 configure: failed program was: | /* confdefs.h. */ This is despite me having openssl installed as the notes suggest. None of those files it is searching for seem to exist on my box (with the exception of crypto.h, but that was hardly a surprise). What am I missing? I tried running apt-get install openssl-dev[el], but it doesn't seem to exist under that name here. I am sure this is just something basic that I am not seeing at the moment, but would really appreciate all hints and help available. TIA Nemir --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
RE: [Nagios-users] how to monitor CPU load in percentage utilization
Hi there. I have the requirement of monitoring CPU load in terms of percentage utilization instead of the 1,5,15 mins average.Please forward me a plugin if already developed by anyone in the list. Nagios Exchange has many great plugins written by third parties. You can find a check_cpu plugin that meets your requirements. http://www.nagiosexchange.org/Linux.55.0.html?&tx_netnagext_pi1[p_view]=238 Thanks, Satish HTH. :-) Nemir --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
RE: [Nagios-users] Down when it is up
Nagios (Ver. 1.2) was just installed to monitor a VPN with 600 ATMs. The problem we have is that some of the ATMs are shown as down but when pinged the are really up. This happens in the ATMs that for any reason, are working with the dial-up lines. Reading the documentation it seems to me that the problem is the configuration. Is there anything we can check? There are a few things. Log into the nagios server as the nagios user and run the command manually. That is often a good indicator of exactly what is happening. It might also be that the topology you describe doesn't always return results of the check to the server within the default 10 seconds. You might want to increase that to 20 seconds (or even more). I am sure there is more that others could add. If this doesn't help it might pay to post the exact command you're running and the output you see, as well as the error on the nagios system, and perhaps othere (relevent) parts of your nagios configs. regards, Nemir --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null