Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
turboscrew
Posts: 23 Joined: Wed Jul 30, 2014 6:15 am
Post
by turboscrew » Fri Aug 01, 2014 5:35 pm
Oops, a typo in my last edit - which make it even more weird:
It now GIVES an output:
Code: Select all
[root@elukancompute nagios]# su -c "/usr/lib64/nagios/plugins/check_nrpe -H localhost -c check_omat -a 'AARGHH'" nrpe
SERVICE STATUS: OK - Sun Jul 27 08:59:46 EEST 2014
but doesn't write into the fila...
eloyd
Cool Title Here
Posts: 2129 Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:
Post
by eloyd » Sat Aug 02, 2014 8:54 am
I will have to return to this after the weekend is over.
Box293
Too Basu
Posts: 5126 Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:
Post
by Box293 » Sun Aug 03, 2014 9:06 pm
Going back to the original problem, can you please post the full service definition for the service using the command check_all_disks.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new
Privacy Policy .
turboscrew
Posts: 23 Joined: Wed Jul 30, 2014 6:15 am
Post
by turboscrew » Mon Aug 04, 2014 5:55 am
Code: Select all
# groups
define hostgroup{
hostgroup_name computes
alias compute nodes
members 10.27.128.81
}
# actual hosts
define host{
use client
host_name 10.27.128.81
alias compute_node
address 10.27.128.81
}
# check_disks
define service{
use generic-service
contact_groups wheels
hostgroup_name computes
service_description Disk usage
check_command check_nrpe2!check_all_disks!20%!10%
}
define command{
command_name check_nrpe2
command_line '/usr/lib64/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ $ARG2$ $ARG3$'
}
On the NRPE client side:
command[check_all_disks]=/usr/lib64/nagios/plugins/check_disk -w $ARG1$ -c $ARG2$ -p /dev/vda
Box293
Too Basu
Posts: 5126 Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:
Post
by Box293 » Mon Aug 04, 2014 6:05 am
Change your command to:
Code: Select all
define command{
command_name check_nrpe2
command_line /usr/lib64/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -a $ARG2$ $ARG3$
}
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new
Privacy Policy .
turboscrew
Posts: 23 Joined: Wed Jul 30, 2014 6:15 am
Post
by turboscrew » Mon Aug 04, 2014 6:27 am
So that was it: now also "check_omat" started returning value!
THANKS!
Is there a ranking system where I could put points to you?
[edit]
Sometime at the beginning I removed the '-a', because shooting from the command line it went to the command as a parameter.
There must have been some other errors then because the command didn't work then either.
Box293
Too Basu
Posts: 5126 Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:
Post
by Box293 » Mon Aug 04, 2014 6:35 am
Great stuff, glad to see it working
No need for any ranking, it's just good to help others out
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new
Privacy Policy .
eloyd
Cool Title Here
Posts: 2129 Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:
Post
by eloyd » Mon Aug 04, 2014 8:06 am
This is why we like Box293 so much. He lives in Australia and gets to answer questions on his Monday morning, before the rest of the world is awake.
Glad we could all help you out.