Re: [Nagios-users] upgrade nagios 1.4.1 to nagios 3.2.3
Thanks Daniel, If upgrading using an rpm is not advisable; could you please suggest a procedure to upgrade using the source package. I want to plan a clean risk free upgrade plan. After i backup the old configs and remove the Nagios 1.4 rpms; how do i proceed to compile the new Nagios package. Do i have to upgrade the plugins also.?? These are the rpms currently installed nagios-plugins-1.3.1-10.rhel3.dag nagios-plugins-nrpe-2.0-3.rhel3.dag nagios-nrpe-2.0-3.rhel3.dag nagios-nsca-2.4-2.rhel3.dag nagios-1.4.1-1.el3.rf Sunny Jaisinghani -Original Message- From: Daniel Tuecks [mailto:dtue...@googlemail.com] Sent: 14 November 2010 05:46 To: Nagios Users List Subject: Re: [Nagios-users] upgrade nagios 1.4.1 to nagios 3.2.3 Upgrading from Nagios 1 to Nagios 3 will likely break your config. I wouldn't take a chance on the rpm package to do all of the needed changes to make it compatible with nagios 3.2. So doing a backup before upgrading is a wise idea. If your rpm doesn't update your config, please have a look at the following two links: http://support.nagios.com/knowledgebase/faqs/index.php?option=com_content&view=article&id=52&catid=35&faq_id=407&expand=false&showdesc=true http://nagios.sourceforge.net/docs/3_0/upgrading.html#nagios2x Daniel 2010/11/13 Sunny Jaisinghani : > > > > > > -Original Message- > From: Andreas Ericsson [mailto:a...@op5.se] > Sent: 12 November 2010 17:34 > To: Nagios Users List > Cc: Sunny Jaisinghani > Subject: Re: [Nagios-users] upgrade nagios 1.4.1 to nagios 3.2.3 > > On 11/12/2010 10:02 AM, Sunny Jaisinghani wrote: >> Hi, >> >> >> >> Can someone describe steps to upgrade nagios 1.4.1 to nagios 3.2.3. >> >> Currently i am monitoring over 500 hosts and 3000 services using > nagios >> 1.4.1 >> >> I am also using nsca and ocsp for nagios failover. >> >> >> >> Nagios 1.4.1 is installed using rpms >> >> >> >> nagios-plugins-1.3.1-10.rhel3.dag >> >> nagios-plugins-nrpe-2.0-3.rhel3.dag >> >> nagios-nrpe-2.0-3.rhel3.dag >> >> nagios-nsca-2.4-2.rhel3.dag >> >> nagios-1.4.1-1.el3.rf >> >> >> >> I wish to install the newer version using rpm. These are the rpms i >> found >> >> >> >> nagios-3.2.3-2.el5.rf.i386.rpm >> >> nagios-devel-3.2.3-2.el5.rf.i386.rpm >> > > RPM packages quite often contain trigger-scripts that handle > everything automagically. That might not be the case if you go > from rhel3 to rhel5 packages though. > > Make backups before you try anything. > > -- > Andreas Ericsson andreas.erics...@op5.se > OP5 AB www.op5.se > Tel: +46 8-230225 Fax: +46 8-230231 > > Considering the successes of the wars on alcohol, poverty, drugs and > terror, I think we should give some serious thought to declaring war > on peace. > > > Hey Andreas, > > Going to rhel 5 from rhel 3 is also in my to do list. > May be, i'll upgrade to rhel 5 before i upgrade nagios to 3.2.3 > > So, since i am gonna use the rpm, you suggest taking backups and just > upgrading the nagios packages. Right? > > Anything apart from this that i need to take care of? > > Thanks > Sunny > > -- > Centralized Desktop Delivery: Dell and VMware Reference Architecture > Simplifying enterprise desktop deployment and management using > Dell EqualLogic storage and VMware View: A highly scalable, end-to-end > client virtualization framework. Read more! > http://p.sf.net/sfu/dell-eql-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 > -- Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-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 -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev ___ Nagios-user
Re: [Nagios-users] Nagios Historical Data Question
On Nov 15, 2010, at 9:33 AM, Paul M. Dubuc wrote: > Maybe he's looking for this: > > http://nagios.sourceforge.net/docs/ndoutils/NDOUtils_DB_Model.pdf > > the DB schema used by NDOUtils. Could be, but I stopped trying to read people's minds about a decade ago. He's so far asked about configuration and retention so who knows... -- Marc -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev ___ 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] debugging eventhandler via nrpe
make sure you check the right file, since the debug output goes to var/nagios.debug (debug_file=) debug_level=-1 debug_verbosity=2 Then everything is clear. 2010/11/15 Assaf Flatto : > Nagios.log show that the event handler is being executed ,and showing > the passed parameters > > > from nagios.log > > ;JBoss Port > 8080;CRITICAL;SOFT;1;check_nrpe_nonssl!solr-restart!CRITICAL SOFT 1!-t 200 > > > > the "-t 200" is to tell nagios to wait for the reply for 200 seconds - > on the remote host we have a timeout of 300 , so that will allow the > nrpe session time to work the command and then terminate . > > > The debug log is not showing the event handler at all , i have changed > the logging to -1 and hopefully it will give me some more data . > > > Assaf > > > quanta wrote: > >> Check your nagios.log file. Why didn't you put the argument (-t 200) to >> the remote host, in nrpe.cfg? >> >> >> On 11/12/2010 01:21 PM, Assaf Flatto wrote: >> >>> Hello all >>> >>> I am trying to implement an event handler on a remote machine , and >>> having a problem with the way the status arguments are transferred over >>> the NRPE channel . >>> >>> My config is as such : >>> >>> define service{ >>> >>> max_check_attempts 3 >>> event_handler >>> check_nrpe_nonssl!solr-restart!$SERVICESTATE$ $SERVICESTATETYPE$ >>> $SERVICEATTEMPT$!-t 200 >>> >>> >>> } >>> >>> On the remote server the nrpe was compiled with --allow-command-args >>> ,and in the nrpe.cfg i have the following parameters ? >>> >>> dont_blame_nrpe=1 >>> debug=1 >>> command_timeout=300 >>> # Event Handler >>> command[solr-restart]=/usr/local/nagios/libexec/eventhandlers/restart-solr.sh >>> >>> >>> the event handler script is : >>> #!/bin/bash >>> # >>> # Event handler script for restarting the web server on the local machine >>> # >>> # Note: This script will only restart the web server if the service is >>> # retried 3 times (in a "soft" state) or if the web service somehow >>> # manages to fall into a "hard" error state. >>> # >>> >>> case "$1" in >>> OK) >>> # The service just came back up, so don't do anything... >>> ;; >>> WARNING) >>> ;; >>> UNKNOWN) >>> ;; >>> CRITICAL) >>> case "$2" in >>> SOFT) >>> >>> case "$3" in >>> 2) >>> echo "Too early - not restarting yet" >>> exit 0 >>> ;; >>> esac >>> >>> case "$3" in >>> 3) >>> echo "Too early - not restarting yet" >>> exit 0 >>> ;; >>> esac >>> ;; >>> HARD) >>> cd /usr/local/nagios/libexec/eventhandlers/ >>> curl -s -v -u *:*** --request PUT -d @solr7down.xml http://LB >>> sleep 5 >>> sudo /etc/init.d/jboss stop >>> >>> sleep 60 >>> sudo /etc/init.d/jboss start >>> sleep 15 >>> curl -s -v -u *:** --request PUT -d @solr7up.xml http://LB >>> sleep 3 >>> echo " Event handler restarted the solr service" >>> ;; >>> esac >>> ;; >>> esac >>> echo "Event handler restarted the solr service" >>> exit 0 >>> >>> I can see in the syslog that the script is initiated : >>> Nov 11 18:15:44 gbc1-solr-07 nrpe[29687]: Host address is in allowed_hosts >>> Nov 11 18:15:44 gbc1-solr-07 nrpe[29687]: Handling the connection... >>> Nov 11 18:15:44 gbc1-solr-07 nrpe[29687]: Host is asking for command >>> 'solr-restart' to be run... >>> Nov 11 18:15:44 gbc1-solr-07 nrpe[29687]: Running command: >>> /usr/local/nagios/libexec/eventhandlers/restart-solr.sh >>> Nov 11 18:15:44 gbc1-solr-07 nrpe[29687]: Command completed with return >>> code 0 and output: >>> >>> But the event handler is not preforming the tasks it is meant to . >>> >>> >>> when i initiate the command manually >>> >>> ~/libexec/check_nrpe -H -n -c solr-restart -a " Critical HARD 3" >>> -t 200 >>> it is running fine . >>> I know it is an issue with the transfer of the arguments to the nrpe - >>> but i am missing something to make sure they are parsed and sent properly . >>> >>> Anyone can point me to the sign in front of me i am blindingly missing ? >>> >>> Thanks >> to /dev/null >> > > > -- > Never,Ever Cut A Deal With a Dragon > > > Next year I will be doing the London to Paris bike ride to > raise money for the DogTrust (www.dogstrust.co.uk) . > Please Sponsor me at http://www.justgiving.com/Assaf-Flatto > > > -- > Centralized Desktop Delivery: Dell and VMware Reference Architecture > Simplifying enterprise desktop deployment and management using > Dell EqualLogic storage and VMware View: A highly scalable, end-to-end > client virtualization framework. Read more! > http://p.sf.net/sfu/dell-eql-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] AUTO: Eliot Picken is out of the office (returning 17/11/2010)
I am out of the office until 17/11/2010. I am currently out of the office, and I will respond to your email upon my return. Your email has not been forwarded. For all enquiries, please contact Alex Lawrie on +44 (0) 1224 894 000 Note: This is an automated response to your message "Re: [Nagios-users] debugging eventhandler via nrpe" sent on 11/15/2010 6:39:11 PM. This is the only notification you will receive while this person is away. -- Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-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] debugging eventhandler via nrpe
Guess the "-t 200" option got you , because check_nrpe_nonssl!solr-restart!$SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$!-t200 will be processed in two steps: 1) macro expansion in args solr-restart!CRITICAL SOFT 1!-t 200 ARG1=solr-restart ARG2=CRITICAL SOFT 1 ARG3=-t 200 2) macro expansion the whole raw line, 2.1) say the difinition be "check_nrpe -H $HOSTADDRESS$ -n -c $ARG1$ -a $ARG2$ $ARG3$" check_nrpe -H -n -c solr-restart -a "CRITICAL SOFT 1" "-t 200" 2.2) or, say it be "check_nrpe -H $HOSTADDRESS$ -n -c $ARG1$ -a $ARG2$" check_nrpe -H -n -c solr-restart -a "CRITICAL SOFT 1" That is, if more than n args are specified in the case of ARGn being the last positional macro, the additional parts are simply ignored. In any case, "-t 200" is not used as expected, while the default is 10 seconds. Then the check_nrpe generates a query to nrpe: solr-restart!CRITICAL SOFT 1!-t 200 or solr-restart!CRITICAL SOFT 1 And nrpe invoke the defined command as /usr/local/nagios/libexec/eventhandlers/restart-solr.sh "CRITICAL SOFT 1" "-t 200" or /usr/local/nagios/libexec/eventhandlers/restart-solr.sh "CRITICAL SOFT 1" given the definition command[solr-restart]=/usr/local/nagios/libexec/eventhandlers/restart-solr.sh $ARG1$ $ARG2$ or command[solr-restart]=/usr/local/nagios/libexec/eventhandlers/restart-solr.sh $ARG1$ Similary, if more than n args are specified in the case of ARGn being the last positional macro, the additional parts are simply ignored. The above analysis is not verified. thanks, kc 2010/11/15 Assaf Flatto : > Nagios.log show that the event handler is being executed ,and showing > the passed parameters > > > from nagios.log > > ;JBoss Port > 8080;CRITICAL;SOFT;1;check_nrpe_nonssl!solr-restart!CRITICAL SOFT 1!-t 200 > > > > the "-t 200" is to tell nagios to wait for the reply for 200 seconds - > on the remote host we have a timeout of 300 , so that will allow the > nrpe session time to work the command and then terminate . > > > The debug log is not showing the event handler at all , i have changed > the logging to -1 and hopefully it will give me some more data . > > > Assaf > > > quanta wrote: > >> Check your nagios.log file. Why didn't you put the argument (-t 200) to >> the remote host, in nrpe.cfg? >> >> >> On 11/12/2010 01:21 PM, Assaf Flatto wrote: >> >>> Hello all >>> >>> I am trying to implement an event handler on a remote machine , and >>> having a problem with the way the status arguments are transferred over >>> the NRPE channel . >>> >>> My config is as such : >>> >>> define service{ >>> >>> max_check_attempts 3 >>> event_handler >>> check_nrpe_nonssl!solr-restart!$SERVICESTATE$ $SERVICESTATETYPE$ >>> $SERVICEATTEMPT$!-t 200 >>> >>> >>> } >>> >>> On the remote server the nrpe was compiled with --allow-command-args >>> ,and in the nrpe.cfg i have the following parameters ? >>> >>> dont_blame_nrpe=1 >>> debug=1 >>> command_timeout=300 >>> # Event Handler >>> command[solr-restart]=/usr/local/nagios/libexec/eventhandlers/restart-solr.sh >>> >>> >>> the event handler script is : >>> #!/bin/bash >>> # >>> # Event handler script for restarting the web server on the local machine >>> # >>> # Note: This script will only restart the web server if the service is >>> # retried 3 times (in a "soft" state) or if the web service somehow >>> # manages to fall into a "hard" error state. >>> # >>> >>> case "$1" in >>> OK) >>> # The service just came back up, so don't do anything... >>> ;; >>> WARNING) >>> ;; >>> UNKNOWN) >>> ;; >>> CRITICAL) >>> case "$2" in >>> SOFT) >>> >>> case "$3" in >>> 2) >>> echo "Too early - not restarting yet" >>> exit 0 >>> ;; >>> esac >>> >>> case "$3" in >>> 3) >>> echo "Too early - not restarting yet" >>> exit 0 >>> ;; >>> esac >>> ;; >>> HARD) >>> cd /usr/local/nagios/libexec/eventhandlers/ >>> curl -s -v -u *:*** --request PUT -d @solr7down.xml http://LB >>> sleep 5 >>> sudo /etc/init.d/jboss stop >>> >>> sleep 60 >>> sudo /etc/init.d/jboss start >>> sleep 15 >>> curl -s -v -u *:** --request PUT -d @solr7up.xml http://LB >>> sleep 3 >>> echo " Event handler restarted the solr service" >>> ;; >>> esac >>> ;; >>> esac >>> echo "Event handler restarted the solr service" >>> exit 0 >>> >>> I can see in the syslog that the script is initiated : >>> Nov 11 18:15:44 gbc1-solr-07 nrpe[29687]: Host address is in allowed_hosts >>> Nov 11 18:15:44 gbc1-solr-07 nrpe[29687]: Handling the connection... >>> Nov 11 18:15:44 gbc1-solr-07 nrpe[29687]: Host is asking for command >>> 'solr-restart' to be run... >>> Nov 11 18:15:44 gbc1-solr-07 nrpe[29687]: Running command: >>> /usr/local/nagios/libexec/eventhandlers/restart-solr.sh >>> Nov 11 18:15:44 gbc1-solr-07 nrpe[29687]: Command completed with return >>> code 0 and output: >>> >>> But the event handler is not preforming the tasks it is meant to . >>> >>> >>> when i initiate the command manually >>> >>> ~/libexec/check_nrpe -H -n -c solr-r
Re: [Nagios-users] No permission to web-interface
What user doesn't have rights? Did you create a password for the nagiosadmin user account using htpasswd? Are you trying to access administrative functions (issue commands, etc.) - If so you may need to add your account to the various directives in the cgi.cfg file. Did you create a new user? By default you can only see hosts/services that you are assigned as a contact for. (unless you are allowed to via the directive in the cgi.cfg file - authorized_for_all_service_commands or authorized_for_all_host_commands to issue commands and - authorized_for_all_services and authorized_for_all_hosts for view access ) -Original Message- From: Paul M. Dubuc [mailto:w...@paul.dubuc.org] Sent: Monday, November 15, 2010 10:24 AM To: Nagios Users List Subject: Re: [Nagios-users] No permission to web-interface Astakhov Peter wrote: > Hello, colleagues! > I installed nagios on RHEL6. > But I get error on web-interface: > > It appears as though you do not have permission to view information > for any of the hosts you requested... > If you believe this is an error, check the HTTP server authentication > requirements for accessing this CGI and check the authorization > options in your CGI configuration file. > > I checked /etc/httpd/conf.d/nagios.conf > > ScriptAlias /nagios/cgi-bin/ "/usr/lib/nagios/cgi-bin/" > ... Which display are you trying to use when you get this error? I have one instance of Nagios configured with no host groups and this error comes out if I try to view host groups. It's a little confusing since it's not really a permission issue since I have permission to access all the hosts. It's just that there is nothing to display using that particular query. There is no default "all hosts" hostgroup. Paul Dubuc -- Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-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 -- Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-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 Historical Data Question
Marc Powell wrote: > > On Nov 15, 2010, at 8:05 AM, Korrawit Yindeeyoungyeon wrote: > >> Where can I find the standard database schema of Nagios ? or I need to >> find in source code of 3rd party front-end software? > > You'll need to look at the third party software to determine how they get > data into a database. > > Nagios doesn't use a database so has no standard database schema. Each addon > either has it's own specific schema or utilizes one of other common event > broker -> database addons (such as ndoutils). > > -- > Marc Maybe he's looking for this: http://nagios.sourceforge.net/docs/ndoutils/NDOUtils_DB_Model.pdf the DB schema used by NDOUtils. -- Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-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] Map
>> I have a question that I hope someone give me some guidance on. How do I view the map? What I try it still looks all jumbled together. > The map is built automatically based on the parent/child relationship you have set in your host definitions. The default automap is fairly unusable once you hit a non-trivial number of hosts. We have 386 on ours, and nobody bothers. It doesn't help if you want to map certain services instead of hosts either. If you're keen on a map, you need to look at something like nagvis to do that. We have a nice map of the country/world showing connections to various overseas bureaus. Not too useful from a support point of view (most of it is green for most of the time), but is does give management something nice to look at. From: Macleod, Chris [mailto:cmacl...@edrington.co.uk] Sent: 11 November 2010 15:36 To: Nagios Users List Subject: Re: [Nagios-users] Map The map is built automatically based on the parent/child relationship you have set in your host definitions. For instance if you make Switch1 the parent of Server1 and switch1 parent is local host you will have a map of Server1->Switch1=>Localhost This also means if switch1 goes down nagios knows server1 will be unreachable - helps reduce alerts. From: Edwin Zoeller [mailto:edwin.zoel...@ama-assn.org] Sent: 11 November 2010 15:20 To: Nagios Users List Subject: [Nagios-users] Map I have a question that I hope someone give me some guidance on. How do I view the map? What I try it still looks all jumbled together. Thanks, Ed 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. -- Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-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] No permission to web-interface
Astakhov Peter wrote: > Hello, colleagues! > I installed nagios on RHEL6. > But I get error on web-interface: > > It appears as though you do not have permission to view information for > any of the hosts you requested... > If you believe this is an error, check the HTTP server authentication > requirements for accessing this CGI > and check the authorization options in your CGI configuration file. > > I checked /etc/httpd/conf.d/nagios.conf > > ScriptAlias /nagios/cgi-bin/ "/usr/lib/nagios/cgi-bin/" > ... Which display are you trying to use when you get this error? I have one instance of Nagios configured with no host groups and this error comes out if I try to view host groups. It's a little confusing since it's not really a permission issue since I have permission to access all the hosts. It's just that there is nothing to display using that particular query. There is no default "all hosts" hostgroup. Paul Dubuc -- Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-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] Another Nagios Historical Data Question
On Nov 15, 2010, at 8:12 AM, Ales Rikovsky wrote: > I know. It's stored in /var/log/nagios/archives/x.log > > But I'm not hunger for rewriting the tons of files manually. > Can anyone help me with the script or something like that, maybe if it > could ask for old and new names and rewrites all occurences in the log > liles correctly. > __ > > Enter the old name: blahblahold > Enter the new name: blahblahnew It could be something as simple as -- sed -i .bak 's/blahblahold/blahblanew/g' /var/log/nagios/archives/*.log I leave how to pass the 'blahblahold' and 'blahblahnew' as a rather straighforward exercise for you. -- Marc -- Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-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 Historical Data Question
On Nov 15, 2010, at 8:05 AM, Korrawit Yindeeyoungyeon wrote: > Where can I find the standard database schema of Nagios ? or I need to > find in source code of 3rd party front-end software? You'll need to look at the third party software to determine how they get data into a database. Nagios doesn't use a database so has no standard database schema. Each addon either has it's own specific schema or utilizes one of other common event broker -> database addons (such as ndoutils). -- Marc -- Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-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] Another Nagios Historical Data Question
On 15.11.2010 13:22, Keith Bastin wrote: > I am referring to a search and replace > within each of the history files, not the names of those files. The Nagios > Archives all of the state change data for hosts and services within a flat > text file that is rolled daily. Those files are stored in the archives > folder and whenever you run a trend report on a service or host state > history it parses every daily file in the archive folder that falls within > the date range of your query. Well, I know. It's stored in /var/log/nagios/archives/x.log But I'm not hunger for rewriting the tons of files manually. Can anyone help me with the script or something like that, maybe if it could ask for old and new names and rewrites all occurences in the log liles correctly. __ Enter the old name: blahblahold Enter the new name: blahblahnew . __ ;-))) Thanks in advance Ales R. -- Ales Rikovsky +420 585631826 ales.rikov...@upol.cz Biskupske nam. 1 Palacky University Computer Center 771 11 Olomouc -- Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-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 Historical Data Question
Where can I find the standard database schema of Nagios ? or I need to find in source code of 3rd party front-end software? On Mon, Nov 15, 2010 at 4:33 PM, Romain Le Merlus wrote: > Hi Korrawit, > > On Mon, Nov 15, 2010 at 9:15 AM, Andreas Ericsson wrote: >> >> > 3.) Can Nagios work with MySQL? How? >> Via eventbroker modules such as Merlin or NDOUtils, Nagios can store >> information in a database. The standard UI doesn't work with either >> of those database backends though. The only free UI I know of that >> has full support for everything and uses mysql as a backend is Ninja, >> which works with the Merlin schema. > > > There is also the Centreon software which provide a very nice UI and some > new features to Nagios. > http://www.centreon.com > http://demo.centreon.com/ > > Best regards. > -- > Romain LE MERLUS > > -- > Centralized Desktop Delivery: Dell and VMware Reference Architecture > Simplifying enterprise desktop deployment and management using > Dell EqualLogic storage and VMware View: A highly scalable, end-to-end > client virtualization framework. Read more! > http://p.sf.net/sfu/dell-eql-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 > -- Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-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] Another Nagios Historical Data Question
I am referring to a search and replace within each of the history files, not the names of those files. The Nagios Archives all of the state change data for hosts and services within a flat text file that is rolled daily. Those files are stored in the archives folder and whenever you run a trend report on a service or host state history it parses every daily file in the archive folder that falls within the date range of your query. --- When you run the history reports they build the historical data by parsing for the service name in the files in the archives folder. The reason the history isn't there is because the name has changed. You could do a search and replace on all the files in the archive folder to stamp them with the new service name if you really want to maintain that history. -Original Message- From: Ales Rikovsky [mailto:ales.rikov...@upol.cz] Sent: Monday, November 15, 2010 4:52 AM To: Nagios Users List Subject: [Nagios-users] Another Nagios Historical Data Question Hi, when I change name of the host or service, I'll lose history for them. Has anyone found the solution for that problem? Probably some script, that will replace names of of the host and/or service in the log files Thank you. Ales -- Ales Rikovsky +420 585631826 ales.rikov...@upol.cz Biskupske nam. 1 Palacky University Computer Center 771 11 Olomouc -- Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-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 -- Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-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] Another Nagios Historical Data Question
When you run the history reports they build the historical data by parsing for the service name in the files in the archives folder. The reason the history isn't there is because the name has changed. You could do a search and replace on all the files in the archive folder to stamp them with the new service name if you really want to maintain that history. -Original Message- From: Ales Rikovsky [mailto:ales.rikov...@upol.cz] Sent: Monday, November 15, 2010 4:52 AM To: Nagios Users List Subject: [Nagios-users] Another Nagios Historical Data Question Hi, when I change name of the host or service, I'll lose history for them. Has anyone found the solution for that problem? Probably some script, that will replace names of of the host and/or service in the log files Thank you. Ales -- Ales Rikovsky +420 585631826 ales.rikov...@upol.cz Biskupske nam. 1 Palacky University Computer Center 771 11 Olomouc -- Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-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 -- Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-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 Historical Data Question
Hi Korrawit, On Mon, Nov 15, 2010 at 9:15 AM, Andreas Ericsson wrote: > > 3.) Can Nagios work with MySQL? How? > Via eventbroker modules such as Merlin or NDOUtils, Nagios can store > information in a database. The standard UI doesn't work with either > of those database backends though. The only free UI I know of that > has full support for everything and uses mysql as a backend is Ninja, > which works with the Merlin schema. > There is also the Centreon software which provide a very nice UI and some new features to Nagios. http://www.centreon.com http://demo.centreon.com/ Best regards. -- Romain LE MERLUS -- Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-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 Historical Data Question
Note that by default Nagios only retains a history of state changes - it does NOT retain the results of service checks for trending, If you want to maintain results for trending purposes You will need to modify your service checks to write the relevant performance trend data to a database or file to be processed by a trending tool (such as cacti). Also if you are running SUSE 11 the default installation auto-archives the "archive" folders with a cron job in the /etc/cron.weekly folder. This basically bzip's each daily archive file which will prevent Nagios from being able to read them when you run the state history trends. -Original Message- From: Korrawit Yindeeyoungyeon [mailto:skaaa.a...@gmail.com] Sent: Monday, November 15, 2010 4:25 AM To: Nagios Users List Subject: Re: [Nagios-users] Nagios Historical Data Question Thank Marc Powell On Mon, Nov 15, 2010 at 3:21 PM, Marc Powell wrote: > > On Nov 15, 2010, at 2:06 AM, Korrawit Yindeeyoungyeon wrote: > >> Hi, I'm new with Nagios. I have questions. >> >> 1.) Can Nagios keeps the historical data ? How? > > Yes, it does this by default. Historical data is kept in the archive directory, typically /usr/local/nagios/var/archives. > >> 2.) Now,I'm use flat file to keep the data.Can I get the historical data? > > Yes. Nagios only uses flat files for data. No special action is necessary and the web interface is used to display that data or you can parse the files and use the data on your own. > >> 3.) Can Nagios work with MySQL? How? > > Not directly but there are addons available at > http://exchange.nagios.org to tie nagios to MySQL for both > configuration (i.e. front ends that store their data in MySQL, then > generate the flat file with configuration data that nagios requires) > and data retention for parsing/presentation by other third party apps > (i.e. merlin or other alternative front end.) > > -- > Marc > > -- > Centralized Desktop Delivery: Dell and VMware Reference > Architecture Simplifying enterprise desktop deployment and management > using Dell EqualLogic storage and VMware View: A highly scalable, > end-to-end client virtualization framework. Read more! > http://p.sf.net/sfu/dell-eql-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 > -- Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-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 -- Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-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] No permission to web-interface
Hello, colleagues! I installed nagios on RHEL6. But I get error on web-interface: It appears as though you do not have permission to view information for any of the hosts you requested... If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI and check the authorization options in your CGI configuration file. I checked /etc/httpd/conf.d/nagios.conf ScriptAlias /nagios/cgi-bin/ "/usr/lib/nagios/cgi-bin/" Options ExecCGI AllowOverride None Order allow,deny Allow from all AuthName "Nagios Access" AuthType Basic AuthUserFile /etc/nagios/htpasswd.users Require valid-user Alias /nagios "/usr/share/nagios/html" Options None AllowOverride None Order allow,deny Allow from all AuthName "Nagios Access" AuthType Basic AuthUserFile /etc/nagios/htpasswd.users Require valid-user I create /etc/nagios/htpasswd.users and add user nagiosadmin I checked cgi.cfg for this parameters: use_authentication=1 authorized_for_system_information=nagiosadmin authorized_for_configuration_information=nagiosadmin authorized_for_system_commands=nagiosadmin authorized_for_all_services=nagiosadmin authorized_for_all_hosts=nagiosadmin authorized_for_all_service_commands=nagiosadmin authorized_for_all_host_commands=nagiosadmin SELinux is off. What is wrong? Astakhov Peter -- Астахов П.В. Начальник департамента АСУ и ТК ОАО "Ярославский Бройлер" -- Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-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] Another Nagios Historical Data Question
Hi, when I change name of the host or service, I'll lose history for them. Has anyone found the solution for that problem? Probably some script, that will replace names of of the host and/or service in the log files Thank you. Ales -- Ales Rikovsky +420 585631826 ales.rikov...@upol.cz Biskupske nam. 1 Palacky University Computer Center 771 11 Olomouc -- Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-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] debugging eventhandler via nrpe
Nagios.log show that the event handler is being executed ,and showing the passed parameters from nagios.log ;JBoss Port 8080;CRITICAL;SOFT;1;check_nrpe_nonssl!solr-restart!CRITICAL SOFT 1!-t 200 the "-t 200" is to tell nagios to wait for the reply for 200 seconds - on the remote host we have a timeout of 300 , so that will allow the nrpe session time to work the command and then terminate . The debug log is not showing the event handler at all , i have changed the logging to -1 and hopefully it will give me some more data . Assaf quanta wrote: > Check your nagios.log file. Why didn't you put the argument (-t 200) to > the remote host, in nrpe.cfg? > > > On 11/12/2010 01:21 PM, Assaf Flatto wrote: > >> Hello all >> >> I am trying to implement an event handler on a remote machine , and >> having a problem with the way the status arguments are transferred over >> the NRPE channel . >> >> My config is as such : >> >> define service{ >> >> max_check_attempts 3 >> event_handler >> check_nrpe_nonssl!solr-restart!$SERVICESTATE$ $SERVICESTATETYPE$ >> $SERVICEATTEMPT$!-t 200 >> >> >> } >> >> On the remote server the nrpe was compiled with --allow-command-args >> ,and in the nrpe.cfg i have the following parameters ? >> >> dont_blame_nrpe=1 >> debug=1 >> command_timeout=300 >> # Event Handler >> command[solr-restart]=/usr/local/nagios/libexec/eventhandlers/restart-solr.sh >> >> >> the event handler script is : >> #!/bin/bash >> # >> # Event handler script for restarting the web server on the local machine >> # >> # Note: This script will only restart the web server if the service is >> # retried 3 times (in a "soft" state) or if the web service somehow >> # manages to fall into a "hard" error state. >> # >> >> case "$1" in >> OK) >> # The service just came back up, so don't do anything... >> ;; >> WARNING) >> ;; >> UNKNOWN) >> ;; >> CRITICAL) >> case "$2" in >> SOFT) >> >> case "$3" in >> 2) >> echo "Too early - not restarting yet" >> exit 0 >> ;; >> esac >> >> case "$3" in >> 3) >> echo "Too early - not restarting yet" >> exit 0 >> ;; >> esac >> ;; >> HARD) >> cd /usr/local/nagios/libexec/eventhandlers/ >> curl -s -v -u *:*** --request PUT -d @solr7down.xml http://LB >> sleep 5 >> sudo /etc/init.d/jboss stop >> >> sleep 60 >> sudo /etc/init.d/jboss start >> sleep 15 >> curl -s -v -u *:** --request PUT -d @solr7up.xml http://LB >> sleep 3 >> echo " Event handler restarted the solr service" >> ;; >> esac >> ;; >> esac >> echo "Event handler restarted the solr service" >> exit 0 >> >> I can see in the syslog that the script is initiated : >> Nov 11 18:15:44 gbc1-solr-07 nrpe[29687]: Host address is in allowed_hosts >> Nov 11 18:15:44 gbc1-solr-07 nrpe[29687]: Handling the connection... >> Nov 11 18:15:44 gbc1-solr-07 nrpe[29687]: Host is asking for command >> 'solr-restart' to be run... >> Nov 11 18:15:44 gbc1-solr-07 nrpe[29687]: Running command: >> /usr/local/nagios/libexec/eventhandlers/restart-solr.sh >> Nov 11 18:15:44 gbc1-solr-07 nrpe[29687]: Command completed with return >> code 0 and output: >> >> But the event handler is not preforming the tasks it is meant to . >> >> >> when i initiate the command manually >> >> ~/libexec/check_nrpe -H -n -c solr-restart -a " Critical HARD 3" >> -t 200 >> it is running fine . >> I know it is an issue with the transfer of the arguments to the nrpe - >> but i am missing something to make sure they are parsed and sent properly . >> >> Anyone can point me to the sign in front of me i am blindingly missing ? >> >> Thanks > to /dev/null > -- Never,Ever Cut A Deal With a Dragon Next year I will be doing the London to Paris bike ride to raise money for the DogTrust (www.dogstrust.co.uk) . Please Sponsor me at http://www.justgiving.com/Assaf-Flatto -- Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-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 Historical Data Question
Thank Marc Powell On Mon, Nov 15, 2010 at 3:21 PM, Marc Powell wrote: > > On Nov 15, 2010, at 2:06 AM, Korrawit Yindeeyoungyeon wrote: > >> Hi, I'm new with Nagios. I have questions. >> >> 1.) Can Nagios keeps the historical data ? How? > > Yes, it does this by default. Historical data is kept in the archive > directory, typically /usr/local/nagios/var/archives. > >> 2.) Now,I'm use flat file to keep the data.Can I get the historical data? > > Yes. Nagios only uses flat files for data. No special action is necessary and > the web interface is used to display that data or you can parse the files and > use the data on your own. > >> 3.) Can Nagios work with MySQL? How? > > Not directly but there are addons available at http://exchange.nagios.org to > tie nagios to MySQL for both configuration (i.e. front ends that store their > data in MySQL, then generate the flat file with configuration data that > nagios requires) and data retention for parsing/presentation by other third > party apps (i.e. merlin or other alternative front end.) > > -- > Marc > > -- > Centralized Desktop Delivery: Dell and VMware Reference Architecture > Simplifying enterprise desktop deployment and management using > Dell EqualLogic storage and VMware View: A highly scalable, end-to-end > client virtualization framework. Read more! > http://p.sf.net/sfu/dell-eql-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 > -- Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-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 Historical Data Question
Thank Andreas Ericsson On Mon, Nov 15, 2010 at 3:15 PM, Andreas Ericsson wrote: > On 11/15/2010 09:06 AM, Korrawit Yindeeyoungyeon wrote: >> Hi, I'm new with Nagios. I have questions. >> >> 1.) Can Nagios keeps the historical data ? How? >> > > Yes. The log-files store all state-changes. > >> 2.) Now,I'm use flat file to keep the data.Can I get the historical data? >> > > From the logfiles, yes. > >> 3.) Can Nagios work with MySQL? How? >> > > Via eventbroker modules such as Merlin or NDOUtils, Nagios can store > information in a database. The standard UI doesn't work with either > of those database backends though. The only free UI I know of that > has full support for everything and uses mysql as a backend is Ninja, > which works with the Merlin schema. > > Google will help you further. > > -- > Andreas Ericsson andreas.erics...@op5.se > OP5 AB www.op5.se > Tel: +46 8-230225 Fax: +46 8-230231 > > Considering the successes of the wars on alcohol, poverty, drugs and > terror, I think we should give some serious thought to declaring war > on peace. > -- Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-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] debugging eventhandler via nrpe
Check your nagios.log file. Why didn't you put the argument (-t 200) to the remote host, in nrpe.cfg? On 11/12/2010 01:21 PM, Assaf Flatto wrote: > Hello all > > I am trying to implement an event handler on a remote machine , and > having a problem with the way the status arguments are transferred over > the NRPE channel . > > My config is as such : > > define service{ > > max_check_attempts 3 > event_handler > check_nrpe_nonssl!solr-restart!$SERVICESTATE$ $SERVICESTATETYPE$ > $SERVICEATTEMPT$!-t 200 > > > } > > On the remote server the nrpe was compiled with --allow-command-args > ,and in the nrpe.cfg i have the following parameters ? > > dont_blame_nrpe=1 > debug=1 > command_timeout=300 > # Event Handler > command[solr-restart]=/usr/local/nagios/libexec/eventhandlers/restart-solr.sh > > > the event handler script is : > #!/bin/bash > # > # Event handler script for restarting the web server on the local machine > # > # Note: This script will only restart the web server if the service is > # retried 3 times (in a "soft" state) or if the web service somehow > # manages to fall into a "hard" error state. > # > > case "$1" in > OK) > # The service just came back up, so don't do anything... > ;; > WARNING) > ;; > UNKNOWN) > ;; > CRITICAL) > case "$2" in > SOFT) > > case "$3" in > 2) > echo "Too early - not restarting yet" > exit 0 > ;; > esac > > case "$3" in > 3) > echo "Too early - not restarting yet" > exit 0 > ;; > esac > ;; > HARD) > cd /usr/local/nagios/libexec/eventhandlers/ > curl -s -v -u *:*** --request PUT -d @solr7down.xml http://LB > sleep 5 > sudo /etc/init.d/jboss stop > > sleep 60 > sudo /etc/init.d/jboss start > sleep 15 > curl -s -v -u *:** --request PUT -d @solr7up.xml http://LB > sleep 3 > echo " Event handler restarted the solr service" > ;; > esac > ;; > esac > echo "Event handler restarted the solr service" > exit 0 > > I can see in the syslog that the script is initiated : > Nov 11 18:15:44 gbc1-solr-07 nrpe[29687]: Host address is in allowed_hosts > Nov 11 18:15:44 gbc1-solr-07 nrpe[29687]: Handling the connection... > Nov 11 18:15:44 gbc1-solr-07 nrpe[29687]: Host is asking for command > 'solr-restart' to be run... > Nov 11 18:15:44 gbc1-solr-07 nrpe[29687]: Running command: > /usr/local/nagios/libexec/eventhandlers/restart-solr.sh > Nov 11 18:15:44 gbc1-solr-07 nrpe[29687]: Command completed with return > code 0 and output: > > But the event handler is not preforming the tasks it is meant to . > > > when i initiate the command manually > > ~/libexec/check_nrpe -H -n -c solr-restart -a " Critical HARD 3" > -t 200 > it is running fine . > I know it is an issue with the transfer of the arguments to the nrpe - > but i am missing something to make sure they are parsed and sent properly . > > Anyone can point me to the sign in front of me i am blindingly missing ? > > Thanks > > -- Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-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 Historical Data Question
On Nov 15, 2010, at 2:06 AM, Korrawit Yindeeyoungyeon wrote: > Hi, I'm new with Nagios. I have questions. > > 1.) Can Nagios keeps the historical data ? How? Yes, it does this by default. Historical data is kept in the archive directory, typically /usr/local/nagios/var/archives. > 2.) Now,I'm use flat file to keep the data.Can I get the historical data? Yes. Nagios only uses flat files for data. No special action is necessary and the web interface is used to display that data or you can parse the files and use the data on your own. > 3.) Can Nagios work with MySQL? How? Not directly but there are addons available at http://exchange.nagios.org to tie nagios to MySQL for both configuration (i.e. front ends that store their data in MySQL, then generate the flat file with configuration data that nagios requires) and data retention for parsing/presentation by other third party apps (i.e. merlin or other alternative front end.) -- Marc -- Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-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 Historical Data Question
On 11/15/2010 09:06 AM, Korrawit Yindeeyoungyeon wrote: > Hi, I'm new with Nagios. I have questions. > > 1.) Can Nagios keeps the historical data ? How? > Yes. The log-files store all state-changes. > 2.) Now,I'm use flat file to keep the data.Can I get the historical data? > >From the logfiles, yes. > 3.) Can Nagios work with MySQL? How? > Via eventbroker modules such as Merlin or NDOUtils, Nagios can store information in a database. The standard UI doesn't work with either of those database backends though. The only free UI I know of that has full support for everything and uses mysql as a backend is Ninja, which works with the Merlin schema. Google will help you further. -- Andreas Ericsson andreas.erics...@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 Considering the successes of the wars on alcohol, poverty, drugs and terror, I think we should give some serious thought to declaring war on peace. -- Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-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 Historical Data Question
Hi, I'm new with Nagios. I have questions. 1.) Can Nagios keeps the historical data ? How? 2.) Now,I'm use flat file to keep the data.Can I get the historical data? 3.) Can Nagios work with MySQL? How? Thank you.. -- Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-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