check_perc.pl
Robert Ferguson
robert.ferguson at replacements.com
Wed Dec 19 23:07:30 CET 2007
Hi Karl,
Actually, I have run it as nagios (as well as root) also and I am
getting the correct responses at the command line. I often over look
that sort of thing, so thanks for looking out for me. To be honest, I
was running it as root for some time and then starting reading posts
about running it as nagios.
Thanks for getting back to me so quickly,
Robert
-----Original Message-----
From: Karl Katzke [mailto:kkatzke at tamu.edu]
Sent: Wednesday, December 19, 2007 4:17 PM
To: nagios-users at lists.sourceforge.net; Robert Ferguson
Subject: Re: [Nagios-users] check_perc.pl
Robert -
Let me guess, you're running it as root... ? Remember that the Nagios
user is very unprivileged, and if you're having a problem with it
running things, you may need to wrap the command so that it can run as a
privileged user.
-Karl
---
Karl Katzke
Systems Analyst II
TAMU - RGS
>>> "Robert Ferguson" <robert.ferguson at replacements.com> 12/19/2007 3:09
PM >>>
Good Afternoon
I am having an issue with this plugin. Maybe one of you can help. I am
receiving a null return when nagios runs this command, however when
running on command line, it returns just fine. Here is my command
definition and define service:
# 'check_perc.pl' command definition
define command{
command_name check_perc
command_line $USER1$/check_perc.pl -H
$HOSTADDRESS$ -C $ARG1$ -D $ARG2$ -T $ARG3$
}
define service{
use
local-service
host_name HostNameHere
service_description Check Perc
check_command check_perc!public!phys!am
}
As I said, I have been successful in running this at the command line
both as root and as nagiosuser. Any help would be appreciated.
Thanks,
Robert
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list