[Nagios-users] Encrypt Domain log in details inside my cfg files
Hi all, For a couple of my SQL checks I need to connect using a domain user account. Now I have to put this information in plain text into my sqlserver.cfg file. How can I go about encrypting this username/password or any other method that means I don't have to put domain login details in plain text into my cfg file? Cheers -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d___ 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 flooding outside email addresses
I have sendmail setup to use our smtp server as a forwarder. This has been working great so far. The only issue I am seeing is, outside email addresses such as a cell number @vtext.com is having messages sent to it several times a second; until Verizon finally rate limits the messages. This in turn queues up the messages, and a large number come through again. This does NOT happen with any internal email addresses. If I check the mail log, I can see Nagios sending the message several times a second to only outside email addresses and only once to internal email addresses. I am not sure what the issue is. I will give you a sample of my config define contact{ namegeneric-contact ; The name of this contact template service_notification_period 24x7; service notifications can be sent anytime host_notification_period24x7; host notifications can be sent anytime service_notification_optionsw,u,c,r,f,s ; send notifications for all service states, flapping events, and scheduled downtime events host_notification_options d,u,r,f,s ; send notifications for all host states, flapping events, and scheduled downtime events service_notification_commands notify-service-by-email ; send service notifications via email host_notification_commands notify-host-by-email; send host notifications via email register0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL CONTACT, JUST A TEMPLATE! } define contact{ contact_name guys-cell use generic-contact alias John Doe email xxx8777...@vtext.com } define contactgroup{ contactgroup_name network-admin alias Switches and networking admins members guys-cell } Thanks -- Jeremy L. Gibbs Systems Administrator Utica College Integrated Information Technology Services (315) 223-2383 -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d___ 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] How to import modified host and service files in DB from CLI
On 03/13/2012 10:19 AM, Manish_Kmr wrote: > Hi, > > We are using NagiosXI, but still we prefer to do most of the things > from CLI. Most often we are adding or removing some service from a > no. of files and again we need to import these modified files into DB > using NagiosXI UI. Its very difficult to search and import a large > no. of these files using UI. Is there any way i can import these > modified files into NagiosXI DB from command line without using > NagiosXI User Interface. > You'll want to ask the Nagios XI forums for things concerning everything but the Nagios core. -- 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. -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d ___ 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] How to import modified host and service files in DB from CLI
Hi, We are using NagiosXI, but still we prefer to do most of the things from CLI. Most often we are adding or removing some service from a no. of files and again we need to import these modified files into DB using NagiosXI UI. Its very difficult to search and import a large no. of these files using UI. Is there any way i can import these modified files into NagiosXI DB from command line without using NagiosXI User Interface. Thanks, Manish Kumar, Mahindra Satyam, Tools Team DISCLAIMER: This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d___ 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] Disable Event Handlers for all hosts in a hostgroup
Hi, Is there any way we can disable and enable event handlers for all hosts in a particular hostgroup in one go. Thanks, Manish Kumar Open Source Tools Team, IMS, Mahindra Satyam Mob: +919035435306 DISCLAIMER: This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d___ 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] check_disk '/sys not accessable'
We had some similar issues which were originated in missing policies for SELinux. -Ursprüngliche Nachricht- Von: Boyer, Timothy A. [mailto:timothy.bo...@opm.gov] Gesendet: Montag, 12. März 2012 20:57 An: Nagios Users List Betreff: Re: [Nagios-users] check_disk '/sys not accessable' Works fine on all of the other RHEL6 systems. # su - nagios -bash-4.1$ /usr/lib64/nagios/plugins/check_nrpe -H system3 -c check_all_disk 20 10 DISK OK - free space: / 24673 MB (98% inode=99%); /dev/shm 12007 MB (100% inode=99%); /boot 154 MB (65% inode=99%); ... with nothing at all in sudoers. -Original Message- From: davor grgicevic [mailto:dgrgice...@gmail.com] Sent: Monday, March 12, 2012 1:32 PM To: Nagios Users List Subject: Re: [Nagios-users] check_disk '/sys not accessable' Hi Timothy localy u r workiong as root.. if you try as user Nagios, it wont work .. u have to run sudo for this "DISK CRITICAL - /dev/pts is not accessible: Permission denied" davor On Mon, Mar 12, 2012 at 6:17 PM, Boyer, Timothy A. wrote: > $ ./check_disk -w 10% -c 5% -p /sys > > DISK UNKNOWN - free space:| > > > > is the result on both servers. > > > > But that’s running locally, which works. The problem is when running > via nrpe. > > > > Running check_nrpe with –x /sys in the command line returns: > > > > DISK CRITICAL - /dev/pts is not accessible: Permission denied > > > > Doing the next obvious thing and including /dev in the excludes works, > and is a workaround. > > > > Thanks much… > > > > > > From: Claudio Kuenzler [mailto:c...@claudiokuenzler.com] > Sent: Friday, March 09, 2012 7:46 AM > To: Nagios Users List > > > Subject: Re: [Nagios-users] check_disk '/sys not accessable' > > > > Nagios 3.3.1. Two identical RHEL6.1 systems, and all I’m trying to do > is get a total disk space reading. > > > Well the systems are not identical as the manually launched plugin > output of yours shows: > > [nagios@server1 ~)$ /usr/lib/nagios/plugins/check_disk -w20% -c10% > > DISK OK - free space: / 24673 MB (98% inode=99%); /dev/shm 12007 MB > (100% inode=99%); /boot 154 MB (65% inode=99%); /home 7507 MB (98% > inode=99%); > > > > [nagios@server2 /]$ /usr/lib/nagios/plugins/check_disk -w20% -c10% > DISK OK - free space: / 22004 MB (77% inode=96%); /dev/shm 498 MB > (100% inode=99%); /boot 387 MB (84% inode=99%); > > > Note the /home mount point. > > Have you checked the servers for the different mount points? It looks > like on server2 /sys is seen as a partition or mount point while on > server1 the check seems to "ignore" it successfully? Any idea why > server2 thinks /sys is a partition or mount point? > > Can you try to launch it specifically on /sys and output the results > (on both servers)? > > ./check_disk -w 10% -c 5% -p /sys > > Then try to exclude /sys from the check: > > ./check_disk -w 10% -c 5% -x /sys > > By the way the error you're seeing seems to be triggered from this > code (at the bottom of the source file): > > void > stat_path (struct parameter_list *p) > { > /* Stat entry to check that dir exists and is accessible */ > if (verbose >= 3) > printf("calling stat on %s\n", p->name); > if (stat (p->name, &stat_buf[0])) { > if (verbose >= 3) > printf("stat failed on %s\n", p->name); > printf("DISK %s - ", _("CRITICAL")); > die (STATE_CRITICAL, _("%s %s: %s\n"), p->name, _("is not > accessible"), strerror(errno)); > } > } > > > > On Fri, Mar 9, 2012 at 1:16 PM, Boyer, Timothy A. > > wrote: > > It's Permissive, so that can't be it. Thanks... > > > -Original Message- > From: Sigmund Brandstaetter [mailto:s...@maniladev.com] > Sent: Thursday, March 08, 2012 4:12 PM > To: nagios-users@lists.sourceforge.net > Subject: Re: [Nagios-users] check_disk '/sys not accessable' > > Tim, > > How about SELinux, is it maybe on only on the one that is making the > problem? > > Cheers > Sigmund > > > > On 3/9/2012 00:49, Boyer, Timothy A. wrote: >> Nagios 3.3.1. Two identical RHEL6.1 systems, and all I'm trying to do >> is get a total disk space reading. So nrpe is running on both, with >> the identical command in nrpe.cfg: >> command[check_all_disk]=/usr/lib/nagios/plugins/check_disk -w $ARG1$ >> -c $ARG2$ command[check_all_disk]=/usr/lib/nagios/plugins/check_disk >> -w $ARG1$ -c $ARG2$ Running as user nagios from the central server. >> One works fine: >> -sh-4.1$ /usr/lib/nagios/plugins/check_nrpe -H server1 -c >> check_all_disk -a 20% 10% DISK OK - free space: / 24673 MB (98% >> inode=99%); /dev/shm 12007 MB (100% inode=99%); /boot 154 MB (65% >> inode=99%); /home 7507 MB (98% inode=99%); the other gives me this: >> -sh-4.1$ /usr/lib/nagios/plugins/check_nrpe -H server2 -c >> check_all_disk -a 20% 10% DISK CRITICAL - /sys is not accessible: >> Permission denied Identical versions of nrpe (2.12); a diff on >> check_disk shows they're both identical; both commands work correctly >> locally run as user Nagios: >> [nagios@server1 ~)$ /usr/lib/nag