home made php script
Trond Hasle Amundsen
t.h.amundsen at usit.uio.no
Sun Aug 14 12:16:02 CEST 2011
"Erik Olsen" <nagios at elitdata.no> writes:
> I've been trying to make my own script now for a few hours but im not
> getting it to work with nagios.
> Im most familiar with php so I used that to make the script.
>
> My setup:
> Ubuntu 11.4 server
> Nagios 3.2.3
>
> The host/command/and service are all in the same .cfg file.
>
> define command{
> command_name check_ups_temprature2
> command_line $USER$/check_ups_temp.php
> }
>
> define service{
> use generic-service
> host_name ups1
> service_description Temp ups env sensor
> check_command eaton_ups_temp
> }
>
> Status Information (Return code of 127 is out of bounds - plugin may be
> missing)
Hi Erik,
There is a typo on the "command_line" line. The $USER$ macro doesn't
exist. There are 32 possible user macros, named $USER1$ through
$USER32$. Try replacing $USER$ with $USER1$, or simply the actual path
leading up to the plugin.
Cheers,
--
Trond H. Amundsen <t.h.amundsen at usit.uio.no>
Center for Information Technology Services, University of Oslo
------------------------------------------------------------------------------
FREE DOWNLOAD - uberSVN with Social Coding for Subversion.
Subversion made easy with a complete admin console. Easy
to use, easy to manage, easy to install, easy to extend.
Get a Free download of the new open ALM Subversion platform now.
http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
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