[Nagios-users] nagios and nsclient++ wont work
Hi there, I guess that here are alot users who have made it working...Nagios on a debian system to monitor a Win2003 Standard Server. For testing purposes both machines are virtualized, the Debian is in a VirtualBox and the W2K3Std Server is virtualized with VmWare. I'm just saying that to be as precise as somehow possible. So, I downloaded the latest stable nsclient++ on the W2K3 from sourceforge, as it is suggested. I walked through the install process as stated in the Reference Manual, but the nsclient seems to be misconfigured, because I get errors once I run nsclient++ /test. Neither do I get the Systray Icon in the systray. I said nsclient++ Systray install to get it installed and there the client didn't complain about whatsoever. And the nsclient doesnt complain once I start him, but as said the /test option shows errors: # C:\Programme\NSClient++nsclient++ /test Launching test mode - client mode d NSClient++.cpp(1216) Enabling debug mode... d NSClient++.cpp(557) Attempting to start NSCLient++ - 0.3.9.327 2011-08-16 NSCore not loaded... Archiving crash dumps in: C:\Dokumente und Einstellungen\gms\Lokale Einstellunge n\Anwendungsdaten\NSClient++\crash dumps d NSClient++.cpp(1007) Loading plugin: CheckDisk... d NSClient++.cpp(1007) Loading plugin: Event log Checker d NSClient++.cpp(1007) Loading plugin: Helper function... d NSClient++.cpp(1007) Loading plugin: Check NSCP... d NSClient++.cpp(1007) Loading plugin: CheckSystem... d \PDHCollector.cpp(73) Autodetected w2k or later, using w2k PDH counters. d NSClient++.cpp(1007) Loading plugin: CheckWMI... d \PDHCollector.cpp(110) Using index to retrive counternames d NSClient++.cpp(1007) Loading plugin: File logger... l \FileLogger.cpp(87) Log path is: C:\Programme\NSClient++\\nsclient.log d \PDHCollector.cpp(130) Found countername: CPU:\Prozessor(_total)\Prozessor zeit (%) d NSClient++.cpp(1007) Loading plugin: NRPE server (w/ SSL)... d \PDHCollector.cpp(131) Found countername: UPTIME: \System\Systembetriebszeit d \NRPEListener.cpp(92) Loading all commands (from NRPE) d \PDHCollector.cpp(132) Found countername: MCL:\Speicher\Zusagegrenze d \NRPEListener.cpp(122) Starting NRPE socket... d \PDHCollector.cpp(133) Found countername: MCB:\Speicher\Zugesicherte Bytes d NSClient++.cpp(1007) Loading plugin: NSCAAgent (w/ encryption)... d \Socket.h(683) Bound to: 0.0.0.0:5666 d \NSCAThread.cpp(77) Time difference for NSCA server is: 0 d \NSCAThread.cpp(87) Only reporting: ok,warning,critical,unknown d \NSCAThread.cpp(119) Autodetected hostname: SRV_TEL d NSClient++.cpp(1007) Loading plugin: NSClient server... d \NSCAThread.cpp(188) Drifting: 0 d NSClient++.cpp(1007) Loading plugin: SystemTray... d \Socket.h(683) Bound to: 0.0.0.0:12489 d NSClient++.cpp(709) NSCLient++ - 0.3.9.327 2011-08-16 Started! d \TrayIcon.cpp(53) Failed to load: ChangeWindowMessageFilter aparently we are n ot on Vista... l NSClient++.cpp(461) Using settings from: INI-file l NSClient++.cpp(462) Enter command to inject or exit to terminate... ### Has anyone got an idea what I've done wrong? Thanks Niels -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ 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] notification emails
Yes printf works I had the same version of Nagios with the same config files working OK with fedora 14 It is only when I installed it on fedora 16 the notifications don't work I think it's a bug within Nagios Did you also do printf 'this is a test' | /bin/mail -s test_email em...@mydomain.com ? On Wed, Nov 30, 2011 at 9:09 PM, Nick Price np...@hotmail.com wrote: The defaults are there. I didecho 'this is a test' | /bin/mail -s test_email em...@mydomain.com That went out Ok What to look at next From: Claudio Kuenzler [mailto:c...@claudiokuenzler.com] Sent: Wednesday, November 30, 2011 12:37 To: Nagios Users List Subject: Re: [Nagios-users] notification emails Did you check the command which is used to send notifications in command.cfg or checkcommand.cfg ? Maybe you don't have the binary or you need to rename the command. By default it uses /usr/bin/printf and /usr/bin/mail if I'm not mistaken. On Wed, Nov 30, 2011 at 9:23 AM, Nick Price np...@hotmail.com wrote: Hello I am not sure if this is a bug or config issue. I have a clean install of fedora 16 32 bit with a manual install of nagios 3.3.1 and nagios plugins 1.4.15. I see in the debug log Notification viability test failed. No notification will be sent out. I can send test emails from this server using sendmail and that bit works Is there a solution for this. Regards Nick -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ 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 -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ 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 -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d___ 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] nagiosgraf install prereq
Hi, in console, as root, execute the following commands: perl -MCPAN -e 'install CGI' perl -MCPAN -e 'install Time::HiRes' quota chi=Marco Borsani CGI... ***FAIL*** Time::HiRes... ***FAIL*** checking optional PERL modules -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ 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] R: nagiosgraf install prereq
Well perl -MCPAN -e 'install CGI' -- work correctly perl -MCPAN -e 'install Time::HiRes' -- give me following error message: Can't locate object method install via package Time at -e line 1. Any idea? Marco -Messaggio originale- Da: Giorgio Zarrelli [mailto:zarre...@linux.it] Inviato: venerdì 2 dicembre 2011 09:21 A: Nagios Users List Oggetto: Re: [Nagios-users] nagiosgraf install prereq Hi, in console, as root, execute the following commands: perl -MCPAN -e 'install CGI' perl -MCPAN -e 'install Time::HiRes' quota chi=Marco Borsani CGI... ***FAIL*** Time::HiRes... ***FAIL*** checking optional PERL modules -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ 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 -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ 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] notification emails
On Fri, Dec 2, 2011 at 8:14 AM, Nick Price np...@hotmail.com wrote: Yes printf works I had the same version of Nagios with the same config files working OK with fedora 14 It is only when I installed it on fedora 16 the notifications don’t work** ** I think it’s a bug within Nagios ** ** ** I doubt that its a bug in Nagios, as Nagios just uses your system's commands to send notifications. What is your notification config? can you run the commands the notification uses as the Nagios user? Is there some security such as SE Linux running? You could try adding logging to the Notification command eg add a /var/tmp/Notification.log or instead of the Notification command being a direct command, make a script for it instead. Ritchie, -- -- http://23.me.uk/2 -- --Time flies like an arrow; fruit flies like a banana. -- ** ** ** Did you also do printf ‘this is a test’ | /bin/mail –s test_email em...@mydomain.com ? On Wed, Nov 30, 2011 at 9:09 PM, Nick Price np...@hotmail.com wrote: The defaults are there. I didecho ‘this is a test’ | /bin/mail –s test_email em...@mydomain.com That went out Ok What to look at next *From:* Claudio Kuenzler [mailto:c...@claudiokuenzler.com] *Sent:* Wednesday, November 30, 2011 12:37 *To:* Nagios Users List *Subject:* Re: [Nagios-users] notification emails Did you check the command which is used to send notifications in command.cfg or checkcommand.cfg ? Maybe you don't have the binary or you need to rename the command. By default it uses /usr/bin/printf and /usr/bin/mail if I'm not mistaken.* *** On Wed, Nov 30, 2011 at 9:23 AM, Nick Price np...@hotmail.com wrote: Hello I am not sure if this is a bug or config issue. I have a clean install of fedora 16 32 bit with a manual install of nagios 3.3.1 and nagios plugins 1.4.15. I see in the debug log Notification viability test failed. No notification will be sent out. I can send test emails from this server using sendmail and that bit works Is there a solution for this. Regards Nick -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ 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 -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ 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 ** ** -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ 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 -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d___ 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
Re: [Nagios-users] notification emails
On 02.12.2011 09:14, Nick Price wrote: Yes printf works I had the same version of Nagios with the same config files working OK with fedora 14 It is only when I installed it on fedora 16 the notifications don't work I think it's a bug within Nagios nagios just calls the command forking into a shell, so i'd rather guess this will be affected by turned on selinux. provide the output of # getenforce Did you also do printf 'this is a test' | /bin/mail --s test_email em...@mydomain.com mailto:em...@mydomain.com ? On Wed, Nov 30, 2011 at 9:09 PM, Nick Price np...@hotmail.com mailto:np...@hotmail.com wrote: The defaults are there. I didecho 'this is a test' | /bin/mail --s test_email em...@mydomain.com mailto:em...@mydomain.com That went out Ok What to look at next *From:*Claudio Kuenzler [mailto:c...@claudiokuenzler.com mailto:c...@claudiokuenzler.com] *Sent:* Wednesday, November 30, 2011 12:37 *To:* Nagios Users List *Subject:* Re: [Nagios-users] notification emails Did you check the command which is used to send notifications in command.cfg or checkcommand.cfg ? Maybe you don't have the binary or you need to rename the command. By default it uses /usr/bin/printf and /usr/bin/mail if I'm not mistaken. On Wed, Nov 30, 2011 at 9:23 AM, Nick Price np...@hotmail.com mailto:np...@hotmail.com wrote: Hello I am not sure if this is a bug or config issue. I have a clean install of fedora 16 32 bit with a manual install of nagios 3.3.1 and nagios plugins 1.4.15. I see in the debug log Notification viability test failed. No notification will be sent out. I can send test emails from this server using sendmail and that bit works Is there a solution for this. Regards Nick -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net mailto: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 -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net mailto: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 -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ 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 -- DI (FH) Michael Friedrich Vienna University Computer Center Universitaetsstrasse 7 A-1010 Vienna, Austria email: michael.friedr...@univie.ac.at phone: +43 1 4277 14359 mobile:+43 664 60277 14359 fax: +43 1 4277 14338 web: http://www.univie.ac.at/zid http://www.aco.net Lead Icinga Core Developer http://www.icinga.org -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d___ 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] R: nagiosgraf install prereq
perl -MCPAN -e shell Then at The prompt: install Time::HiRes Ciao, Giorgio Il giorno 02/dic/2011, alle ore 10:19, Marco Borsani m.bors...@it.net ha scritto: Well perl -MCPAN -e 'install CGI' -- work correctly perl -MCPAN -e 'install Time::HiRes' -- give me following error message: Can't locate object method install via package Time at -e line 1. Any idea? Marco -Messaggio originale- Da: Giorgio Zarrelli [mailto:zarre...@linux.it] Inviato: venerdì 2 dicembre 2011 09:21 A: Nagios Users List Oggetto: Re: [Nagios-users] nagiosgraf install prereq Hi, in console, as root, execute the following commands: perl -MCPAN -e 'install CGI' perl -MCPAN -e 'install Time::HiRes' quota chi=Marco Borsani CGI... ***FAIL*** Time::HiRes... ***FAIL*** checking optional PERL modules -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ 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 -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ 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] nagios and nsclient++ wont work
Hi. On 2 December 2011 10:10, Niels Jende nielsje...@googlemail.com wrote: Hi there, I guess that here are alot users who have made it working...Nagios on a debian system to monitor a Win2003 Standard Server. snip d NSClient++.cpp(1007) Loading plugin: SystemTray... d \Socket.h(683) Bound to: 0.0.0.0:12489 d NSClient++.cpp(709) NSCLient++ - 0.3.9.327 2011-08-16 Started! d \TrayIcon.cpp(53) Failed to load: ChangeWindowMessageFilter aparently we are n ot on Vista... l NSClient++.cpp(461) Using settings from: INI-file l NSClient++.cpp(462) Enter command to inject or exit to terminate... ### Has anyone got an idea what I've done wrong? snip Personally speaking, I don't see any real need to use the system tray plugin. The agent is installed on a server ... how often do you stay logged into a server watching the screen? Servers are meant to run services that are remotely accessed, thus I connect to them and access the services (including the NSClient agent remotely). So I have never included the System Tray interface and NSClient works very well without it. I deploy identical configs from a tried and trusted config file to every windows machine I manage and it just works out of the box :). The test mode will allow you to debug the config file on a development machine. Once that is working you can run nsclient as a service and connect to it remotely without having to go near the machine(s). Regards, Andy. PS. These are my personal opinions and mileage may vary from person to person and installation to installation. -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ 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] notification emails
Ok I am getting in the debug log Notification viability test failed. No notification will be sent. What is this and how to troubleshoot it. I can send emails from command line. Selinux is disabled From: m...@catsnest.co.uk [mailto:m...@catsnest.co.uk] Sent: Friday, December 02, 2011 10:23 To: Nagios Users List Subject: Re: [Nagios-users] notification emails On Fri, Dec 2, 2011 at 8:14 AM, Nick Price np...@hotmail.com wrote: Yes printf works I had the same version of Nagios with the same config files working OK with fedora 14 It is only when I installed it on fedora 16 the notifications don’t work I think it’s a bug within Nagios I doubt that its a bug in Nagios, as Nagios just uses your system's commands to send notifications. What is your notification config? can you run the commands the notification uses as the Nagios user? Is there some security such as SE Linux running? You could try adding logging to the Notification command eg add a /var/tmp/Notification.log or instead of the Notification command being a direct command, make a script for it instead. Ritchie, -- -- http://23.me.uk/2 -- --Time flies like an arrow; fruit flies like a banana. -- Did you also do printf ‘this is a test’ | /bin/mail –s test_email em...@mydomain.com ? On Wed, Nov 30, 2011 at 9:09 PM, Nick Price np...@hotmail.com wrote: The defaults are there. I didecho ‘this is a test’ | /bin/mail –s test_email em...@mydomain.com That went out Ok What to look at next From: Claudio Kuenzler [mailto:c...@claudiokuenzler.com] Sent: Wednesday, November 30, 2011 12:37 To: Nagios Users List Subject: Re: [Nagios-users] notification emails Did you check the command which is used to send notifications in command.cfg or checkcommand.cfg ? Maybe you don't have the binary or you need to rename the command. By default it uses /usr/bin/printf and /usr/bin/mail if I'm not mistaken. On Wed, Nov 30, 2011 at 9:23 AM, Nick Price np...@hotmail.com wrote: Hello I am not sure if this is a bug or config issue. I have a clean install of fedora 16 32 bit with a manual install of nagios 3.3.1 and nagios plugins 1.4.15. I see in the debug log Notification viability test failed. No notification will be sent out. I can send test emails from this server using sendmail and that bit works Is there a solution for this. Regards Nick -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ 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 -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ 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 -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ 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 -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d___ Nagios-users mailing list
Re: [Nagios-users] notification emails
Did you by accident disable the notifications? On the Nagios web interface, click on Tactical Overview. At the end of the page (Monitoring Features) check that Notifications are green/enabled. It would make sense as you don't have SELinux and all commands seem to work from command-line (you also checked them with your Nagios user, not root, right?). On Fri, Dec 2, 2011 at 11:30 AM, Nick Price np...@hotmail.com wrote: Ok ** ** I am getting in the debug log ** ** Notification viability test failed. No notification will be sent. ** ** What is this and how to troubleshoot it. ** ** I can send emails from command line. Selinux is disabled ** ** ** ** ** ** ** ** ** ** *From:* m...@catsnest.co.uk [mailto:m...@catsnest.co.uk] *Sent:* Friday, December 02, 2011 10:23 *To:* Nagios Users List *Subject:* Re: [Nagios-users] notification emails ** ** ** ** On Fri, Dec 2, 2011 at 8:14 AM, Nick Price np...@hotmail.com wrote: Yes printf works I had the same version of Nagios with the same config files working OK with fedora 14 It is only when I installed it on fedora 16 the notifications don’t work** ** I think it’s a bug within Nagios I doubt that its a bug in Nagios, as Nagios just uses your system's commands to send notifications. What is your notification config? can you run the commands the notification uses as the Nagios user? Is there some security such as SE Linux running? You could try adding logging to the Notification command eg add a /var/tmp/Notification.log or instead of the Notification command being a direct command, make a script for it instead. Ritchie, -- -- http://23.me.uk/2 -- --Time flies like an arrow; fruit flies like a banana. -- Did you also do printf ‘this is a test’ | /bin/mail –s test_email em...@mydomain.com ? On Wed, Nov 30, 2011 at 9:09 PM, Nick Price np...@hotmail.com wrote: The defaults are there. I didecho ‘this is a test’ | /bin/mail –s test_email em...@mydomain.com That went out Ok What to look at next *From:* Claudio Kuenzler [mailto:c...@claudiokuenzler.com] *Sent:* Wednesday, November 30, 2011 12:37 *To:* Nagios Users List *Subject:* Re: [Nagios-users] notification emails Did you check the command which is used to send notifications in command.cfg or checkcommand.cfg ? Maybe you don't have the binary or you need to rename the command. By default it uses /usr/bin/printf and /usr/bin/mail if I'm not mistaken.* *** On Wed, Nov 30, 2011 at 9:23 AM, Nick Price np...@hotmail.com wrote: Hello I am not sure if this is a bug or config issue. I have a clean install of fedora 16 32 bit with a manual install of nagios 3.3.1 and nagios plugins 1.4.15. I see in the debug log Notification viability test failed. No notification will be sent out. I can send test emails from this server using sendmail and that bit works Is there a solution for this. Regards Nick -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ 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 -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ 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 -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d
Re: [Nagios-users] monitor printer from Windows server
Hi Robert, This sounds like the kind of thing that I am interested in. I have not done any powershell scripting before so would be very interested in seeing what you have if you are able to release it; as well as your integration with NSClient and Nagios. Thanks James From: Werner, Robert [mailto:rwer...@pomwonderful.com] Sent: 01 December 2011 19:52 To: Nagios Users List Subject: Re: [Nagios-users] monitor printer from Windows server I've had good luck using System.Printing from Powershell and then running the scripts from NSClient++. I just wrote the PowerShell Scripts to use the standard nagios plugin status codes. I used the following links to develop the PowerShell scripts: http://gallery.technet.microsoft.com/scriptcenter/PrintServerManagementps1-7676ed28 http://msdn.microsoft.com/en-us/library/system.printing.aspx If there is interest, I'll ask my boss about sharing the PowerShell scripts. -- Robert G. Werner Oracle Apps Systems Administrator rwer...@pomwonderful.commailto:rwer...@pomwonderful.com 559.521.5089 From: Claudio Kuenzler [mailto:c...@claudiokuenzler.com]mailto:[mailto:c...@claudiokuenzler.com] Sent: Thursday, December 01, 2011 11:21 AM To: Nagios Users List Subject: Re: [Nagios-users] monitor printer from Windows server Besides of course the Spooler Service, you should also monitor the Windows Event Log. I've experienced a lot of driver issues on an old Windows print server which temporarily caused the affected printer(s) to appear as 'offline'. Such problems appeared in the event log as Warnings with the message content something about the driver. That was on a Windows Server 2003, but I think such driver problems are still logged to the Event Log. On Thu, Dec 1, 2011 at 3:10 PM, Jim Avery j...@jimavery.me.ukmailto:j...@jimavery.me.uk wrote: On 1 December 2011 12:39, James Osbourn james.osbo...@citrix.commailto:james.osbo...@citrix.com wrote: I have a Windows 7 server acting as a print server and I would like to check the status of these printers and make sure that they are still online etc. I cannot seem to find a way of checking printers shared from a Windows machine, does anyone have any suggestions or references that I could use. Thanks James I query the windows performance counter for number of print jobs spooling. If a printer breaks then usually this counter starts ramping up quite rapidly as more and more print jobs get stuck in the queue. For example, the [external alias] section of your nsc.ini (assuming you use NSClient++), you can have:- alias_CheckCounter-PrintQJobs=CheckCounter Counter:jobs=\Print Queue(_Total)\Jobs ShowAll MaxWarn=250 MaxCrit=500 Then your service definition would look something like this:- define service { host_name printserver1,printserver2 service_description PrintQJobs use srv-pnp,generic-service check_command check_nrpe!-c PrintQJobs max_check_attempts 6 check_interval 15 retry_interval 5 contact_groups notify-admins notes Records the number of Active Jobs on a Print Server register1 } And the command definition I use is just a generic one for any nrpe check like so:- define command {^M command_namecheck_nrpe command_line$USER1$/check_nrpe -H $HOSTADDRESS$ -u $ARG1$ register1 } Our servers aren't quite as recent as Windows 7, but I guess the counter would still be the same. I hope that helps. Jim -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ Nagios-users mailing list Nagios-users@lists.sourceforge.netmailto: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 -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please
Re: [Nagios-users] notification emails
No its still activated I even copied the configs from the old server. It seems it's just fedora 16 that has the problem. This version of Nagios works fine with fedora 16. I looked on tactical view Everything is enabled except SSH localhost From: Claudio Kuenzler [mailto:c...@claudiokuenzler.com] Sent: Friday, December 02, 2011 12:14 To: Nagios Users List Subject: Re: [Nagios-users] notification emails Did you by accident disable the notifications? On the Nagios web interface, click on Tactical Overview. At the end of the page (Monitoring Features) check that Notifications are green/enabled. It would make sense as you don't have SELinux and all commands seem to work from command-line (you also checked them with your Nagios user, not root, right?). On Fri, Dec 2, 2011 at 11:30 AM, Nick Price np...@hotmail.com wrote: Ok I am getting in the debug log Notification viability test failed. No notification will be sent. What is this and how to troubleshoot it. I can send emails from command line. Selinux is disabled From: m...@catsnest.co.uk [mailto:m...@catsnest.co.uk] Sent: Friday, December 02, 2011 10:23 To: Nagios Users List Subject: Re: [Nagios-users] notification emails On Fri, Dec 2, 2011 at 8:14 AM, Nick Price np...@hotmail.com wrote: Yes printf works I had the same version of Nagios with the same config files working OK with fedora 14 It is only when I installed it on fedora 16 the notifications don't work I think it's a bug within Nagios I doubt that its a bug in Nagios, as Nagios just uses your system's commands to send notifications. What is your notification config? can you run the commands the notification uses as the Nagios user? Is there some security such as SE Linux running? You could try adding logging to the Notification command eg add a /var/tmp/Notification.log or instead of the Notification command being a direct command, make a script for it instead. Ritchie, -- -- http://23.me.uk/2 -- --Time flies like an arrow; fruit flies like a banana. -- Did you also do printf 'this is a test' | /bin/mail -s test_email em...@mydomain.com ? On Wed, Nov 30, 2011 at 9:09 PM, Nick Price np...@hotmail.com wrote: The defaults are there. I didecho 'this is a test' | /bin/mail -s test_email em...@mydomain.com That went out Ok What to look at next From: Claudio Kuenzler [mailto:c...@claudiokuenzler.com] Sent: Wednesday, November 30, 2011 12:37 To: Nagios Users List Subject: Re: [Nagios-users] notification emails Did you check the command which is used to send notifications in command.cfg or checkcommand.cfg ? Maybe you don't have the binary or you need to rename the command. By default it uses /usr/bin/printf and /usr/bin/mail if I'm not mistaken. On Wed, Nov 30, 2011 at 9:23 AM, Nick Price np...@hotmail.com wrote: Hello I am not sure if this is a bug or config issue. I have a clean install of fedora 16 32 bit with a manual install of nagios 3.3.1 and nagios plugins 1.4.15. I see in the debug log Notification viability test failed. No notification will be sent out. I can send test emails from this server using sendmail and that bit works Is there a solution for this. Regards Nick -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ 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 -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ 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 -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense
Re: [Nagios-users] notification emails
On 02.12.2011 12:36, Nick Price wrote: No its still activated I even copied the configs from the old server. It seems it's just fedora 16 that has the problem. This version of Nagios works fine with fedora 16. I looked on tactical view Everything is enabled except SSH localhost *From:*Claudio Kuenzler [mailto:c...@claudiokuenzler.com] *Sent:* Friday, December 02, 2011 12:14 *To:* Nagios Users List *Subject:* Re: [Nagios-users] notification emails Did you by accident disable the notifications? On the Nagios web interface, click on Tactical Overview. At the end of the page (Monitoring Features) check that Notifications are green/enabled. It would make sense as you don't have SELinux and all commands seem to work from command-line (you also checked them with your Nagios user, not root, right?). On Fri, Dec 2, 2011 at 11:30 AM, Nick Price np...@hotmail.com mailto:np...@hotmail.com wrote: Ok I am getting in the debug log Notification viability test failed. No notification will be sent. What is this and how to troubleshoot it. I can send emails from command line. Selinux is disabled *From:*m...@catsnest.co.uk mailto:m...@catsnest.co.uk [mailto:m...@catsnest.co.uk mailto:m...@catsnest.co.uk] *Sent:* Friday, December 02, 2011 10:23 *To:* Nagios Users List *Subject:* Re: [Nagios-users] notification emails On Fri, Dec 2, 2011 at 8:14 AM, Nick Price np...@hotmail.com mailto:np...@hotmail.com wrote: Yes printf works I had the same version of Nagios with the same config files working OK with fedora 14 It is only when I installed it on fedora 16 the notifications don't work I think it's a bug within Nagios I doubt that its a bug in Nagios, as Nagios just uses your system's commands to send notifications. What is your notification config? can you run the commands the notification uses as the Nagios user? Is there some security such as SE Linux running? You could try adding logging to the Notification command eg add a /var/tmp/Notification.log or instead of the Notification command being a direct command, make a script for it instead. Ritchie, -- -- http://23.me.uk/2 -- --Time flies like an arrow; fruit flies like a banana. -- Did you also do printf 'this is a test' | /bin/mail --s test_email em...@mydomain.com mailto:em...@mydomain.com ? On Wed, Nov 30, 2011 at 9:09 PM, Nick Price np...@hotmail.com mailto:np...@hotmail.com wrote: The defaults are there. I didecho 'this is a test' | /bin/mail --s test_email em...@mydomain.com mailto:em...@mydomain.com That went out Ok What to look at next *From:*Claudio Kuenzler [mailto:c...@claudiokuenzler.com mailto:c...@claudiokuenzler.com] *Sent:* Wednesday, November 30, 2011 12:37 *To:* Nagios Users List *Subject:* Re: [Nagios-users] notification emails Did you check the command which is used to send notifications in command.cfg or checkcommand.cfg ? Maybe you don't have the binary or you need to rename the command. By default it uses /usr/bin/printf and /usr/bin/mail if I'm not mistaken. On Wed, Nov 30, 2011 at 9:23 AM, Nick Price np...@hotmail.com mailto:np...@hotmail.com wrote: Hello I am not sure if this is a bug or config issue. I have a clean install of fedora 16 32 bit with a manual install of nagios 3.3.1 and nagios plugins 1.4.15. I see in the debug log Notification viability test failed. No notification will be sent out. the contact, which will be shown some lines above (always post a complete debug log for a notification!), did not pass the viability tests. this can be notification_options, notification_period, notifications_disabled, etc. so to conclude with, i'd highly advise you to 1/ post the contact object definition from the objects.cache 2/ post the complete service object definition from the objects.cache 3/ post the complete debug for this service and contact notification I can send test emails from this server using sendmail and that bit works Is there a solution for this. Regards Nick -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net mailto: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] A question about initial_state
Hello! I added initial_state u to passive service template definition, but after restart Nagios, all passive service checks have the status PENDING , not UNKNOWN define service{ name passive-service retain_status_information 0 retain_nonstatus_information0 active_checks_enabled 0 passive_checks_enabled 1 flap_detection_enabled 0 is_volatile0 check_period 24x7 max_check_attempts 1 normal_check_interval 5 retry_check_interval 1 check_freshness1 freshness_threshold15 ; seconds initial_state u contact_groups admins check_command check_dummy!0 notification_interval 60 notification_period24x7 notification_options w,u,c,r stalking_options w,c,u register 0 } Whats wrong? nagios3-3.2.0-4ubuntu2.2 -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d___ 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] R: R: nagiosgraf install prereq
Yes, thanks. I did it few minutes ago ! ;-) -Messaggio originale- Da: Giorgio Zarrelli [mailto:zarre...@linux.it] Inviato: venerdì 2 dicembre 2011 10:25 A: Marco Borsani Cc: Nagios Users List Oggetto: Re: R: [Nagios-users] nagiosgraf install prereq perl -MCPAN -e shell Then at The prompt: install Time::HiRes Ciao, Giorgio Il giorno 02/dic/2011, alle ore 10:19, Marco Borsani m.bors...@it.net ha scritto: Well perl -MCPAN -e 'install CGI' -- work correctly perl -MCPAN -e 'install Time::HiRes' -- give me following error message: Can't locate object method install via package Time at -e line 1. Any idea? Marco -Messaggio originale- Da: Giorgio Zarrelli [mailto:zarre...@linux.it] Inviato: venerd 2 dicembre 2011 09:21 A: Nagios Users List Oggetto: Re: [Nagios-users] nagiosgraf install prereq Hi, in console, as root, execute the following commands: perl -MCPAN -e 'install CGI' perl -MCPAN -e 'install Time::HiRes' quota chi=Marco Borsani CGI... ***FAIL*** Time::HiRes... ***FAIL*** checking optional PERL modules -- -- -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ 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 -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ 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] nagios and nsclient++ wont work
I am trying to understand what you are saying is not working , as the log snippet does not say anything about tests coming from the Nagios server , if it is about the Tray icon,the answer is in the log : \TrayIcon.cpp(53) Failed to load: ChangeWindowMessageFilter aparently we are not on Vista... So what are you trying to do ?? - Original Message - From: Niels Jende nielsje...@googlemail.com To: nagios-users@lists.sourceforge.net Sent: Friday, 2 December, 2011 8:10:30 AM Subject: [Nagios-users] nagios and nsclient++ wont work Hi there, I guess that here are alot users who have made it working...Nagios on a debian system to monitor a Win2003 Standard Server. For testing purposes both machines are virtualized, the Debian is in a VirtualBox and the W2K3Std Server is virtualized with VmWare. I'm just saying that to be as precise as somehow possible. So, I downloaded the latest stable nsclient++ on the W2K3 from sourceforge, as it is suggested. I walked through the install process as stated in the Reference Manual, but the nsclient seems to be misconfigured, because I get errors once I run nsclient++ /test. Neither do I get the Systray Icon in the systray. I said nsclient++ Systray install to get it installed and there the client didn't complain about whatsoever. And the nsclient doesnt complain once I start him, but as said the /test option shows errors: # C:\Programme\NSClient++nsclient++ /test Launching test mode - client mode d NSClient++.cpp(1216) Enabling debug mode... d NSClient++.cpp(557) Attempting to start NSCLient++ - 0.3.9.327 2011-08-16 NSCore not loaded... Archiving crash dumps in: C:\Dokumente und Einstellungen\gms\Lokale Einstellunge n\Anwendungsdaten\NSClient++\crash dumps d NSClient++.cpp(1007) Loading plugin: CheckDisk... d NSClient++.cpp(1007) Loading plugin: Event log Checker d NSClient++.cpp(1007) Loading plugin: Helper function... d NSClient++.cpp(1007) Loading plugin: Check NSCP... d NSClient++.cpp(1007) Loading plugin: CheckSystem... d \PDHCollector.cpp(73) Autodetected w2k or later, using w2k PDH counters. d NSClient++.cpp(1007) Loading plugin: CheckWMI... d \PDHCollector.cpp(110) Using index to retrive counternames d NSClient++.cpp(1007) Loading plugin: File logger... l \FileLogger.cpp(87) Log path is: C:\Programme\NSClient++\\nsclient.log d \PDHCollector.cpp(130) Found countername: CPU:\Prozessor(_total)\Prozessor zeit (%) d NSClient++.cpp(1007) Loading plugin: NRPE server (w/ SSL)... d \PDHCollector.cpp(131) Found countername: UPTIME: \System\Systembetriebszeit d \NRPEListener.cpp(92) Loading all commands (from NRPE) d \PDHCollector.cpp(132) Found countername: MCL:\Speicher\Zusagegrenze d \NRPEListener.cpp(122) Starting NRPE socket... d \PDHCollector.cpp(133) Found countername: MCB:\Speicher\Zugesicherte Bytes d NSClient++.cpp(1007) Loading plugin: NSCAAgent (w/ encryption)... d \Socket.h(683) Bound to: 0.0.0.0:5666 d \NSCAThread.cpp(77) Time difference for NSCA server is: 0 d \NSCAThread.cpp(87) Only reporting: ok,warning,critical,unknown d \NSCAThread.cpp(119) Autodetected hostname: SRV_TEL d NSClient++.cpp(1007) Loading plugin: NSClient server... d \NSCAThread.cpp(188) Drifting: 0 d NSClient++.cpp(1007) Loading plugin: SystemTray... d \Socket.h(683) Bound to: 0.0.0.0:12489 d NSClient++.cpp(709) NSCLient++ - 0.3.9.327 2011-08-16 Started! d \TrayIcon.cpp(53) Failed to load: ChangeWindowMessageFilter aparently we are n ot on Vista... l NSClient++.cpp(461) Using settings from: INI-file l NSClient++.cpp(462) Enter command to inject or exit to terminate... ### Has anyone got an idea what I've done wrong? Thanks Niels -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ 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 -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users :::
Re: [Nagios-users] A question about initial_state
Since this is a passive state , until it gets a state submissions from the NSCA it will be in a Pending state . The initial_state directive is for Active services AFAIK. - Original Message - From: Alexander Tiurin alexande...@gmail.com To: nagios-users@lists.sourceforge.net Sent: Friday, 2 December, 2011 1:17:06 PM Subject: [Nagios-users] A question about initial_state Hello! I added initial_state u to passive service template definition, but after restart Nagios, all passive service checks have the status PENDING , not UNKNOWN define service{ name passive-service retain_status_information 0 retain_nonstatus_information 0 active_checks_enabled 0 passive_checks_enabled 1 flap_detection_enabled 0 is_volatile 0 check_period 24x7 max_check_attempts 1 normal_check_interval 5 retry_check_interval 1 check_freshness 1 freshness_threshold 15 ; seconds initial_state u contact_groups admins check_command check_dummy!0 notification_interval 60 notification_period 24x7 notification_options w,u,c,r stalking_options w,c,u register 0 } Whats wrong? nagios3-3.2.0-4ubuntu2.2 -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ 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 -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d___ 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] Re2:
If you read this message, it’s very important! http://rioual.com/index721m--.php?yvyaolID=31 Fri, 2 Dec 2011 18:15:00 Let him do the weeping and you take and give them to the poor.Gus offered them to Grace, who also refused, shaking her head. (c) Brytni wallcard -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ 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] Passive monitoring multiple servers with 1 NAT IP
Hi, in the case where I want to monitor several servers in a remote office where all outbound traffic from that office originates from a single IP (NAT) is there any way I can monitor those with Nagios without putting a Nagios server in the remote office? On the face of it it would seem impossible as Nagios identifies hosts by their IP (and therefore each needs a unique IP) but would be good to get that confirmed or otherwise, thanks for any ideas, Andy. -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d___ 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] nagios and nsclient++ wont work
Hi Spook, Hi Assaf! First of all thanks for your reply. You bith have asked me what I need that Systray Icon for...well, to be honest I don't need it, but my Bosses want to have it :-/ So, I have to make sure that the icon is in the Systray. By the way is anyone of you both running nagios on debian? Spook you said, that you do deploy nsclient on several installations with some sort of a basic/standard setup - ini File...would you mind to let me have a look at that file...for learning/understanding purposes? Thanks a lot to both of you Regards Niels P.S.: Sorry for not quoting, but its hard to do that on a Blackberry :-( 2011/12/2 Assaf Flatto nag...@flatto.net: I am trying to understand what you are saying is not working , as the log snippet does not say anything about tests coming from the Nagios server , if it is about the Tray icon,the answer is in the log : \TrayIcon.cpp(53) Failed to load: ChangeWindowMessageFilter aparently we are not on Vista... So what are you trying to do ?? - Original Message - From: Niels Jende nielsje...@googlemail.com To: nagios-users@lists.sourceforge.net Sent: Friday, 2 December, 2011 8:10:30 AM Subject: [Nagios-users] nagios and nsclient++ wont work Hi there, I guess that here are alot users who have made it working...Nagios on a debian system to monitor a Win2003 Standard Server. For testing purposes both machines are virtualized, the Debian is in a VirtualBox and the W2K3Std Server is virtualized with VmWare. I'm just saying that to be as precise as somehow possible. So, I downloaded the latest stable nsclient++ on the W2K3 from sourceforge, as it is suggested. I walked through the install process as stated in the Reference Manual, but the nsclient seems to be misconfigured, because I get errors once I run nsclient++ /test. Neither do I get the Systray Icon in the systray. I said nsclient++ Systray install to get it installed and there the client didn't complain about whatsoever. And the nsclient doesnt complain once I start him, but as said the /test option shows errors: # C:\Programme\NSClient++nsclient++ /test Launching test mode - client mode d NSClient++.cpp(1216) Enabling debug mode... d NSClient++.cpp(557) Attempting to start NSCLient++ - 0.3.9.327 2011-08-16 NSCore not loaded... Archiving crash dumps in: C:\Dokumente und Einstellungen\gms\Lokale Einstellunge n\Anwendungsdaten\NSClient++\crash dumps d NSClient++.cpp(1007) Loading plugin: CheckDisk... d NSClient++.cpp(1007) Loading plugin: Event log Checker d NSClient++.cpp(1007) Loading plugin: Helper function... d NSClient++.cpp(1007) Loading plugin: Check NSCP... d NSClient++.cpp(1007) Loading plugin: CheckSystem... d \PDHCollector.cpp(73) Autodetected w2k or later, using w2k PDH counters. d NSClient++.cpp(1007) Loading plugin: CheckWMI... d \PDHCollector.cpp(110) Using index to retrive counternames d NSClient++.cpp(1007) Loading plugin: File logger... l \FileLogger.cpp(87) Log path is: C:\Programme\NSClient++\\nsclient.log d \PDHCollector.cpp(130) Found countername: CPU: \Prozessor(_total)\Prozessor zeit (%) d NSClient++.cpp(1007) Loading plugin: NRPE server (w/ SSL)... d \PDHCollector.cpp(131) Found countername: UPTIME: \System\Systembetriebszeit d \NRPEListener.cpp(92) Loading all commands (from NRPE) d \PDHCollector.cpp(132) Found countername: MCL: \Speicher\Zusagegrenze d \NRPEListener.cpp(122) Starting NRPE socket... d \PDHCollector.cpp(133) Found countername: MCB: \Speicher\Zugesicherte Bytes d NSClient++.cpp(1007) Loading plugin: NSCAAgent (w/ encryption)... d \Socket.h(683) Bound to: 0.0.0.0:5666 d \NSCAThread.cpp(77) Time difference for NSCA server is: 0 d \NSCAThread.cpp(87) Only reporting: ok,warning,critical,unknown d \NSCAThread.cpp(119) Autodetected hostname: SRV_TEL d NSClient++.cpp(1007) Loading plugin: NSClient server... d \NSCAThread.cpp(188) Drifting: 0 d NSClient++.cpp(1007) Loading plugin: SystemTray... d \Socket.h(683) Bound to: 0.0.0.0:12489 d NSClient++.cpp(709) NSCLient++ - 0.3.9.327 2011-08-16 Started! d \TrayIcon.cpp(53) Failed to load: ChangeWindowMessageFilter aparently we are n ot on Vista... l NSClient++.cpp(461) Using settings from: INI-file l NSClient++.cpp(462) Enter command to inject or exit to terminate... ### Has anyone got an idea what I've done wrong? Thanks Niels -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net
Re: [Nagios-users] Passive monitoring multiple servers with 1 NAT IP
On 2 December 2011 18:14, a.sm...@ukgrid.net wrote: Hi, in the case where I want to monitor several servers in a remote office where all outbound traffic from that office originates from a single IP (NAT) is there any way I can monitor those with Nagios without putting a Nagios server in the remote office? On the face of it it would seem impossible as Nagios identifies hosts by their IP (and therefore each needs a unique IP) but would be good to get that confirmed or otherwise, Yes you can do that no problem. Send the checks to the Nagios server using send_nsca and configure all the hosts in Nagios with passive host and service checks. You can use freshness checking to alert you if no checks have been received at all lately from the remote host. The send_nsca transmission identifies the host to Nagios so it won't matter if the address is NATted. Note that for the active check in Nagios you will need to use check_dummy or similar so that if the freshness check fails then Nagios will run this and alert you to the fact the freshness check has failed. I normally use something like .. check_dummy!3 UNKNOWN: Nagios didn't receive a check result lately from the server! You haven't said if the servers are Unix, Windows or what. If Windows, then it's easy to configure the NSClient++ agent to send checks using NSCA. If Unix or linux you will need to install send_nsca and the relevant plugins and run the checks from cron, maybe using the nsca_wrapper script which you'll find on Nagios Exchange. You will of course need to configure NSCA on your Nagios server to receive the incoming checks. hth, Jim -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ 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