Search found 2 matches
- Mon Apr 02, 2018 3:14 pm
- Forum: Open Source Nagios Projects
- Topic: Writing to nagios.cmd FIFO via Python
- Replies: 3
- Views: 2157
Re: Writing to nagios.cmd FIFO via Python
The newline character did it. Thanks a lot!
- Mon Apr 02, 2018 10:16 am
- Forum: Open Source Nagios Projects
- Topic: Writing to nagios.cmd FIFO via Python
- Replies: 3
- Views: 2157
Writing to nagios.cmd FIFO via Python
I'm having a really hard time figuring out why this bit of Python won't write to the nagios.cmd FIFO properly: #! /usr/local/bin/python2 import sys import time argv = [] if sys.argv.__len__() < 3: print "host,service,duration must be provided" exit(0) host = str(sys.argv[1]) service = str(...