Need some help w/custom plug-in, please

Scott Whitney swhitney at journyx.com
Tue Apr 8 22:24:14 CEST 2003


I have a simple plug in.  It calculates the age of the virus files based on
"now" and alerts you if outside your acceptable range.

It's called check_virus_dat.  It returns statusText of "Virus files are ___
days old." via sys.stdout and exits with exit code 0,1 or 2 based on good,
warn, critical.

Now, it's python-based, but the last 2 lines are all that matter.  My
command is:
define command {
  command_name                    check_virus_dat
  command_line                    $USER1$/check_virus_dat
}

The last 2 lines are:
print StatusText, status
sys.exit(status)

It returns the statusText ok, and I can see the exit code it's about to use.
Other scripts I've written are using these same exits fine.

When I run locally, I get (No output!)
When I run via nrpe, I get "Return code 32 is out of bounds."

Can anyone help me on this, please?

Scott Whitney






-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
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