"Erik Olsen" <nag...@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.amund...@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@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