Check process

Andy Shellam (Mailing Lists) andy.shellam-lists at mailnetwork.co.uk
Tue Nov 28 14:31:23 CET 2006


Hi John,

Yep, you can run checks on another machine using the Nagios NRPE agent 
in conjunction with the Nagios plugins.
Compile NRPE on both machines (master and slave) - then use the 
check_nrpe compiled on the master as the check_command parameter in the 
Nagios server, and tell it which plugin you want to execute on the 
remote machine.  The NRPE daemon on the remote machine will run the 
plugin locally, and send the result back to the master Nagios.

Andy.

John Longland wrote:
>
> Hi all !!!
>
> Just been looking at the plugins in my ../libexec-DIR. ( I have Nagios 
> 2.4 runing )
>
> I found something to work with , but it looks like "the-long-way"
> Would like to put my problem together with a possible solution.
> Would like to know if there is a better way.
>
>
> Problem:
>
> I have a distributed Nagios system : One master; one slave.
> The master nagios is also my master time-server
> The slave-nagios is also my slave-time-server.
> I need to check the tnp-procs on both the servers.
>
>
> Possible solution:
> I see that there is a check_procs  plugin. This however, only checks
> processes on the local machine. I can check for the ntp proc:
> ( On the master ) : check_procs -a ntpd
> With this command I cannot check if ntp is running on my slave-nagios.
> To do this, I'd have to define a new service-check on the main nagios, 
> accepting
> info from the slave-nagios about the ntpd-service running there.
>
> This seems very cumbersome.
>
> I also see that there is a check_ntp, but this checks clock accuracies 
> etc which
> I don't want at this stage. I just need to know if the ntpd is running.
>
> Is there a way I can check a proc on another machine ??
>
> Thanks !
> JOhn
>
>
>
>
> !DSPAM:37,456c2b2540413266639852!
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> !DSPAM:37,456c2b2540413266639852!
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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
>
> !DSPAM:37,456c2b2540413266639852!
>   


-- 
Andy Shellam
NetServe Support Team

the Mail Network
"an alternative in a standardised world"

p: +44 (0) 121 288 0832/0839
m: +44 (0) 7818 000834


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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