Trond, Thank you for the assistance. After reading your replies, I realized that in the script file, I somehow had accidentally left a blank line at the very top. After I removed the empty line, the system began running the script correctly, and I can now see results.
I knew it had to be something simple like that! Thanks, Daniel Ceola -----Original Message----- From: Trond Hasle Amundsen [mailto:t.h.amund...@usit.uio.no] Sent: Tuesday, May 10, 2011 8:24 AM To: Nagios Users List Subject: Re: [Nagios-users] Check_Openmanage configuration question Daniel Ceola <dce...@twgi.net> writes: > Hello all! Hi Daniel, > I have a question regarding the initial configuration of > check_openmanage. I downloaded the version of the script dated Feb 9 > (I don?t see a version number in the script) and am attempting to use > the script through SNMP. Tip: Run the plugin with the '-V' or '--version' switch to view the version number. > I?m attempting to begin using check_openmanage with our Dell servers. > I have installed the Dell OMSA software on one server and it seems to > be working just fine. I configured my command definition in a simple > fashion, according to the installation guide: > > # Dell Check openmanage > > define command{ > command_name check_openmanage > command_line $USER1$/check_openmanage -H $HOSTADDRESS$ > } > > I also configured my service definition in a simple fashion, according > to the installation guide: > > define service{ > use generic-service > host_name Server_Name > service_description Dell OMSA > check_command check_openmanage > } This looks correct to me. > However ? my Nagios console is reporting the status as (null). Also, > when I attempt to run the script from the command line (note the file > is saved as check_openmanage with no file extension, I also tried > check_openmanage.pl and receive the same results), I receive a few > errors > > nagios@UbuntuTest:/usr/local/nagios/libexec$ ./check_openmanage 192.168.1.5 > ./check_openmanage: line 27: require: command not found > ./check_openmanage: line 28: use: command not found > ./check_openmanage: line 29: use: command not found > ./check_openmanage: line 30: syntax error near unexpected token `(' > ./check_openmanage: line 30: `use POSIX qw(isatty ceil);' Weird. Your system seem to be running the plugin through a shell. The output above is exactly what you'll get if you run sh ./check_openmanage To specify perl as interpreter, run: perl ./check_openmanage However, this should not be needed. The system should identify it as a perl script and use perl to execute it by default. Have you edited the plugin in some way? Check that the md5sum is correct: $ md5sum check_openmanage 5281718fe9e5c4b9570fe76f0fb424ec check_openmanage The above sum is correct for version 3.6.6. You should verify that you get the same (if running 3.6.6). The latest version and its md5sum are available here: http://folk.uio.no/trondham/software/check_openmanage.html#download PS. In your example above you have forgotten the '-H' switch. PPS. The file extension (or the name itself) is unimportant. Cheers, -- Trond H. Amundsen <t.h.amund...@usit.uio.no> Center for Information Technology Services, University of Oslo ------------------------------------------------------------------------------ Achieve unprecedented app performance and reliability What every C/C++ and Fortran developer should know. Learn how Intel has extended the reach of its next-generation tools to help boost performance applications - inlcuding clusters. http://p.sf.net/sfu/intel-dev2devmay _______________________________________________ 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 ------------------------------------------------------------------------------ Achieve unprecedented app performance and reliability What every C/C++ and Fortran developer should know. Learn how Intel has extended the reach of its next-generation tools to help boost performance applications - inlcuding clusters. http://p.sf.net/sfu/intel-dev2devmay _______________________________________________ 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