whole buncha questions.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

whole buncha questions.

Post by benhank »

I will break this up into different topic if you want. I have questions on a few things. I think the answers may be easy, I am just missing a step i think.

1. Backups:
Is there a way to edit the daily weekly monthly backup script so that it will transfer the backups to a remote server after the backup completes?
is it possible to push my backups to a networked windows folder?
Are there any instructions for setting up centos so that It can be backed up by Avamar? <---- I know this one is a long shot.

2. Nagios Mobile.
After installing nagios mobile, the only accounts that can login are administrators.
I have my user accounts set up so that:
1. Can see all hosts and services:
2. Can control all hosts and services:
3: Can access advanced features:
here is my nagiosmobile_apache.conf:

Code: Select all

#modify this file to fit your apache configuration 
Alias /nagiosmobile "/usr/local/nagiosmobile"
<Directory "/usr/local/nagiosmobile">
#  SSLRequireSSL
   Options None
   AllowOverride None
   Order allow,deny
   Allow from all
#  Allow from 127.0.0.1
######use the below lines for Nagios XI  
  AuthName "Nagios Monitor XI"
 AuthType Basic
 AuthUserFile /usr/local/nagiosxi/etc/htpasswd.users 
 
######Use the below lines for a SOURCE install of Nagios Core 
  # AuthName "Nagios Access"
   # AuthType Basic
   # AuthUserFile /usr/local/nagios/etc/htpasswd.users    
   Require valid-user
</Directory>
The odd thing is that after the install (i installed a few times) that apache.conf file is not in the nagiosmobile folder. Even when I put the file in the folder the problem persists.

this is the one that will have y'all calling me a knucklehead:
The active directory component...
Do I create an account in nagios that matched the users active directory account, and then log into that account in nagios for it to work, or do I just create any account and log into nagios. I just cant get this thing to work....i know I must be missing something simple.
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
User avatar
CGraham
Posts: 115
Joined: Tue Aug 16, 2011 2:43 pm

Re: whole buncha questions.

Post by CGraham »

To you first question, here's one approach. NOTE: NOT TESTED OR APPROVED

Mount a windows share using instructions in this link.
http://www.cyberciti.biz/tips/how-to-mo ... linux.html
Note: You'll need to follow the directions at the bottom to make it permanent by editing FSTAB

Make a copy of the autobackup script
cp /root/scripts/automysqlbackup /root/scripts/automysqlbackup.offsite
Make sure it has the same permissions/ownership and is executable

Edit the new script and change the backup folder to your new samba mount (e.g. "/offsitemount/backups/mysql").
BACKUPDIR="/offsitemount/backups/mysql"

Then edit the /etc/cron.d/nagiosxi file and add in your new script.
0 37 * * * root /root/scripts/automysqlbackup.offsite

That should do it. It's very very possible that there's a better way to do this, I just wanted to float a possible solution.
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: whole buncha questions.

Post by benhank »

Thanks! trryin it now!
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: whole buncha questions.

Post by scottwilkerson »

benhank wrote:2. Nagios Mobile.
The nagiosmobile_apache.conf should be in /etc/httpd/conf.d/

All userd who are listed in /usr/local/nagiosxi/etc/htpasswd.users should be able to access Nagios Mobile. You can see what users are in the file by running

Code: Select all

cat /usr/local/nagiosxi/etc/htpasswd.users
However, before a user can use this feature, they must have logged in to the main interface once and accepted the terms (not just masqueraded as the user) before their account will get added to that file.

CGraham wrote:The active directory component...
Do I create an account in nagios that matched the users active directory account
Yes. The authentication will happen via AD but the authorization will be based on the setting in XI. this way you still control what people can do or see in XI, but they can manage their password in AD.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
CGraham
Posts: 115
Joined: Tue Aug 16, 2011 2:43 pm

Re: whole buncha questions.

Post by CGraham »

To your AD question, I got this to work at my last company but the login in apache, the contact in nagiosxi all had to match the AD user's SAM account name (since I was doing LDAP lookups based on SAM account names). Basically it all has to match what you're doing the lookup based on.

Unfortunately at my last company everyone's usernames were employee numbers. It made administration much harder.
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: whole buncha questions.

Post by benhank »

you guys are the best! thank you!
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
Locked