Search found 12 matches

by [email protected]
Tue Nov 09, 2021 11:49 am
Forum: Nagios XI
Topic: NagiosXI API "object/servicestatus" failing with "500s"
Replies: 3
Views: 245

Re: NagiosXI API "object/servicestatus" failing with "500s"

@gsmith I have resolved the primary issue for " get object/servicestatus" although the root cause of the endpoint failures is still unknown. Backup XI /usr/local/nagiosxi/scripts/backup_xi.sh Validate Current Config files /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg Cre...
by [email protected]
Wed Nov 03, 2021 8:50 am
Forum: Nagios XI
Topic: NagiosXI API "object/servicestatus" failing with "500s"
Replies: 3
Views: 245

NagiosXI API "object/servicestatus" failing with "500s"

NagiosXI API has stopped returning data for the "object/servicestatus" api endpoint. This is the only API endpoint that is exhibiting the failure to return data on this NagiosXI instance. I have NagiosXI instance with almost 3x the services (50k+) that is still returning data from the &quo...
by [email protected]
Tue Apr 20, 2021 9:54 am
Forum: Nagios XI
Topic: Custom Python Check Returns "UNKNOWN" exit state only in UI
Replies: 18
Views: 1451

Re: Custom Python Check Returns "UNKNOWN" exit state only in

I finally have this working in my DEV environment as expected. 1. Script executes on CLI 2. Configured command executes as expected within CCM 3. NagiosXI UI now reflects normal operations Working-MASH.PNG While this does not explain the original disparity observed in Works CLI-> Works CCM -> Fails ...
by [email protected]
Mon Apr 19, 2021 8:20 am
Forum: Nagios XI
Topic: Custom Python Check Returns "UNKNOWN" exit state only in UI
Replies: 18
Views: 1451

Re: Custom Python Check Returns "UNKNOWN" exit state only in

drwxr-xr-x 7 nagios nagios 4096 Apr 19 09:18 . drwxr-xr-x 9 root root 4096 Aug 20 2020 .. drwxrwxr-x 2 nagios nagios 16384 Apr 18 23:59 archives -rw-rw-r-- 1 nagios nagios 1641903 Apr 19 09:15 check_wss.log -rw-r--r-- 1 nagios nagios 5249 Oct 19 06:26 host-perfdata -rw-r--r-- 1 nagios nagios 325623...
by [email protected]
Fri Apr 16, 2021 10:21 am
Forum: Nagios XI
Topic: Custom Python Check Returns "UNKNOWN" exit state only in UI
Replies: 18
Views: 1451

Re: Custom Python Check Returns "UNKNOWN" exit state only in

No change after adding the timeout. check_wss.py check_wss.py Usage: ./check_wss.py -H 'https://70h1x50k6t63.statuspage.io/' -e 'unresolved' -c 'critical,major' -p -d ./check_wss.py -H 'https://70h1x50k6t63.statuspage.io/' -e 'unresolved' -c 'degraded,partial,major' -p -d -p : will add perfdata to o...
by [email protected]
Fri Apr 16, 2021 9:56 am
Forum: Nagios XI
Topic: Custom Python Check Returns "UNKNOWN" exit state only in UI
Replies: 18
Views: 1451

Re: Custom Python Check Returns "UNKNOWN" exit state only in

nmap results Starting Nmap 6.47 ( http://nmap.org ) at 2021-04-16 10:55 EDT Nmap scan report for 70h1x50k6t63.statuspage.io (18.234.32.149) Host is up (0.025s latency). rDNS record for 18.234.32.149: ec2-18-234-32-149.compute-1.amazonaws.com PORT STATE SERVICE 80/tcp open http 443/tcp open https Wi...
by [email protected]
Thu Apr 15, 2021 11:04 am
Forum: Nagios XI
Topic: Custom Python Check Returns "UNKNOWN" exit state only in UI
Replies: 18
Views: 1451

Re: Custom Python Check Returns "UNKNOWN" exit state only in

BANG #!/usr/bin/python3 I have tried running with python3 and without. I have tried with $USER1$/check_wss.py and the direct path shown pip3 show requests certifi urllib3 Name: requests Version: 2.24.0 Summary: Python HTTP for Humans. Home-page: https://requests.readthedocs.io Author: Kenneth Reitz...
by [email protected]
Thu Apr 15, 2021 8:56 am
Forum: Nagios XI
Topic: Custom Python Check Returns "UNKNOWN" exit state only in UI
Replies: 18
Views: 1451

Re: Custom Python Check Returns "UNKNOWN" exit state only in

I'm more confused now. When developing for Nagios there has always been the checklist for expected operations; 1. The goal of you script, return 1 line of text (143 max char for correct interface display) followed by the exit state for nagios (2, 1, 0, 3) 2. The script can be executed on command lin...
by [email protected]
Wed Apr 14, 2021 1:59 pm
Forum: Nagios XI
Topic: Custom Python Check Returns "UNKNOWN" exit state only in UI
Replies: 18
Views: 1451

Re: Custom Python Check Returns "UNKNOWN" exit state only in

There's a number of reasons it could fail, but I'm thinking there's some missing part of your environment. Do you need to go thru a proxy server to get the check to work? What's the output of the following command (from the command line): env |grep -i 'http\|proxy' I can reproduce on multiple syste...
by [email protected]
Wed Apr 14, 2021 1:44 pm
Forum: Nagios XI
Topic: Custom Python Check Returns "UNKNOWN" exit state only in UI
Replies: 18
Views: 1451

Re: Custom Python Check Returns "UNKNOWN" exit state only in

There's a number of reasons it could fail, but I'm thinking there's some missing part of your environment. Do you need to go thru a proxy server to get the check to work? What's the output of the following command (from the command line): env |grep -i 'http\|proxy' No proxies and can reproduce on m...