We've moved to a new support system!

The Nagios Answer Hub is a place where you can get help with technical questions from our experts. There, you can quickly open tickets and join discussion boards.

Request Nagios Answer Hub access here: https://info.nagios.com/answer-hub-access-new-users

After completing the access form, you will be given access to a portal where new tickets can be created. We will keep the old customer forum sections and ticket system available for current cases to be resolved.

Go to the Answer Hub

Native Windows check_ncpa.py

Engage with the community of users including those using the open source solutions.
Includes Nagios Core, Plugins, and NCPA

Native Windows check_ncpa.py

Postby onegative » Fri Mar 11, 2022 11:10 am

G' Day Community,

So before I go out and try to re-write check_ncpa.py or create a new Powershell version of it to run natively on Windows...

Has anyone already gone through the trouble of fabricating Windows equivalent of SIGALRM embedded in check_ncpa.py?

Code: Select all
C:\Users\dg0123_\Desktop>python ./check_ncpa.py -H my-tool-server -T 60 -P 3181 -t mytoken -M /system/agent_version
Traceback (most recent call last):
  File "C:\Users\dg0123_\Desktop\check_ncpa.py", line 352, in <module>
    stdout, returncode = main()
  File "C:\Users\dg0123_\Desktop\check_ncpa.py", line 317, in main
    signal.signal(signal.SIGALRM, timeout_handler(options.timeout))
AttributeError: module 'signal' has no attribute 'SIGALRM'. Did you mean: 'SIGABRT'?

I understand I can get perform a workaround by installing cygwin but that is really not a viable option where company policies restrict what software can be installed.

If anyone has already done all the work, it would save me lots of time as Python is not my first language which incurs additional time learning syntax and short-cuts.

Thanks in advance,
Posts: 173
Joined: Tue Feb 17, 2015 12:06 pm

Return to Community Support

Who is online

Users browsing this forum: No registered users and 29 guests