Re: [Nagios-users] Nagio + SMS
Hi Craig, I'm using a old-school Nokia device that sends out SMS notification messages. I use the program Gnokkii to send the text messages from my nagios server and a command line in my nagios config to execute Gnokii. Hope this helps you a bit. Gr. Dennis. -- From: nagios-users-requ...@lists.sourceforge.net Sent: Wednesday, September 02, 2009 11:26 AM To: nagios-users@lists.sourceforge.net Subject: Nagios-users Digest, Vol 40, Issue 3 Send Nagios-users mailing list submissions to nagios-users@lists.sourceforge.net To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/nagios-users or, via email, send a message with subject or body 'help' to nagios-users-requ...@lists.sourceforge.net You can reach the person managing the list at nagios-users-ow...@lists.sourceforge.net When replying, please edit your Subject line so it is more specific than Re: Contents of Nagios-users digest... Today's Topics: 1. Re: Monitoring a router (Marc Powell) 2. Re: Monitoring a router (Jim Avery) 3. Re: Why are there commands? (???) 4. Nagio + SMS (cr...@hooters-uk.com) 5. Re: Monitoring Unix machine from a windows machine (Grant Sewell) 6. Re: Nagio + SMS (Masopust, Christian) 7. Re: Nagio + SMS (Alex Dehaini) 8. Re: Nagio + SMS (cr...@hooters-uk.com) 9. Re: Nagio + SMS (Martyn) 10. check_by_ssh error - Remote command execution failed (Juki) -- Message: 1 Date: Tue, 1 Sep 2009 16:54:49 -0500 From: Marc Powell m...@ena.com Subject: Re: [Nagios-users] Monitoring a router To: Nagios User list nagios-users@lists.sourceforge.net Message-ID: 20a4ebff-7414-4f8d-819e-0e82340b7...@ena.com Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes On Sep 1, 2009, at 4:41 PM, David Dyer-Bennet wrote: Right now I'm just pinging it. That works, in the sense that I get the ping back. But I am suspicious that, if the link went down, the router would still respond to pings. Is this best practice in the opinion of the community? We monitor about 3000 routers with ping only. We ping an RFC 1918 IP assigned to the loopback interface on the router. That way, as long as any serial interface on the router is up, the router is still 'up' without us having to configure every a ping for every serial interface. This is sufficiently 'up' for our SLA purposes... For the purposes of parenting, the ping check is likely sufficient. We also monitor the individual interfaces via SNMP to know when any one goes down. We have a process such that we don't need to add each specific serial interface into nagios but just figure what should be up in real time. -- Marc -- Message: 2 Date: Tue, 1 Sep 2009 23:41:25 +0100 From: Jim Avery j...@jimavery.me.uk Subject: Re: [Nagios-users] Monitoring a router To: nagios-users@lists.sourceforge.net Message-ID: 765d77c80909011541x554afae2l35122dcb8b439...@mail.gmail.com Content-Type: text/plain; charset=ISO-8859-1 2009/9/1 David Dyer-Bennet d...@dd-b.net: Is this best practice in the opinion of the community? ?Or is using SNMP to monitor something inside the router better somehow? ?And if so, WHAT? Good question. One person's 'best practice' is another person's over-kill or under-kill. My golden rule is only monitor something if you're going to be interested in it. For routers this usually means I simply ping them, but often I'm interested in bandwidth of specific interfaces too so I make sure specific WAN links are monitored for bandwidth, errors, discards and so on using the plugins from http://www.manubulon.com It's often a good idea to have the router send you SNMP traps - you'll need to configure snmptt to handle them though, maybe using NagTrap. I often find I get more traps than I'm interested in though - which breaks the golden rule (see above) - so I then need either to filter the traps out in the snmptt config or prevent the router from sending them in the first place. I used to monitor each router interface using ping, but now I think that's usually overkill. It just depends ... -- Message: 3 Date: Wed, 02 Sep 2009 09:29:07 +0800 From: ??? yueh...@cht.com.tw Subject: Re: [Nagios-users] Why are there commands? To: David Dyer-Bennet d...@dd-b.net Cc: nagios-users@lists.sourceforge.net Message-ID: 4a9dca63.7070...@cht.com.tw Content-Type: text/plain; charset=UTF-8; format=flowed If you code relevant checking command in each service, Nagios should register every single command in system memory. But by using command templates, Nagios needs only register command definitions once and parameters for each service, this is more memory efficient. David Dyer-Bennet ??: I don't really understand the purpose / utility of the command level of
Re: [Nagios-users] Checking URL on windows-client using NSClient++
Hi Greg, Thank you very much for the detailed explenation. I discovered that I even didn't had NRPE installed, now I do. I got everything running, except for the exit/output code. Nagios runs the script on the client host perfectly but it gives me an error saying: No output available from command (c:\windows\system32\cscript.exe //nologo c:\nsclient\scripts\check_website.vbs This is the vbs script I used and edited a bit with some help of google (i'm not a vbs expert): http://pastebin.com/f6e35c30b When I run this vbs script via a batch file to debug it's output : ---TEST.BAT- wscript check_website.vbs echo wscript returned %errorlevel% I get the result of 0 or 1 just like it should be. Do you, or anyone else, have any suggestions on how to finetune this so that i can solve this issue? Thank you in advance. Kind regards, Dennis de Vries From: Frater, Greg J Sent: Tuesday, June 30, 2009 7:22 PM To: jvc_dvl...@hotmail.com ; nagios-users@lists.sourceforge.net Subject: RE: [Nagios-users] Checking URL on windows-client using NSClient++ Dennis, Your almost there, you need to set your vbs script to output an exit code of 0-4 according to the nagios plug in documentation (http://nagiosplug.sourceforge.net/developer-guidelines.html#PLUGOUTPUT). Then setup the nsclient to run your script as a plug in check. To do that you will need to follow these basic steps. 1. add the configuration to the nsc.ini file on each xp workstation you want to run this check on. It should look something like this: [NRPE Handlers] webpage_check=c:\windows\system32\cscript.exe //nologo c:\program files\nsclient++\scripts\web_page_check.vbs 2. Setup check in Nagios In your commands definition file: define command { command_name webpage_check command_line$USER1$/check_nrpe -H $HOSTADDRESS$ -t 60 -c webpage_check } In your services definition file: define service { host_name XPhost01, XPhost02 service_description check web page on XP host display_namewebpage check check_command webpage_check use service-template . } That should do it, and it uses your existing script (i.e. no rework). Good luck, hope that helps, -greg From: jvc_dvl...@hotmail.com [mailto:jvc_dvl...@hotmail.com] Sent: Tuesday, June 30, 2009 4:08 AM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Checking URL on windows-client using NSClient++ Hi, I would like to check if a certain website is available on some of my windows xp clients. These clients are public self-service computers to make bookings for a railway organisation. Every now and then, some of these self-service computers show a blank screen without the default start-page. I would like to check if the page is shown up and if it's not, it notifies Nagios which notifies me by email. I've tried to run an external script (vbs) which checks the availability of the site and that goes well if you use it manually but i dont want any popups saying: OK. It should run in the background. So i've edited the vbs file and now it does check it and doesnt give any output anymore. Has anyone else tried something like this before? I use NSClient++ and Nagios v3.0.6. Kind Regards, Dennis de Vries.-- ___ 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] Checking URL on windows-client using NSClient++
Hi, I would like to check if a certain website is available on some of my windows xp clients. These clients are public self-service computers to make bookings for a railway organisation. Every now and then, some of these self-service computers show a blank screen without the default start-page. I would like to check if the page is shown up and if it's not, it notifies Nagios which notifies me by email. I've tried to run an external script (vbs) which checks the availability of the site and that goes well if you use it manually but i dont want any popups saying: OK. It should run in the background. So i've edited the vbs file and now it does check it and doesnt give any output anymore. Has anyone else tried something like this before? I use NSClient++ and Nagios v3.0.6. Kind Regards, Dennis de Vries.-- ___ 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] Checking URL on windows-client using NSClient++
Hi, I would like to check if a certain website is available on some of my windows xp clients. These clients are public self-service computers to make bookings for a railway organisation. Every now and then, some of these self-service computers show a blank screen without the default start-page. I would like to check if the page is shown up and if it's not, it notifies Nagios which notifies me by email. I've tried to run an external script (vbs) which checks the availability of the site and that goes well if you use it manually but i dont want any popups saying: OK. It should run in the background. So i've edited the vbs file and now it does check it and doesnt give any output anymore. Has anyone else tried something like this before? I use NSClient++ and Nagios v3.0.6. Kind Regards, Dennis de Vries.-- ___ 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