performance counter not working with ncpa
Posted: Sat Oct 23, 2021 7:58 pm
I'm trying to convert all of my checks from using nsclient to ncpa. I only have two checks left that look at a performance counter and I'm having trouble making it work with ncpa.
This works with check_nt
/usr/local/nagios/libexec//check_nt -H host01 -p 12489 -s TOKEN -v COUNTER -l "\\MSMQ Queue(host01\private$\queue.reportdata)\Messages in Queue","Reportdata","Messages" -w 1 -c 2
According to this page
https://support.nagios.com/kb/article/p ... s-779.html
This should work
/usr/local/nagios/libexec/check_ncpa.py -H host01 -t TOKEN -M 'windowscounters/MSMQ Queue(host01\private$\queue.reportdata)\Messages in Queue'
However I"m getting this message
UNKNOWN: An error occured connecting to API. (HTTP error: '500 INTERNAL SERVER ERROR')
Running the example for available memory comes back fine with check_ncpa.py so it's something with the MSMQ counters it doesn't like. Is this a bug with check_ncpa?
This works with check_nt
/usr/local/nagios/libexec//check_nt -H host01 -p 12489 -s TOKEN -v COUNTER -l "\\MSMQ Queue(host01\private$\queue.reportdata)\Messages in Queue","Reportdata","Messages" -w 1 -c 2
According to this page
https://support.nagios.com/kb/article/p ... s-779.html
This should work
/usr/local/nagios/libexec/check_ncpa.py -H host01 -t TOKEN -M 'windowscounters/MSMQ Queue(host01\private$\queue.reportdata)\Messages in Queue'
However I"m getting this message
UNKNOWN: An error occured connecting to API. (HTTP error: '500 INTERNAL SERVER ERROR')
Running the example for available memory comes back fine with check_ncpa.py so it's something with the MSMQ counters it doesn't like. Is this a bug with check_ncpa?