Performance Monitor Query [v1.1 - 2011-12-16]

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

mrscary
Cacti User
Posts: 149
Joined: Tue Aug 26, 2014 2:58 pm

Re: Performance Monitor Query [v1.1 - 2011-12-16]

Post by mrscary »

so .. since I am rebuiding my system from scratch.. i remembered i used to use this query

My cacti is on Win 10. I am trying to pull perfmon stats from an exchange 2007 server (soon to go to 2013).
my CLOG is showing me
2020/04/05 12:10:08 - SPINE: Poller[Main Poller] PID[1529] Device[PSBEN-HUB] DS[PSBEN-HUB - Performance Monitor Query] Graphs[Exchnage01- Performance Monitor Query] ERROR: Empty result [172.16.3.233]: 'C:/inetpub/wwwroot/cacti/scripts/perfmon_query.cmd "172.16.3.233" "\"MSExchange Store Interface(_Total)\RPC Requests sent/sec\""'

when i run that via the cli,

typeperf "\\172.16.3.233\MSExchange Store Interface(_Total)\RPC Requests sent/sec"
i get a bunch of responses like


"04/05/2020 11:49:32.494","0.000000"
"04/05/2020 11:49:33.501","0.000000"
"04/05/2020 11:49:34.506","0.995356"

The command completed successfully.

The Exchange 2007 templates on this site were written for a CACTI system on Linux. mine's windows, so the obviously wont work. I figured perfmon would be ideal.
not sure why its not working.. my cacti is 1.2.9. this is literally the only error in my CLOG at the moment
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Performance Monitor Query [v1.1 - 2011-12-16]

Post by netniV »

I would suspect it's the extra escaped quotes.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests