Re: [Nagios-users] Deleted init.d script
On Sun, Mar 29, 2009 at 1:05 AM, Harry Rickards hricka...@l33tmyst.com wrote: Thanks, I copied the daemon-init script to /etc/init.d/nagios, and t works great. Am I right in thinking that to make Nagios start at system bootup, I have to create a link to /etc/init.d/nagios in /etc/rcS.d, and then enable nagios for my default runlevel with sysv-rc-conf, or just linking in the appropriate directory? debian uses update-rc.d to create the symlinks in /etc/rc*.d/; if you cd to /etc/init.d and as root run # update-rc.d nagios defaults [enter] it should do what you want; maybe the symlinks already exist (you said you deleted the init script, but if you didn't run update-rc.d to remove the symlinks, they should be there (in theory); just check with ls -l /etc/rc*.d/*nagios if you see broken links there. -- groeten, Natxo Asenjo -- ___ 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 MySQL
Ricardo Maraschini wrote: - Mark Weaver mwea...@compinfosystems.com escreveu: I was wondering if anyone has connected their standard Nagios installation up to a MySQL backend? You can take a look to www.opmon.org We make available a configuration tool called OpCfg and an event broker(including performance data parse), so every information will be in a mysql db. Regarding to backup issue, you can run a rpm -ql package name to get gathered all Nagios instalation files and make a backup of them. HTH. -rm Hi Ricardo, I've got OpCfg installed and I think it's working, and if I understand things so far it's imported all my nagios settings including objects and templates and such into the db. I can make changes, adjustments, etc... with OpCfg and then I've got to export those changes or additions back out to the Nagios config on disk. However it doesn't appear to be doing that and I'm not sure why. All Nagios configuration files for everything on the Nagios server is in /etc/nagios and OpCfg appears to be aware of that. I've made /etc/nagios and everything under that directory writable for nagios.apache, but when I make changes such as create a workstation template and then add a host made from that template the files aren't being written back to disk. (Let me know if you need any more information. The directory structure for Nagios configuration on disk looks like this: /etc/nagios/: cgi.cfg command-plugins.cfg global htpasswd.users nagios.cfg ndo2db.cfg ndomod.cfg nrpe.cfg nsca.cfg objects resource.cfg send_nsca.cfg /etc/nagios/global: commands contacts templates /etc/nagios/global/commands: commands.cfg /etc/nagios/global/contacts: contactgroups.cfg contacts.cfg /etc/nagios/global/templates: templates.cfg timeperiods.cfg /etc/nagios/objects: commands.cfg contacts.cfg fma kfsi localhost.cfg printer.cfg pshare switch.cfg templates.cfg timeperiods.cfg windows.cfg /etc/nagios/objects/fma: Cmaloney-1-services.cfg David-services.cfg exchange-services.cfg fma-contactgroups.cfg fmadc01-services.cfg fmaexch01-services.cfg fma-hostgroups.cfg fma-hosts.cfg FMA-Mobile-services.cfg fmaws1-services.cfg fmaws2-services.cfg fmaws3-services.cfg fmaws4-services.cfg fmaws5-services.cfg Peter01-services.cfg /etc/nagios/objects/kfsi: application-services.cfg citrix1-services.cfg citrix2-services.cfg frank-home-services.cfg kelly-pdc-services.cfg kfsi-hostgroups.cfg kfsi-hosts.cfg markweaver-pc.cfg mxgw-services.cfg old sandbox-service.cfg /etc/nagios/objects/kfsi/old: carol.cfg.old frankkelly.cfg.old karen.cfg.old markweaver-pc.cfg.old printer.cfg.old servicegroups.cfg.old switch.cfg.old tax1.cfg.old windows.cfg.old xerox.cfg.old /etc/nagios/objects/pshare: ps-contactgroups.cfg ps-hostgroups.cfg ps-hosts.cfg receptionist-services.cfg sbserver-services.cfg -- ___ 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 MySQL
Ricardo Maraschini wrote: - Mark Weaver mwea...@compinfosystems.com escreveu: I was wondering if anyone has connected their standard Nagios installation up to a MySQL backend? You can take a look to www.opmon.org We make available a configuration tool called OpCfg and an event broker(including performance data parse), so every information will be in a mysql db. Regarding to backup issue, you can run a rpm -ql package name to get gathered all Nagios instalation files and make a backup of them. HTH. -rm Hi Ricardo, I've got OpCfg installed and I think it's working, and if I understand things so far it's imported all my nagios settings including objects and templates and such into the db. I can make changes, adjustments, etc... with OpCfg and then I've got to export those changes or additions back out to the Nagios config on disk. However it doesn't appear to be doing that and I'm not sure why. All Nagios configuration files for everything on the Nagios server is in /etc/nagios and OpCfg appears to be aware of that. I've made /etc/nagios and everything under that directory writable for nagios.apache, but when I make changes such as create a workstation template and then add a host made from that template the files aren't being written back to disk. (Let me know if you need any more information. The directory structure for Nagios configuration on disk looks like this: /etc/nagios/: cgi.cfg command-plugins.cfg global htpasswd.users nagios.cfg ndo2db.cfg ndomod.cfg nrpe.cfg nsca.cfg objects resource.cfg send_nsca.cfg /etc/nagios/global: commands contacts templates /etc/nagios/global/commands: commands.cfg /etc/nagios/global/contacts: contactgroups.cfg contacts.cfg /etc/nagios/global/templates: templates.cfg timeperiods.cfg /etc/nagios/objects: commands.cfg contacts.cfg fma kfsi localhost.cfg printer.cfg pshare switch.cfg templates.cfg timeperiods.cfg windows.cfg /etc/nagios/objects/fma: Cmaloney-1-services.cfg David-services.cfg exchange-services.cfg fma-contactgroups.cfg fmadc01-services.cfg fmaexch01-services.cfg fma-hostgroups.cfg fma-hosts.cfg FMA-Mobile-services.cfg fmaws1-services.cfg fmaws2-services.cfg fmaws3-services.cfg fmaws4-services.cfg fmaws5-services.cfg Peter01-services.cfg /etc/nagios/objects/kfsi: application-services.cfg citrix1-services.cfg citrix2-services.cfg frank-home-services.cfg kelly-pdc-services.cfg kfsi-hostgroups.cfg kfsi-hosts.cfg markweaver-pc.cfg mxgw-services.cfg old sandbox-service.cfg /etc/nagios/objects/kfsi/old: carol.cfg.old frankkelly.cfg.old karen.cfg.old markweaver-pc.cfg.old printer.cfg.old servicegroups.cfg.old switch.cfg.old tax1.cfg.old windows.cfg.old xerox.cfg.old /etc/nagios/objects/pshare: ps-contactgroups.cfg ps-hostgroups.cfg ps-hosts.cfg receptionist-services.cfg sbserver-services.cfg -- ___ 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] NRPE vs. check_by_ssh
Charlie Reddington wrote: +1 on the control master. We have about 1000 checks over 300 hosts and using control master made the box much more stable and quite frankly usable. Saved a lot of plug in time outs as well. Think about 1000 checks every 5 or 10 minutes. That's 1000 encrypted tunnels that are going up and down. That's a lot of overhead for a quick check, let along if your server is checking say 5 or 10 things back to back. http://www.torchbox.com/blog/ssh_tips_2.html Charlie Charlie, Sounded interesting so I gave this a try on our test environment, with the following config: Host * ControlMaster auto ControlPath ~/.ssh/master...@%h:%p Initially, all looked well, but then we started to see these: Remote command execution failed: Control socket connect(/var/log/nagios/.ssh/master-r...@192.168.100.100:22): Connection refused So you see this as well in your environment? Best Regards, Camron Camron W. Fox Hilo Office High Performance Computing Group Fujitsu Management Services of America, Inc. E-mail: cw...@us.fujitsu.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] check_ntp on blade systems
I'm using check_ntp for some of my blade systems and it says: NTP CRITICAL: No response from NTP server By using the verbose mode I can see it's sending: sending request to peer 0 re-sending request to peer 0 re-sending request to peer 0 re-sending request to peer 0 re-sending request to peer 0 re-sending request to peer 0 re-sending request to peer 0 re-sending request to peer 0 re-sending request to peer 0 NTP CRITICAL: No response from NTP server I used tcpdump from the blade server and can see packets coming in from the nagios server. I use check_ntp to monitor many of my other systems without any problem. I also do lots of other checks (including various SNMP checks) on the blade system via Nagios without any problem. Thanks for any help. -- ___ 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] Add users to contact group
I would like to add my Active Directory users to nagios contact group. I have edited /etc/nagios/objects/contacts.cfg file and added: define contactgroup{ contactgroup_name ad alias ad members user1, user2 } On the same file I defined contact: define contact{ contact_namead use generic-contact alias ad email email } but I get an error: could not find any contact matching ad Is there any way to define all Active Directory users in a group? Thanks. -- ___ 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] detecting rogue dhcp server
On Thu, Mar 26, 2009 at 6:52 PM, Andreas Ericsson a...@op5.se wrote: Chris wrote: Is there any plugin exist to detect rogue dhcp servers across all vlans/ subnet? I have had a look at two programs (not Nagios plugins): dhcp_probe and roguedetect - none suitable for human consumption yet. There is an excellent program on Windows call dhcploc.exe but I'm on Linux. check_dhcp can sort of do what you want. Give it a whirl. After doing a lot of Google searching I found http://archive.netbsd.se/?ml=nagiosplug-devela=2007-12t=5955729 Looks like there is an -x switch which will do exactly that. But I'm having trouble locating that check_dhcp C program or even the plugin bundle. Mine doesn't have the -x switch. Does anyone know where can I download this code? Thanks. -- ___ 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