I need to write a nagios plugin that will send a job to the background and return to nagios.
If I let nagios wait for the job to finish, it will be 3 minutes. This will hold all other service checks.
So what I would like to do it have nagios call a script, and then have the script start the process (send to background) and the return to nagios.
I would have to do this as nagios user.
Thanks.........
[root@netwatch ~]# yum remove windows
Loaded plugins: fastestmirror
Setting up Remove Process
No Match for argument: windows
No Packages marked for removal
OH YEAH!
If I let nagios wait for the job to finish, it will be 3 minutes. This will hold all other service checks.
So what I would like to do it have nagios call a script, and then have the script start the process (send to background) and the return to nagios.
I would have to do this as nagios user.
Thanks.........
[root@netwatch ~]# yum remove windows
Loaded plugins: fastestmirror
Setting up Remove Process
No Match for argument: windows
No Packages marked for removal
OH YEAH!