Page 1 of 1

Modify or get contact pager number using external command ?

Posted: Tue Mar 05, 2013 5:46 am
by fgilain
Hello all,

I'm looking for a way to get the actual value of a contact attribute (pager number) using "external command".

But i'm unable to understand the documentation even if it seems to be possible...could someone help me ?

URL i found about it : http://old.nagios.org/developerinfo/ext ... ndlist.php

I forgot to tell that my main goal is to be able to modify that value...

Thanks a lot

Florent

Re: Modify or get contact pager number using external comman

Posted: Tue Mar 05, 2013 4:28 pm
by abrist
The pager directive is not accessible through the external command pipe. You would have to create a script that changes the the pager line in the contact config.

Re: Modify or get contact pager number using external comman

Posted: Tue Mar 05, 2013 4:32 pm
by scottwilkerson
The only way to do this in Core is to modify the contact configuration object and restart nagios

Re: Modify or get contact pager number using external comman

Posted: Tue Mar 05, 2013 6:07 pm
by fgilain
ok, thanks.