>Finally I have concluded that the portion which reads the argument has issues. > >$host=$ARGV[0];
Read that link I gave you, it explains this thoroughly. On another note, your plugin looks like you simply query an OID for a value and return levels based on a range? Why are you writing a plugin to use a plugin that does what you need? /usr/lib64/nagios/plugins/check_snmp --help You can search/grep on values/ranges... ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ 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