Search found 5 matches

by yuletak
Wed Feb 26, 2014 3:50 pm
Forum: Open Source Nagios Projects
Topic: Python plugin using winexe hangs when run as service
Replies: 8
Views: 6475

Re: Python plugin using winexe hangs when run as service

RESOLVED The problem was stdin for winexe. I didn't think that was the problem since I had set stdin=None when using subprocess (which in itself has another hanging problem w/ too much input). Here is the link that I referenced: http://sourceforge.net/p/winexe/bugs/31/?limit=25 First: "This bu...
by yuletak
Mon Feb 24, 2014 6:19 pm
Forum: Open Source Nagios Projects
Topic: Python plugin using winexe hangs when run as service
Replies: 8
Views: 6475

Re: Python plugin using winexe hangs when run as service

Sorry, forgot the version of Nagios we're using.

-bash-4.1$ ./nagios --version

Nagios Core 3.5.0
Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 03-15-2013
License: GPL
by yuletak
Mon Feb 24, 2014 4:58 pm
Forum: Open Source Nagios Projects
Topic: Python plugin using winexe hangs when run as service
Replies: 8
Views: 6475

Re: Python plugin using winexe hangs when run as service

I didn't have a guide to follow. I was just trying to automate our recovery process for known problems. We have existing servers, service groups, etc. already set up. Is there something specific that I can provide that might help? I kept an eye on the Nagios log as well, but nothing helpful showed u...
by yuletak
Fri Feb 21, 2014 4:37 pm
Forum: Open Source Nagios Projects
Topic: Python plugin using winexe hangs when run as service
Replies: 8
Views: 6475

Re: Python plugin using winexe hangs when run as service

Here's my python code. Please ignore the print out for "Performance Data" #!/bin/env /usr/bin/python import sys, getopt, shlex, subprocess LOG='/usr/lib64/nagios/plugins/server.log' cmd = '/usr/bin/winexe -d 1 --interactive=0 --uninstall -U <USER removed>%<PASSWD removed> //<server> \'cmd....
by yuletak
Fri Feb 21, 2014 2:04 pm
Forum: Open Source Nagios Projects
Topic: Python plugin using winexe hangs when run as service
Replies: 8
Views: 6475

Python plugin using winexe hangs when run as service

Hi, I'm using Python to create a plugin to execute a Win7 command remotely with winexe. The plugin runs fine manually on the command line with the complete path to the file and as user nagios, though I AM getting the following error messages after getting output back from the remote Win7 server. Thi...