Search found 19 matches

by AnotherNagiosUser
Fri Apr 05, 2019 6:25 am
Forum: Open Source Nagios Projects
Topic: check_oracle
Replies: 7
Views: 2380

Re: check_oracle

Thanks, adding the -a worked! :D :D
by AnotherNagiosUser
Wed Apr 03, 2019 3:13 am
Forum: Open Source Nagios Projects
Topic: check_oracle
Replies: 7
Views: 2380

Re: check_oracle

define command{
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ $ARG2$
}
by AnotherNagiosUser
Tue Apr 02, 2019 2:03 am
Forum: Open Source Nagios Projects
Topic: check_oracle
Replies: 7
Views: 2380

Re: check_oracle

Change this command[check_oracle]=/usr/local/nagios/libexec/check_oracle $ARG1$ to this command[check_oracle]=/usr/bin/env LD_LIBRARY_PATH=/usr/lib/oracle/11.2/client/lib ORACLE_HOME=/usr/lib/oracle/11.2/client /usr/local/nagios/libexec/check_oracle $ARG1$ then restart NRPE I'm still getting this m...
by AnotherNagiosUser
Mon Apr 01, 2019 3:09 am
Forum: Open Source Nagios Projects
Topic: check_oracle
Replies: 7
Views: 2380

check_oracle

I'm having trouble with the check_oracle plugin now. This is how it's set up at the moment. nrpe.cfg command[check_oracle]=/usr/local/nagios/libexec/check_oracle $ARG1$ define service { use generic-service host_name db1-serv service_description database1 check_command check_nrpe!check_oracle! '--db ...
by AnotherNagiosUser
Tue Mar 26, 2019 11:20 am
Forum: Open Source Nagios Projects
Topic: check_procs problem
Replies: 13
Views: 7308

Re: check_procs problem

If I was to change this and use check_service, would I be going down the writing or finding a plugin route? Everything I've seen with check_service mentions plugins. that would be correct. Additionally you often have to add sudoers permissions to the plugin for checking services. Well I guess that'...
by AnotherNagiosUser
Tue Mar 26, 2019 11:07 am
Forum: Open Source Nagios Projects
Topic: check_procs problem
Replies: 13
Views: 7308

Re: check_procs problem

I just re-looked at your command on NRPE and it would need to be the following and then restart NRPE command[check_procs]=/usr/local/nagios/libexec/check_procs $ARG1$ Thanks works now! If I was to change this and use check_service, would I be going down the writing or finding a plugin route? Everyt...
by AnotherNagiosUser
Tue Mar 26, 2019 10:03 am
Forum: Open Source Nagios Projects
Topic: check_procs problem
Replies: 13
Views: 7308

Re: check_procs problem

scottwilkerson wrote:try this

Code: Select all

check_command                 check_nrpe!check_procs -a '-c 1: -w 1: -C master'
then restart nagios
Changed it, and it's still showing the same message.
by AnotherNagiosUser
Tue Mar 26, 2019 9:30 am
Forum: Open Source Nagios Projects
Topic: check_procs problem
Replies: 13
Views: 7308

Re: check_procs problem

You may be able to do that by looking for a process that postfix starts, on my system I believe it is called "master" ps -ef|grep postfix |grep -v grep Yes, it is master. It's still showing this PROCS WARNING: 0 processes with command name 'postfix', STATE = 1: Shows that even when it's o...
by AnotherNagiosUser
Tue Mar 26, 2019 8:30 am
Forum: Open Source Nagios Projects
Topic: check_procs problem
Replies: 13
Views: 7308

Re: check_procs problem

scottwilkerson wrote:postfix isn't a process, it's a service
I think when I was trying to figure out how to do this, I thought i could use check_procs, so it could look at the processes and see if postfix was running. :oops:
by AnotherNagiosUser
Tue Mar 26, 2019 8:11 am
Forum: Open Source Nagios Projects
Topic: check_procs problem
Replies: 13
Views: 7308

Re: check_procs problem

I believe that it's because of your check command: check_command check_nrpe!check_procs -a '-w 10 -c 20 -a postfix' if you change -w 10 to -w 0 and then run your test, what happens? If i'm reading what you have correctly, you won't get a warning notification unless 10 "postfix" processes ...