Code: Select all
/etc/sudoersCode: Select all
ll /etc/sudoers.dCode: Select all
/etc/sudoersCode: Select all
ll /etc/sudoers.dtgriep wrote:Can you upload the following file so we can review it?Can you run this and post back the results?Code: Select all
/etc/sudoersCode: Select all
ll /etc/sudoers.d
Code: Select all
[nagios@nagiosprodxi1 ~]$ sudo cat /etc/sudoers
## Sudoers allows particular users to run various commands as
## the root user, without needing the root password.
##
## Examples are provided at the bottom of the file for collections
## of related commands, which can then be delegated out to particular
## users or groups.
##
## This file must be edited with the 'visudo' command.
## Host Aliases
## Groups of machines. You may prefer to use hostnames (perhaps using
## wildcards for entire domains) or IP addresses instead.
# Host_Alias FILESERVERS = fs1, fs2
# Host_Alias MAILSERVERS = smtp, smtp2
## User Aliases
## These aren't often necessary, as you can use regular groups
## (ie, from files, LDAP, NIS, etc) in this file - just use %groupname
## rather than USERALIAS
# User_Alias ADMINS = jsmith, mikem
## Command Aliases
## These are groups of related commands...
## Networking
# Cmnd_Alias NETWORKING = /sbin/route, /sbin/ifconfig, /bin/ping, /sbin/dhclient, /usr/bin/net, /sbin/iptables, /usr/bin/rfcomm, /usr/bin/wvdial, /sbin/iwconfig, /sbin/mii-tool
## Installation and management of software
# Cmnd_Alias SOFTWARE = /bin/rpm, /usr/bin/up2date, /usr/bin/yum
## Services
# Cmnd_Alias SERVICES = /sbin/service, /sbin/chkconfig
## Updating the locate database
# Cmnd_Alias LOCATE = /usr/bin/updatedb
## Storage
# Cmnd_Alias STORAGE = /sbin/fdisk, /sbin/sfdisk, /sbin/parted, /sbin/partprobe, /bin/mount, /bin/umount
## Delegating permissions
# Cmnd_Alias DELEGATING = /usr/sbin/visudo, /bin/chown, /bin/chmod, /bin/chgrp
## Processes
# Cmnd_Alias PROCESSES = /bin/nice, /bin/kill, /usr/bin/kill, /usr/bin/killall
## Drivers
# Cmnd_Alias DRIVERS = /sbin/modprobe
# Defaults specification
#
# Disable "ssh hostname sudo <cmd>", because it will show the password in clear.
# You have to run "ssh -t hostname sudo <cmd>".
#
####Defaults requiretty
#
# Refuse to run if unable to disable echo on the tty. This setting should also be
# changed in order to be able to use sudo without a tty. See requiretty above.
#
Defaults !visiblepw
#
# Preserving HOME has security implications since many programs
# use it when searching for configuration files. Note that HOME
# is already set when the the env_reset option is enabled, so
# this option is only effective for configurations where either
# env_reset is disabled or HOME is present in the env_keep list.
my02390 ALL=(ALL) NOPASSWD: ALL
nagios ALL=(ALL) NOPASSWD: ALL
#
Defaults always_set_home
Defaults env_reset
Defaults env_keep = "COLORS DISPLAY HOSTNAME HISTSIZE INPUTRC KDEDIR LS_COLORS"
Defaults env_keep += "MAIL PS1 PS2 QTDIR USERNAME LANG LC_ADDRESS LC_CTYPE"
Defaults env_keep += "LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES"
Defaults env_keep += "LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE"
Defaults env_keep += "LC_TIME LC_ALL LANGUAGE LINGUAS _XKB_CHARSET XAUTHORITY"
#
# Adding HOME to env_keep may enable a user to run unrestricted
# commands via sudo.
#
# Defaults env_keep += "HOME"
Defaults secure_path = /sbin:/bin:/usr/sbin:/usr/bin
## Next comes the main part: which users can run what software on
## which machines (the sudoers file can be shared between multiple
## systems).
## Syntax:
##
## user MACHINE=COMMANDS
##
## The COMMANDS section may have other options added to it.
##
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
## Allows members of the 'sys' group to run networking, software,
## service management apps and more.
# %sys ALL = NETWORKING, SOFTWARE, SERVICES, STORAGE, DELEGATING, PROCESSES, LOCATE, DRIVERS
## Allows people in group wheel to run all commands
# %wheel ALL=(ALL) ALL
## Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL
## Allows members of the users group to mount and unmount the
## cdrom as root
# %users ALL=/sbin/mount /mnt/cdrom, /sbin/umount /mnt/cdrom
## Allows members of the users group to shutdown this system
# %users localhost=/sbin/shutdown -h now
## Read drop-in files from /etc/sudoers.d (the # here does not mean a comment)
#includedir /etc/sudoers.d
User_Alias NAGIOSXI=nagios
User_Alias NAGIOSXIWEB=apache
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios start
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios stop
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios restart
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios reload
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios status
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios checkconfig
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db start
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db stop
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db restart
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db reload
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db status
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd start
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd stop
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd restart
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd reload
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd status
NAGIOSXI ALL = NOPASSWD:/usr/bin/nmap *
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/upgrade_to_latest.sh
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/change_timezone.sh
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/manage_services.sh *
NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/tail -100 /var/log/messages
NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/tail -100 /var/log/httpd/error_log
NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/tail -100 /var/log/mysqld.log
NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/nmap *
NAGIOSXIWEB ALL = NOPASSWD:/etc/init.d/snmptt restart
NAGIOSXIWEB ALL = NOPASSWD:/usr/local/nagiosxi/scripts/repair_databases.sh
NAGIOSXIWEB ALL = NOPASSWD:/usr/local/nagiosxi/scripts/manage_services.sh *
Code: Select all
[root@nagiosprodxi1 nagios]# ll /etc/sudoers.d
total 0
Code: Select all
my02390 ALL=(ALL) NOPASSWD: ALL
nagios ALL=(ALL) NOPASSWD: ALL
Code: Select all
## Next comes the main part: which users can run what software on
## which machines (the sudoers file can be shared between multiple
## systems).
## Syntax:
##
## user MACHINE=COMMANDS
##
## The COMMANDS section may have other options added to it.
##
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
my02390 ALL=(ALL) NOPASSWD: ALL
nagios ALL=(ALL) NOPASSWD: ALLIt is a temp access. Does this got anything with the issue at hand?cmerchant wrote:Comparing the /etc/sudoers file, I believe you want the two entries you have added moved further down in the file, after the default definitions, insert after the root definition:
Insert after:Code: Select all
my02390 ALL=(ALL) NOPASSWD: ALL nagios ALL=(ALL) NOPASSWD: ALL
Any reason why the nagios ALL=(ALL) entry was added? The statements appended at the end of the sudoers file locks down the nagios and apache user to specific commands that can be executed.Code: Select all
## Next comes the main part: which users can run what software on ## which machines (the sudoers file can be shared between multiple ## systems). ## Syntax: ## ## user MACHINE=COMMANDS ## ## The COMMANDS section may have other options added to it. ## ## Allow root to run any commands anywhere root ALL=(ALL) ALL my02390 ALL=(ALL) NOPASSWD: ALL nagios ALL=(ALL) NOPASSWD: ALL
Code: Select all
nagios ALL=(ALL) NOPASSWD: ALLCode: Select all
User_Alias NAGIOSXI=nagios
User_Alias NAGIOSXIWEB=apache
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios start
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios stop
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios restart
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios reload
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios status
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios checkconfig
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db start
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db stop
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db restart
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db reload
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db status
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd start
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd stop
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd restart
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd reload
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd status
NAGIOSXI ALL = NOPASSWD:/usr/bin/nmap *
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/upgrade_to_latest.sh
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/change_timezone.sh
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/manage_services.sh *
NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/tail -100 /var/log/messages
NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/tail -100 /var/log/httpd/error_log
NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/tail -100 /var/log/mysqld.log
NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/nmap *
NAGIOSXIWEB ALL = NOPASSWD:/etc/init.d/snmptt restart
NAGIOSXIWEB ALL = NOPASSWD:/usr/local/nagiosxi/scripts/repair_databases.sh
NAGIOSXIWEB ALL = NOPASSWD:/usr/local/nagiosxi/scripts/manage_services.sh *
Code: Select all
[root@nagiosprodxi1 ~]# cd /usr/local/nagiosxi/scripts
[root@nagiosprodxi1 scripts]# ./reconfigure_nagios.sh
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'submit=Login&hidelog=true&loginSubmitted=true&username=nagiosxi&password=nagiosqldb' -O nagiosql.login--2015-03-26 19:17:17-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ânagiosql.loginâ
[ <=> ] 10,772 --.-K/s in 0.01s
2015-03-26 19:17:18 (881 KB/s) - ânagiosql.loginâ
LOGIN SUCCESSFUL!
IMPORTING CONFIG FILES...URL: http://localhost/nagiosxi/includes/components/ccm/
Array
(
)
SETUID ROOT OK
RESETTING PERMS
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'submit=Login&hidelog=true&loginSubmitted=true&username=nagiosxi&password=nagiosqldb' -O nagiosql.login--2015-03-26 19:17:20-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ânagiosql.loginâ
[ <=> ] 10,772 --.-K/s in 0.03s
2015-03-26 19:17:22 (338 KB/s) - ânagiosql.loginâ
LOGIN SUCCESSFUL!
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'cmd=apply&type=writeConfig' -O nagiosql.export.monitoring
--2015-03-26 19:17:22-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ânagiosql.export.monitoringâ
[ <=> ] 13,728 5.40K/s in 8.7s
2015-03-26 19:17:31 (1.55 KB/s) - ânagiosql.export.monitoringâ
WRITE CONFIGS SUCCESSFUL!
OUTPUT:
Nagios Core 4.0.8
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-12-2014
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Warning: Duplicate definition found for service 'AS400 Disk Usage System Alt' on host 'Cambodia_UAT_SIT_DR' (config file '/usr/local/nagios/etc/services/TRACSPROD-AS400-ALT-Disk-Usage_XSSL.cfg', starting on line 16)
Warning: Duplicate definition found for service 'Service: Symantec Mgmt Agent' on host 'MYWWBRODYSWEB01' (config file '/usr/local/nagios/etc/services/Win_Standard_CIMB_Service_AeXNSClient.cfg', starting on line 16)
Warning: Duplicate definition found for service 'Disk: Drive All' on host 'MYWWBRODYSWEB01' (config file '/usr/local/nagios/etc/services/Win_Standard_CIMB_Disk_ALL.cfg', starting on line 14)
Warning: Duplicate definition found for service 'CPU Usage' on host 'MYWWBRODYSWEB01' (config file '/usr/local/nagios/etc/services/Win_Standard_CIMB_CPU.cfg', starting on line 16)
Warning: Duplicate definition found for service 'Memory: Pagefile' on host 'MYWWBRODYSWEB01' (config file '/usr/local/nagios/etc/services/Win_Standard_CIMB_Memory_Pagefile.cfg', starting on line 16)
Warning: Duplicate definition found for service 'Memory: Pagefile' on host 'MYWWBRODYSAPP01' (config file '/usr/local/nagios/etc/services/Odyssey_Win_Memory_Pagefile.cfg', starting on line 16)
Warning: Duplicate definition found for service 'Memory: Pagefile' on host 'MYWWBPODYSWEB01' (config file '/usr/local/nagios/etc/services/Odyssey_Win_Memory_Pagefile.cfg', starting on line 16)
Warning: Duplicate definition found for service 'Memory: Pagefile' on host 'MYWWBPODYSAPP01' (config file '/usr/local/nagios/etc/services/Odyssey_Win_Memory_Pagefile.cfg', starting on line 16)
Warning: Duplicate definition found for service 'CPU Usage' on host 'MYWWBRODYSAPP01' (config file '/usr/local/nagios/etc/services/Odyssey_Win_CPU.cfg', starting on line 16)
Warning: Duplicate definition found for service 'CPU Usage' on host 'MYWWBPODYSWEB01' (config file '/usr/local/nagios/etc/services/Odyssey_Win_CPU.cfg', starting on line 16)
Warning: Duplicate definition found for service 'CPU Usage' on host 'MYWWBPODYSAPP01' (config file '/usr/local/nagios/etc/services/Odyssey_Win_CPU.cfg', starting on line 16)
Warning: Duplicate definition found for service 'Disk: Drive All' on host 'MYWWBRODYSAPP01' (config file '/usr/local/nagios/etc/services/Odyssey_Win_Disk_ALL.cfg', starting on line 16)
Warning: Duplicate definition found for service 'Disk: Drive All' on host 'MYWWBPODYSWEB01' (config file '/usr/local/nagios/etc/services/Odyssey_Win_Disk_ALL.cfg', starting on line 16)
Warning: Duplicate definition found for service 'Disk: Drive All' on host 'MYWWBPODYSAPP01' (config file '/usr/local/nagios/etc/services/Odyssey_Win_Disk_ALL.cfg', starting on line 16)
Warning: Duplicate definition found for service 'Service: Symantec Mgmt Agent' on host 'MYWWBRODYSAPP01' (config file '/usr/local/nagios/etc/services/Odyssey_Win_Service_AeXNSClient.cfg', starting on line 16)
Warning: Duplicate definition found for service 'Service: Symantec Mgmt Agent' on host 'MYWWBPODYSWEB01' (config file '/usr/local/nagios/etc/services/Odyssey_Win_Service_AeXNSClient.cfg', starting on line 16)
Warning: Duplicate definition found for service 'Service: Symantec Mgmt Agent' on host 'MYWWBPODYSAPP01' (config file '/usr/local/nagios/etc/services/Odyssey_Win_Service_AeXNSClient.cfg', starting on line 16)
Warning: Duplicate definition found for service 'AS400 Disk Usage System Alt' on host 'Cambodia_S06FF69' (config file '/usr/local/nagios/etc/services/AS400-ALT-Disk-Usage_XSSL.cfg', starting on line 14)
Warning: Duplicate definition found for service 'OS Version / Hostname' on host 'MYWWBRODYSWEB01' (config file '/usr/local/nagios/etc/services/Win_Standard_CIMB_OSVerHostname.cfg', starting on line 14)
Warning: Duplicate definition found for service 'OS Version / Hostname' on host 'MYWWBRODYSAPP01' (config file '/usr/local/nagios/etc/services/Win_Standard_CIMB_OSVerHostname.cfg', starting on line 14)
Warning: Duplicate definition found for service 'OS Version / Hostname' on host 'MYWWBPODYSWEB01' (config file '/usr/local/nagios/etc/services/Win_Standard_CIMB_OSVerHostname.cfg', starting on line 14)
Warning: Duplicate definition found for service 'OS Version / Hostname' on host 'MYWWBPODYSAPP01' (config file '/usr/local/nagios/etc/services/Win_Standard_CIMB_OSVerHostname.cfg', starting on line 14)
Warning: Duplicate definition found for service 'Windows Uptime' on host 'MYWWBRODYSWEB01' (config file '/usr/local/nagios/etc/services/Win_Standard_CIMB_Uptime.cfg', starting on line 16)
Warning: Duplicate definition found for service 'Windows Uptime' on host 'MYWWBRODYSAPP01' (config file '/usr/local/nagios/etc/services/Win_Standard_CIMB_Uptime.cfg', starting on line 16)
Warning: Duplicate definition found for service 'Windows Uptime' on host 'MYWWBPODYSWEB01' (config file '/usr/local/nagios/etc/services/Win_Standard_CIMB_Uptime.cfg', starting on line 16)
Warning: Duplicate definition found for service 'Windows Uptime' on host 'MYWWBPODYSAPP01' (config file '/usr/local/nagios/etc/services/Win_Standard_CIMB_Uptime.cfg', starting on line 16)
Warning: Duplicate definition found for service 'Memory: Physical' on host 'MYWWBRODYSWEB01' (config file '/usr/local/nagios/etc/services/Win_Standard_CIMB_Memory_Physical.cfg', starting on line 16)
Warning: Duplicate definition found for service 'Memory: Physical' on host 'MYWWBRODYSAPP01' (config file '/usr/local/nagios/etc/services/Win_Standard_CIMB_Memory_Physical.cfg', starting on line 16)
Warning: Duplicate definition found for service 'Memory: Physical' on host 'MYWWBPODYSWEB01' (config file '/usr/local/nagios/etc/services/Win_Standard_CIMB_Memory_Physical.cfg', starting on line 16)
Warning: Duplicate definition found for service 'Memory: Physical' on host 'MYWWBPODYSAPP01' (config file '/usr/local/nagios/etc/services/Win_Standard_CIMB_Memory_Physical.cfg', starting on line 16)
Read object config files okay...
Running pre-flight check on configuration data...
Checking objects...
Checked 13695 services.
Checked 1790 hosts.
Checked 209 host groups.
Checked 11 service groups.
Checked 154 contacts.
Checked 46 contact groups.
Checked 175 commands.
Checked 67 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 1790 hosts
Checked 706 service dependencies
Checked 0 host dependencies
Checked 67 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 0
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
RET: 0
Running configuration check...done.
Stopping nagios: .done.
Starting nagios: done.
[root@nagiosprodxi1 scripts]# service nagios status
nagios (pid 21548) is running...
[root@nagiosprodxi1 scripts]# gearman_top -b
2015-03-26 19:18:20 - localhost:4730 - v1.1.8
Queue Name | Worker Available | Jobs Waiting | Jobs Running
-----------------------------------------------------------------------
check_results | 2 | 0 | 0
eventhandler | 124 | 0 | 0
host | 124 | 0 | 2
service | 124 | 0 | 34
worker_nagiosprodxi1 | 1 | 0 | 0
-----------------------------------------------------------------------
[root@nagiosprodxi1 scripts]#
Code: Select all
[nagios@nagiosprodxi1 scripts]$ ./reconfigure_nagios.sh
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'submit=Login&hidelog=true&loginSubmitted=true&username=nagiosxi&password=nagiosqldb' -O nagiosql.login--2015-03-26 19:20:34-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ânagiosql.loginâ
[ <=> ] 10,320 --.-K/s in 0.02s
2015-03-26 19:20:34 (634 KB/s) - ânagiosql.loginâ
LOGIN SUCCESSFUL!
IMPORTING CONFIG FILES...URL: http://localhost/nagiosxi/includes/components/ccm/
Array
(
)
SETUID ROOT OK
RESETTING PERMS
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'submit=Login&hidelog=true&loginSubmitted=true&username=nagiosxi&password=nagiosqldb' -O nagiosql.login--2015-03-26 19:20:35-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ânagiosql.loginâ
[ <=> ] 10,320 --.-K/s in 0.01s
2015-03-26 19:20:35 (1.01 MB/s) - ânagiosql.loginâ
LOGIN SUCCESSFUL!
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'cmd=apply&type=writeConfig' -O nagiosql.export.monitoring
--2015-03-26 19:20:35-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ânagiosql.export.monitoringâ
[ <=> ] 13,172 4.79K/s in 6.9s
2015-03-26 19:20:42 (1.85 KB/s) - ânagiosql.export.monitoringâ
WRITE CONFIGS SUCCESSFUL!
OUTPUT:
Nagios Core 4.0.8
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-12-2014
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Warning: Duplicate definition found for service 'AS400 Disk Usage System Alt' on host 'Cambodia_UAT_SIT_DR' (config file '/usr/local/nagios/etc/services/TRACSPROD-AS400-ALT-Disk-Usage_XSSL.cfg', starting on line 16)
Warning: Duplicate definition found for service 'Service: Symantec Mgmt Agent' on host 'MYWWBRODYSWEB01' (config file '/usr/local/nagios/etc/services/Win_Standard_CIMB_Service_AeXNSClient.cfg', starting on line 16)
Warning: Duplicate definition found for service 'Disk: Drive All' on host 'MYWWBRODYSWEB01' (config file '/usr/local/nagios/etc/services/Win_Standard_CIMB_Disk_ALL.cfg', starting on line 14)
Warning: Duplicate definition found for service 'CPU Usage' on host 'MYWWBRODYSWEB01' (config file '/usr/local/nagios/etc/services/Win_Standard_CIMB_CPU.cfg', starting on line 16)
Warning: Duplicate definition found for service 'Memory: Pagefile' on host 'MYWWBRODYSWEB01' (config file '/usr/local/nagios/etc/services/Win_Standard_CIMB_Memory_Pagefile.cfg', starting on line 16)
Warning: Duplicate definition found for service 'Memory: Pagefile' on host 'MYWWBRODYSAPP01' (config file '/usr/local/nagios/etc/services/Odyssey_Win_Memory_Pagefile.cfg', starting on line 16)
Warning: Duplicate definition found for service 'Memory: Pagefile' on host 'MYWWBPODYSWEB01' (config file '/usr/local/nagios/etc/services/Odyssey_Win_Memory_Pagefile.cfg', starting on line 16)
Warning: Duplicate definition found for service 'Memory: Pagefile' on host 'MYWWBPODYSAPP01' (config file '/usr/local/nagios/etc/services/Odyssey_Win_Memory_Pagefile.cfg', starting on line 16)
Warning: Duplicate definition found for service 'CPU Usage' on host 'MYWWBRODYSAPP01' (config file '/usr/local/nagios/etc/services/Odyssey_Win_CPU.cfg', starting on line 16)
Warning: Duplicate definition found for service 'CPU Usage' on host 'MYWWBPODYSWEB01' (config file '/usr/local/nagios/etc/services/Odyssey_Win_CPU.cfg', starting on line 16)
Warning: Duplicate definition found for service 'CPU Usage' on host 'MYWWBPODYSAPP01' (config file '/usr/local/nagios/etc/services/Odyssey_Win_CPU.cfg', starting on line 16)
Warning: Duplicate definition found for service 'Disk: Drive All' on host 'MYWWBRODYSAPP01' (config file '/usr/local/nagios/etc/services/Odyssey_Win_Disk_ALL.cfg', starting on line 16)
Warning: Duplicate definition found for service 'Disk: Drive All' on host 'MYWWBPODYSWEB01' (config file '/usr/local/nagios/etc/services/Odyssey_Win_Disk_ALL.cfg', starting on line 16)
Warning: Duplicate definition found for service 'Disk: Drive All' on host 'MYWWBPODYSAPP01' (config file '/usr/local/nagios/etc/services/Odyssey_Win_Disk_ALL.cfg', starting on line 16)
Warning: Duplicate definition found for service 'Service: Symantec Mgmt Agent' on host 'MYWWBRODYSAPP01' (config file '/usr/local/nagios/etc/services/Odyssey_Win_Service_AeXNSClient.cfg', starting on line 16)
Warning: Duplicate definition found for service 'Service: Symantec Mgmt Agent' on host 'MYWWBPODYSWEB01' (config file '/usr/local/nagios/etc/services/Odyssey_Win_Service_AeXNSClient.cfg', starting on line 16)
Warning: Duplicate definition found for service 'Service: Symantec Mgmt Agent' on host 'MYWWBPODYSAPP01' (config file '/usr/local/nagios/etc/services/Odyssey_Win_Service_AeXNSClient.cfg', starting on line 16)
Warning: Duplicate definition found for service 'AS400 Disk Usage System Alt' on host 'Cambodia_S06FF69' (config file '/usr/local/nagios/etc/services/AS400-ALT-Disk-Usage_XSSL.cfg', starting on line 14)
Warning: Duplicate definition found for service 'OS Version / Hostname' on host 'MYWWBRODYSWEB01' (config file '/usr/local/nagios/etc/services/Win_Standard_CIMB_OSVerHostname.cfg', starting on line 14)
Warning: Duplicate definition found for service 'OS Version / Hostname' on host 'MYWWBRODYSAPP01' (config file '/usr/local/nagios/etc/services/Win_Standard_CIMB_OSVerHostname.cfg', starting on line 14)
Warning: Duplicate definition found for service 'OS Version / Hostname' on host 'MYWWBPODYSWEB01' (config file '/usr/local/nagios/etc/services/Win_Standard_CIMB_OSVerHostname.cfg', starting on line 14)
Warning: Duplicate definition found for service 'OS Version / Hostname' on host 'MYWWBPODYSAPP01' (config file '/usr/local/nagios/etc/services/Win_Standard_CIMB_OSVerHostname.cfg', starting on line 14)
Warning: Duplicate definition found for service 'Windows Uptime' on host 'MYWWBRODYSWEB01' (config file '/usr/local/nagios/etc/services/Win_Standard_CIMB_Uptime.cfg', starting on line 16)
Warning: Duplicate definition found for service 'Windows Uptime' on host 'MYWWBRODYSAPP01' (config file '/usr/local/nagios/etc/services/Win_Standard_CIMB_Uptime.cfg', starting on line 16)
Warning: Duplicate definition found for service 'Windows Uptime' on host 'MYWWBPODYSWEB01' (config file '/usr/local/nagios/etc/services/Win_Standard_CIMB_Uptime.cfg', starting on line 16)
Warning: Duplicate definition found for service 'Windows Uptime' on host 'MYWWBPODYSAPP01' (config file '/usr/local/nagios/etc/services/Win_Standard_CIMB_Uptime.cfg', starting on line 16)
Warning: Duplicate definition found for service 'Memory: Physical' on host 'MYWWBRODYSWEB01' (config file '/usr/local/nagios/etc/services/Win_Standard_CIMB_Memory_Physical.cfg', starting on line 16)
Warning: Duplicate definition found for service 'Memory: Physical' on host 'MYWWBRODYSAPP01' (config file '/usr/local/nagios/etc/services/Win_Standard_CIMB_Memory_Physical.cfg', starting on line 16)
Warning: Duplicate definition found for service 'Memory: Physical' on host 'MYWWBPODYSWEB01' (config file '/usr/local/nagios/etc/services/Win_Standard_CIMB_Memory_Physical.cfg', starting on line 16)
Warning: Duplicate definition found for service 'Memory: Physical' on host 'MYWWBPODYSAPP01' (config file '/usr/local/nagios/etc/services/Win_Standard_CIMB_Memory_Physical.cfg', starting on line 16)
Read object config files okay...
Running pre-flight check on configuration data...
Checking objects...
Checked 13695 services.
Checked 1790 hosts.
Checked 209 host groups.
Checked 11 service groups.
Checked 154 contacts.
Checked 46 contact groups.
Checked 175 commands.
Checked 67 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 1790 hosts
Checked 706 service dependencies
Checked 0 host dependencies
Checked 67 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 0
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
RET: 0
Running configuration check...done.
Stopping nagios: .done.
Starting nagios: done.
[nagios@nagiosprodxi1 scripts]$ service nagios status
nagios is not running
[nagios@nagiosprodxi1 scripts]$ gearman_top -b
2015-03-26 19:20:58 - localhost:4730 - v1.1.8
Queue Name | Worker Available | Jobs Waiting | Jobs Running
-----------------------------------------------------------------------
check_results | 0 | 10 | 0
eventhandler | 77 | 0 | 0
host | 77 | 0 | 0
service | 77 | 0 | 4
worker_nagiosprodxi1 | 1 | 0 | 0
-----------------------------------------------------------------------
[nagios@nagiosprodxi1 scripts]$
Ok. Will take out the sudo access. I have another instance running just fine with it.tmcdonald wrote:We are supporting you, but it appears you have made modifications to at least the /etc/sudoers file which could be causing sudo permission problems with the Apply Config process. It may or may not be the cause, which is why we are asking you to make the file as close as possible to the defaults that Nagios sets up, so we know what variables to consider. Have you made the changes that cmerchant suggested?
Have any other modifications been made such as file permission changes, ownership changes, etc. to the Nagios files or directories?