Notifications in UI show "OK: Failed Uploads are at (Linux)"
Posted: Mon Jun 03, 2024 8:45 am
We have a few nagios notifications that run a query against the DB and are set to go off if it's above a certain number. They were working as expected for a long time until recently it shows:
OK: Failed Uploads are at (Linux)
OK: Funding Uploads (FU) are at PATH
OK: Overall Uploads are at (Linux)
OK: Post Closing Multi Doc Uploads (PC) are at permissions
When running it through the command line it returns results. When running it through the nagios UI it returns the above results (also in attached screen shot).
Command line output ran as myself (kkuzmano), nagios and also root.
[kkuzmano@nagiosh01 libexec]$ ./check_oracle_health_failed_uploads "Failed Uploads"
OK: Failed Uploads are at 0
[kkuzmano@nagiosh01 libexec]$ /usr/local/nagios/libexec/check_oracle_health_failed_uploads "Failed Uploads"
OK: Failed Uploads are at 0
[nagios@nagiosh01 libexec]$ ./check_oracle_health_failed_uploads "Failed Uploads"
OK: Failed Uploads are at 0
[nagios@nagiosh01 libexec]$ /usr/local/nagios/libexec/check_oracle_health_failed_uploads "Failed Uploads"
OK: Failed Uploads are at 0
[root@nagiosh01 libexec]# ./check_oracle_health_failed_uploads "Failed Uploads"
OK: Failed Uploads are at 0
[root@nagiosh01 libexec]# /usr/local/nagios/libexec/check_oracle_health_failed_uploads "Failed Uploads"
OK: Failed Uploads are at 0
Permissions are:
-rwxrwxrwx 1 apache nagios 552 Oct 20 2021 check_oracle_health_failed_uploads
The files have not been touched since Oct 2021. We have other scripts that follow the same concept as connecting to the DB and running a query to check the table and notify us if a queue is above a certain number. I have attached the profile and also a screen shot of the script. I have checked the permissions. They match the other scripts that are working. It looks like the script is half working as it gives some output but not the result it should be giving.
I've added a screen shot of:
The script
What the UI looks like with the returned results
Profile
OK: Failed Uploads are at (Linux)
OK: Funding Uploads (FU) are at PATH
OK: Overall Uploads are at (Linux)
OK: Post Closing Multi Doc Uploads (PC) are at permissions
When running it through the command line it returns results. When running it through the nagios UI it returns the above results (also in attached screen shot).
Command line output ran as myself (kkuzmano), nagios and also root.
[kkuzmano@nagiosh01 libexec]$ ./check_oracle_health_failed_uploads "Failed Uploads"
OK: Failed Uploads are at 0
[kkuzmano@nagiosh01 libexec]$ /usr/local/nagios/libexec/check_oracle_health_failed_uploads "Failed Uploads"
OK: Failed Uploads are at 0
[nagios@nagiosh01 libexec]$ ./check_oracle_health_failed_uploads "Failed Uploads"
OK: Failed Uploads are at 0
[nagios@nagiosh01 libexec]$ /usr/local/nagios/libexec/check_oracle_health_failed_uploads "Failed Uploads"
OK: Failed Uploads are at 0
[root@nagiosh01 libexec]# ./check_oracle_health_failed_uploads "Failed Uploads"
OK: Failed Uploads are at 0
[root@nagiosh01 libexec]# /usr/local/nagios/libexec/check_oracle_health_failed_uploads "Failed Uploads"
OK: Failed Uploads are at 0
Permissions are:
-rwxrwxrwx 1 apache nagios 552 Oct 20 2021 check_oracle_health_failed_uploads
The files have not been touched since Oct 2021. We have other scripts that follow the same concept as connecting to the DB and running a query to check the table and notify us if a queue is above a certain number. I have attached the profile and also a screen shot of the script. I have checked the permissions. They match the other scripts that are working. It looks like the script is half working as it gives some output but not the result it should be giving.
I've added a screen shot of:
The script
What the UI looks like with the returned results
Profile