[Nagios-users] Nagios Help
Hi, I have configured Nagios on RHEL5.3. now monitoring Linux and windows server. when i look at MAP tab. it is giving MAP from Nagios server to clients.But It is giving "?" mark. Why? How can i remove ? mark? Instead of ? mark i want to display name of the machine. How can i do so? Thanks in Advance. Raja. -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com___ 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] Nagios help
Hi! I have a perl script which returns data in the following format (output from a wget) - AppName : BillingApp "status" = "OK"; AppName : PaymentApp "status" = "WARN"; AppName : OrderApp "status" = "ERROR"; AppName : RegApp "status" = "FATAL"; the output consists of 150+ apps, with each one of them returning their status. Here is what I need - Want to create a wrapper script which returns a cumulative summary. I need a step by step instructions on how to hook a script like this into nagios? What I desire - Instead of a cumulative result, can I display the result in Nagios on a per application basis using this one script (and a wrapper script on top of it)? I tried check_http but it doesnt solve my needs as I want to parse out the output from the wget rather than just doing a wget on a port. If you can also provide me with a wrapper script for reference in relation to how the result can be presented to Nagios that would be great. Please help!! Thanks, Allan -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev ___ 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] Nagios help!!
Hi I am new to nagios ! I have added my first windows machine as stated below , now i want to add more machines , so do i need to add one more windows.cfg file with new host definations or simply add hostname in present file windows.cfg seperated by comma , like host_nameserver1,server2, This might seem a very stupid questions to many but still as i am new to this, so i need some help. Add a new host definition for the Windows machine that you're going to monitor. If this is the *first* Windows machine you're monitoring, you can simply modify the sample host definition in windows.cfg. Change the host_name, alias, and address fields to appropriate values for the Windows box. define host{ use windows-server ; Inherit default values from a Windows server template (make sure you keep this line!) host_name winserver alias My Windows Server address 192.168.1.2 } Good. Now you can add some service definitions (to the same configuration file) in order to tell Nagios to monitor different aspects of the Windows machine. If this is the *first* Windows machine you're monitoring, you can simply modify the sample service definitions in windows.cfg. The information contained in this e-mail message is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you should return it to the sender immediately. Please note that while we scan all e-mails for viruses we cannot guarantee that any e-mail is virus-free and accept no liability for any damage caused by any virus transmitted by this email.<>- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___ 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 help
This is because you don't have defined an icon for the hosts in hostsextinfo... christian -- "I sense much NT in you, NT leads to Blue Screen. Blue Screen leads to downtime, downtime leads to suffering. NT is the path to the darkside." - Unknown Unix Jedi From: raja nagios [mailto:nagios.r...@gmail.com] Sent: Wednesday, February 10, 2010 10:12 AM To: Nagios-users@lists.sourceforge.net Subject: [Nagios-users] nagios help Hi, I have been facing the same problem. I have installed Nagios 3.o on RHEL5. everything is ok. Now when i open my web interface in the browser. it is showing like this. Please find the attachment. There you can see ? marc. why am i getting ? mark there. Thanks in advance. yours, Raja antony -- SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev___ 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 help
Hey newme me, On Aug 20, 2010, at 1:15 AM, newme me wrote: > Here is what I need - > > Want to create a wrapper script which returns a cumulative summary. I need a > step by step instructions on how to hook a script like this into nagios? It's pretty easy... - create your script to perform the check. Pay particular attention to the Output and Return Code requirements of http://nagiosplug.sourceforge.net/developer-guidelines.html - create a command{} definition that calls your script. - create one or more service definitions that reference your new command{} definition - reload nagios - ... - PROFIT! > What I desire - > > Instead of a cumulative result, can I display the result in Nagios on a per > application basis using this one script (and a wrapper script on top of it)? Seems straightforward to me. Accept a command line argument referencing what you want to look for and search the output for that status. Print out the status and exit with a corresponding exit code. > If you can also provide me with a wrapper script for reference in relation to > how the result can be presented to Nagios that would be great. Look at pretty much any of the plugins at http://exchange.nagios.org. I'd bet that the majority of them call some external program, parse it's output and return results. -- Marc -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev ___ 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 help!!
[EMAIL PROTECTED] schrieb: > I have added my first windows machine as stated below , now i want to > add more machines , so do i need to add one more windows.cfg file with > new host definations or simply add hostname in present file windows.cfg > seperated by comma , > like > host_nameserver1,server2, The comma-Solution doesnt't work. > This might seem a very stupid questions to many but still as i am new to > this, so i need some help. When I had "my first nagios-day", I ran into the exactly same issue. I monitor two linux-servers which looks like this: define host{ use linux-server host_name OpenVPN1 alias OpenVPN-Server Nr1 address ovpn1.somedomain.de } define host{ use linux-server host_name OpenVPN2 alias OpenVPN-Server Nr2 address ovpn2.somedomain.de } (The template that comes with nagios is beeing used). Hope this helps a little. greetz, marcus (By the way, Pallav, a subject with just "help" and several exclamation-marks is not appropriate for a sophisticated mailing-list like this.) - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ 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 help!!
Hi Marcus this means that the service defination will also look like this define service{ use generic-service host_name winserver1 service_description Memory Usage check_command check_nt!MEMUSE!-w 80 -c 90 define service{ use generic-service host_name winserver2 service_description Memory Usage check_command check_nt!MEMUSE!-w 80 -c 90 To monitor 30 servers i need to add 30 lines.or is there any way that we monitors number of services in all hosts. Marcus <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 04/10/2008 12:18 PM To nagios-users@lists.sourceforge.net cc Subject Re: [Nagios-users] Nagios help!! [EMAIL PROTECTED] schrieb: > I have added my first windows machine as stated below , now i want to > add more machines , so do i need to add one more windows.cfg file with > new host definations or simply add hostname in present file windows.cfg > seperated by comma , > like > host_nameserver1,server2, The comma-Solution doesnt't work. > This might seem a very stupid questions to many but still as i am new to > this, so i need some help. When I had "my first nagios-day", I ran into the exactly same issue. I monitor two linux-servers which looks like this: define host{ use linux-server host_name OpenVPN1 alias OpenVPN-Server Nr1 address ovpn1.somedomain.de } define host{ use linux-server host_name OpenVPN2 alias OpenVPN-Server Nr2 address ovpn2.somedomain.de } (The template that comes with nagios is beeing used). Hope this helps a little. greetz, marcus (By the way, Pallav, a subject with just "help" and several exclamation-marks is not appropriate for a sophisticated mailing-list like this.) - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ 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 The information contained in this e-mail message is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you should return it to the sender immediately. Please note that while we scan all e-mails for viruses we cannot guarantee that any e-mail is virus-free and accept no liability for any damage caused by any virus transmitted by this email.<>- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___ 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 help!!
Hi Pallav, Provided you have setup your 30 hosts in your hosts.cfg or what ever file then all you need to do to define the service is as i show below. define service{ use generic-service host_name winserver1,winserver2,winserver3,..winserver30 service_description Memory Usage check_command check_nt!MEMUSE!-w 80 -c 90 Regards Tom From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: 10 April 2008 10:25 To: Marcus Cc: [EMAIL PROTECTED]; nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Nagios help!! Importance: High Hi Marcus this means that the service defination will also look like this define service{ use generic-service host_name winserver1 service_description Memory Usage check_command check_nt!MEMUSE!-w 80 -c 90 define service{ use generic-service host_name winserver2 service_description Memory Usage check_command check_nt!MEMUSE!-w 80 -c 90 To monitor 30 servers i need to add 30 lines.or is there any way that we monitors number of services in all hosts. Marcus <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 04/10/2008 12:18 PM To nagios-users@lists.sourceforge.net cc Subject Re: [Nagios-users] Nagios help!! [EMAIL PROTECTED] schrieb: > I have added my first windows machine as stated below , now i want to > add more machines , so do i need to add one more windows.cfg file with > new host definations or simply add hostname in present file windows.cfg > seperated by comma , > like > host_nameserver1,server2, The comma-Solution doesnt't work. > This might seem a very stupid questions to many but still as i am new to > this, so i need some help. When I had "my first nagios-day", I ran into the exactly same issue. I monitor two linux-servers which looks like this: define host{ use linux-server host_name OpenVPN1 alias OpenVPN-Server Nr1 address ovpn1.somedomain.de } define host{ use linux-server host_name OpenVPN2 alias OpenVPN-Server Nr2 address ovpn2.somedomain.de } (The template that comes with nagios is beeing used). Hope this helps a little. greetz, marcus (By the way, Pallav, a subject with just "help" and several exclamation-marks is not appropriate for a sophisticated mailing-list like this.) - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/j avaone ___ 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 The information contained in this e-mail message is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you should return it to the sender immediately. Please note that while we scan all e-mails for viruses we cannot guarantee that any e-mail is virus-free and accept no liability for any damage caused by any virus transmitted by this email. <>- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___ 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 help!!
windows.cfg is for all hosts and services for windows boxes that host definition can be copied and pasted for each host you add; just change the host name and address for each box take a look at the documentation for all available options; those listed below are only the base sample http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#host From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Thursday, April 10, 2008 2:27 AM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Nagios help!! Importance: High Hi I am new to nagios ! I have added my first windows machine as stated below , now i want to add more machines , so do i need to add one more windows.cfg file with new host definations or simply add hostname in present file windows.cfg seperated by comma , like host_nameserver1,server2, This might seem a very stupid questions to many but still as i am new to this, so i need some help. Add a new host <http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#host> definition for the Windows machine that you're going to monitor. If this is the *first* Windows machine you're monitoring, you can simply modify the sample host definition in windows.cfg. Change the host_name, alias, and address fields to appropriate values for the Windows box. define host{ use windows-server ; Inherit default values from a Windows server template (make sure you keep this line!) host_name winserver alias My Windows Server address 192.168.1.2 } Good. Now you can add some service definitions (to the same configuration file) in order to tell Nagios to monitor different aspects of the Windows machine. If this is the *first* Windows machine you're monitoring, you can simply modify the sample service definitions in windows.cfg. The information contained in this e-mail message is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you should return it to the sender immediately. Please note that while we scan all e-mails for viruses we cannot guarantee that any e-mail is virus-free and accept no liability for any damage caused by any virus transmitted by this email. <>- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___ 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] Nagios help : to display when was my server last rebooted.
Hi All I want my nagios to display when was my windows/unix based system was last rebooted , Is it possible to do so..since my Uptime is showing that System Uptime 1day 1 hr but i haven't rebooted it . The information contained in this e-mail message is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you should return it to the sender immediately. Please note that while we scan all e-mails for viruses we cannot guarantee that any e-mail is virus-free and accept no liability for any damage caused by any virus transmitted by this email.<>- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___ 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 help : to display when was my server lastrebooted.
Uptime is a funny thing, it can go to zero for a number of reasons, usually because a 32 bit counter has rolled over (after 136 years, 68 years, 500 days, 250 days, 49.7 days (win98 just stalled at this point), or 25 days. You can sometimes monitor the SNMP OID "htSystemUptime", which appears on my linux, solaris and windows 2000 boxes. When this value decreases to nearly 0, you've had a reboot, or the counter has rotated. This value is probably the same value reported by "uptime" on a linux or windows box. If you want to know when your system is available, you could set a "check_ping" *service* on thie host, in nagios, running every 30 seconds with retrys every 5 seconds. If the service goes away, then there's a good chance it's rebooted itself. If you suspect a reboot, look through the logs. In linux, run "last", you should see a "reboot" user if the system has rebooted. In windows check the Security or Applications logs from the suspected reboot time. Perhaps you had a power failure which caused your box to reboot? -- "Power corrupts. Power failure corrupts absolutely" -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: 10 April 2008 12:19 To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Nagios help : to display when was my server lastrebooted. Importance: High Hi All I want my nagios to display when was my windows/unix based system was last rebooted , Is it possible to do so..since my Uptime is showing that System Uptime 1day 1 hr but i haven't rebooted it . The information contained in this e-mail message is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you should return it to the sender immediately. Please note that while we scan all e-mails for viruses we cannot guarantee that any e-mail is virus-free and accept no liability for any damage caused by any virus transmitted by this email. http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ 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 help : to display when was my server lastrebooted.
On Windows, Frequently many admins leave automatic updates on to make there life easier, but as a side effect the server reboots itself usually midweek. To have more controle over the reboot, wither manually run updates or configure a SUS server. Updates installed are published in the System Log as well as the reboot itself. If you really want the last boot time instead of the uptime, add a wrapper shell script that calculates the reboot date by subtracting the uptime from the current time. tony (Author of NC_Net -Windows plugin) On Thu, Apr 10, 2008 at 8:50 AM, Paul Weaver <[EMAIL PROTECTED]> wrote: > Uptime is a funny thing, it can go to zero for a number of reasons, > usually because a 32 bit counter has rolled over (after 136 years, 68 > years, 500 days, 250 days, 49.7 days (win98 just stalled at this point), > or 25 days. > > You can sometimes monitor the SNMP OID "htSystemUptime", which appears > on my linux, solaris and windows 2000 boxes. When this value decreases > to nearly 0, you've had a reboot, or the counter has rotated. > > This value is probably the same value reported by "uptime" on a linux or > windows box. If you want to know when your system is available, you > could set a "check_ping" *service* on thie host, in nagios, running > every 30 seconds with retrys every 5 seconds. If the service goes away, > then there's a good chance it's rebooted itself. > > If you suspect a reboot, look through the logs. In linux, run "last", > you should see a "reboot" user if the system has rebooted. In windows > check the Security or Applications logs from the suspected reboot time. > > Perhaps you had a power failure which caused your box to reboot? > > -- > "Power corrupts. Power failure corrupts absolutely" > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > [EMAIL PROTECTED] > Sent: 10 April 2008 12:19 > To: nagios-users@lists.sourceforge.net > Subject: [Nagios-users] Nagios help : to display when was my server > lastrebooted. > Importance: High > > > > Hi All > > I want my nagios to display when was my windows/unix based system was > last rebooted , Is it possible to do so..since my Uptime is showing > that System Uptime 1day 1 hr but i haven't rebooted it . > > > > > > > The information contained in this e-mail message is intended only for > the use of the individual or entity to which it is addressed. If you are > not the intended recipient, you should return it to the sender > immediately. Please note that while we scan all e-mails for viruses we > cannot guarantee that any e-mail is virus-free and accept no liability > for any damage caused by any virus transmitted by this email. > > http://www.bbc.co.uk/ > This e-mail (and any attachments) is confidential and may contain personal > views which are not the views of the BBC unless specifically stated. > If you have received it in error, please delete it from your system. > Do not use, copy or disclose the information in any way nor act in > reliance on it and notify the sender immediately. > Please note that the BBC monitors e-mails sent or received. > Further communication will signify your consent to this. > > > - > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > ___ > 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 > - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___ 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