Page 4 of 5
Re: Option to monitor or check custom made services in Ubunt
Posted: Wed Nov 27, 2019 11:13 am
by lmiltchev
Try wrapping the metric in single quotes:
Code: Select all
check_command check_ncpa!-t myepstoken -P 5693 -M 'plugins/servicescript.sh'
save, exit, and restart nagios:
Make sure nagios restarts (there are no config errors).
Check to see if the output changes.
Re: Option to monitor or check custom made services in Ubunt
Posted: Wed Nov 27, 2019 12:04 pm
by epixelitsupport
no Luck , still im getting the same
https://prnt.sc/q2xdo8
This is how my service is
https://prnt.sc/q2xdo8
No errors after restating the nagios service
Re: Option to monitor or check custom made services in Ubunt
Posted: Wed Nov 27, 2019 1:10 pm
by lmiltchev
Can you zip up the "/usr/local/nagios/etc" directory, and PM me the zip file? We will try to recreate the issue in-house.
Also, PM me the nagios.log, your script, and ncpa.cfg file. Thanks!
Re: Option to monitor or check custom made services in Ubunt
Posted: Thu Nov 28, 2019 12:54 am
by epixelitsupport
Thanks for your support ... Here I'm attaching what your request for the confirmation and in house testing
Please check your PM
Re: Option to monitor or check custom made services in Ubunt
Posted: Mon Dec 02, 2019 9:20 am
by epixelitsupport
Hi , have you gone through the files?
Re: Option to monitor or check custom made services in Ubunt
Posted: Mon Dec 02, 2019 11:18 am
by lmiltchev
I haven't received the files... Can you resend the PM?
Re: Option to monitor or check custom made services in Ubunt
Posted: Mon Dec 02, 2019 11:36 am
by epixelitsupport
im just forwarded again via PM.. can you check
Re: Option to monitor or check custom made services in Ubunt
Posted: Mon Dec 02, 2019 1:12 pm
by lmiltchev
Replied in PM.
Re: Option to monitor or check custom made services in Ubunt
Posted: Mon Dec 02, 2019 2:30 pm
by lmiltchev
The issue has been resolved in a PM. I will post a solution here in case other users run into the same issue. The problem was caused by non-printable ASCII characters in the output, "black circle" in particular in this case. The issue is described here:
https://github.com/NagiosEnterprises/ncpa/issues/446
We modified the script by piping the output to
tr -cd '\11\12\15\40-\176' in order to strip out the non-printable characters.
Example script:
Code: Select all
#!/bin/bash
systemctl status cmmt_revolution | tr -cd '\11\12\15\40-\176'
I am closing this topic.
Re: Option to monitor or check custom made services in Ubunt
Posted: Wed Dec 18, 2019 1:41 am
by epixelitsupport
Now the Issue is even the service has gone Down in the client-server the Nagios server showing it as UP in green colour
In Client Machine service Status:
https://prnt.sc/qcdwbh
In Nagios Server Status:
https://prnt.sc/qcdwyo
Please check and update me ...