[Nagiosplug-help] plugin not returning variable value

Ingo Lantschner ingo.lists at vum.at
Tue Mar 6 21:06:24 CET 2007


Am 05.03.2007 um 17:33 schrieb Andrew Hall:

> Which when run on the local machine returns...
>
> OK: 658 connections left
>
> But when run from the nagios server only returns...
>
> OK:  connections left
>
> Missing out the value of the $Difference variable
>
> Can anyone explain why this is and how I can resolve it?
I see two possible reasons:
1. Different users: Did you try to run it on the local machine as the  
same user, which runs the nrpe-daemon (probably nagios)?
	# su - nagios
	$ /usr/lib/nagios/plugins/check_max_connections -w 300 -c 100

2. Enviroment issues: This can be solved by
     a. using full-pathes (/usr/sbin/mysqladmin?!) or
     b. by setting the enviroment in nrpe.cfg:
	command[check_max_connections]=env PATH=... LANG=... HOME=... /usr/ 
lib/nagios/plugins/check_max_connections -w 300 -c 100

hth, Ingo


-- 
Ingo Lantschner
Vienna/Austria
Mob (+43-664) 143 84 18






More information about the Help mailing list