Search found 16 matches

by brt24574
Tue Jan 22, 2019 5:00 pm
Forum: Open Source Nagios Projects
Topic: retain history from Nagios v3.0.5 to Nagios v4.3.4
Replies: 3
Views: 738

Re: retain history from Nagios v3.0.5 to Nagios v4.3.4

Thanks Scott, to confirm... the following files and directories need to be copied to retain service and host history. /usr/local/nagios/var/nagios.log -> /var/log/nagios/nagios.log /usr/local/nagios/var/archives/* -> /var/log/nagios/archives /user/local/nagios/var/retention.dat -> /var/log/nagios/re...
by brt24574
Tue Jan 22, 2019 3:26 pm
Forum: Open Source Nagios Projects
Topic: retain history from Nagios v3.0.5 to Nagios v4.3.4
Replies: 3
Views: 738

retain history from Nagios v3.0.5 to Nagios v4.3.4

What files should be copied from older version to newer version to retain historical monitoring information? Reasoning, I am replacing RHEL5 with OEL7 I think these files (retention.dat & nagios.log), but I also think you need to see my nagios.cfg's first. Anything from the check_result_path or ...
by brt24574
Thu Jan 10, 2019 9:17 am
Forum: Open Source Nagios Projects
Topic: execvp(/command_name, ....)
Replies: 10
Views: 4162

Re: execvp(/command_name, ....)

I think so :lol:
by brt24574
Wed Jan 09, 2019 4:15 pm
Forum: Open Source Nagios Projects
Topic: execvp(/command_name, ....)
Replies: 10
Views: 4162

Re: execvp(/command_name, ....)

:oops:
I forgot an important piece of the puzzle.

In my puppet configuration I did not copy my file resource.cfg up to the nagios server, so it was using the default file resource.cfg
by brt24574
Wed Jan 09, 2019 3:45 pm
Forum: Open Source Nagios Projects
Topic: execvp(/command_name, ....)
Replies: 10
Views: 4162

Re: execvp(/command_name, ....)

it is correctly declared

Code: Select all

resource_file=/etc/nagios/private/resource.cfg
permissions

Code: Select all

-rw-r--r-- 1 root nagios 1312 Nov 20  2017 /etc/nagios/private/resource.cfg
by brt24574
Wed Jan 09, 2019 3:16 pm
Forum: Open Source Nagios Projects
Topic: execvp(/command_name, ....)
Replies: 10
Views: 4162

Re: execvp(/command_name, ....)

this command is located in file
/etc/nagios/conf.d/systems/commands.cfg

Code: Select all

# 'check_fileserver_share'
define command{
	command_name	check_fileserver_share
	command_line	$USER2$/check_fileserver_share $HOSTADDRESS$ $ARG1$
	}
by brt24574
Wed Jan 09, 2019 2:48 pm
Forum: Open Source Nagios Projects
Topic: execvp(/command_name, ....)
Replies: 10
Views: 4162

Re: execvp(/command_name, ....)

using the web UI, looking at Current Status > Services > Service Status Totals > Critical http://hostname/nagios/cgi-bin/status.cgi?host=all&servicestatustypes=16&hoststatustypes=15 The status information shows this (No output on stdout) stderr: execvp(/check_fileserver_share, ...) failed. e...
by brt24574
Wed Jan 09, 2019 9:22 am
Forum: Open Source Nagios Projects
Topic: execvp(/command_name, ....)
Replies: 10
Views: 4162

execvp(/command_name, ....)

Nagios is trying to execute $USER2$ commands from the root directory. private/resource.cfg # Sets $USER1$ to be the path to the plugins $USER1$=/usr/lib64/nagios/plugins #$USER1$=/usr/local/nagios/libexec #From RHEL5/Nagios 3 # Sets $USER2$ to be the path to the custom plugins $USER2$=/usr/lib64/nag...
by brt24574
Fri Jan 04, 2019 9:51 am
Forum: Open Source Nagios Projects
Topic: Error: Could not read host and service status information!
Replies: 14
Views: 3639

Re: Error: Could not read host and service status informatio

Thank you very much @scottwilkerson for your quick responses! You're awesome!!
by brt24574
Fri Jan 04, 2019 9:21 am
Forum: Open Source Nagios Projects
Topic: Error: Could not read host and service status information!
Replies: 14
Views: 3639

Re: Error: Could not read host and service status informatio

PM'd the cgi.cfg

I have no authentication set up at this time, have not modified the contacts.