Check Service Load on Windows Machines
Stephan Janosch
Stephan.Janosch at interface-business.de
Tue Nov 16 16:26:06 CET 2004
Wengrzik, Andreas wrote:
> Hello!
>
> I check my services on the windows machines with NRPE and NSClient....
> Now i want to know if anyone check also the cpu load from the services??
>
> Would be nice if anyone can help me!
>
> Bye
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: InterSystems CACHE
> FREE OODBMS DOWNLOAD - A multidimensional database that combines
> robust object and relational technologies, making it a perfect match
> for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
hi Andreas!
I do it that way: define command{
command_name check_nt
command_line $USER1$/check_nt -H $HOSTNAME$ -v $ARG1$ -l $ARG2$ -w
$ARG3$ -c $ARG4$
}
define service {
host_name hero
service_description SWAP
check_command
check_nt!COUNTER!"\\Auslagerungsdatei(_Total)\\Belegung (%)"," %.2f
percent of swapspace used"!50!75
register 1
use generic-service-wo-perf
}
As you can see, i monitor a windows performance counter. If you put
something like "\\Process([your process name here])\\Processortime (%)"
as second argument to the service definition, you may see the right stuff.
The windows performance counters are localized, that meas, it depends on
your windows version, how they are named. I give you an example for a
german windows here:
check_nt!COUNTER!"\\Prozess(spoolsv)\\Prozessorzeit (%)"!80!90
I hope that helps.
Stephan
-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list