I am needing to add a new windows service called AaaFaxService. Please explain to me how I can do this.
Here is what we have now.
How to add a service
-
donnyforbes
- Posts: 357
- Joined: Tue Jun 13, 2017 2:17 pm
How to add a service
You do not have the required permissions to view the files attached to this post.
-
bolson
Re: How to add a service
Hello donnyforbes,
Can you please be more specific about what it is you're trying to do? What agent is running on the Windows machine? Is aaafaxservice a service that is running on the Windows box? Are you just wanting to check to see if the service is running?
Can you please be more specific about what it is you're trying to do? What agent is running on the Windows machine? Is aaafaxservice a service that is running on the Windows box? Are you just wanting to check to see if the service is running?
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: How to add a service
In addition to @bolson's response, the immediate answer to your question is to go to http://YOURSERVER/nagiosxi/includes/com ... pe=service and click Add New.
Now, the real question is whether you need to add a command as well. If so, then https://assets.nagios.com/downloads/nag ... ios-XI.pdf will step you through the process.
Now, the real question is whether you need to add a command as well. If so, then https://assets.nagios.com/downloads/nag ... ios-XI.pdf will step you through the process.
-
donnyforbes
- Posts: 357
- Joined: Tue Jun 13, 2017 2:17 pm
Re: How to add a service
Yes, AaaFaxservice is running on the windows server and I just need to know that its running and if it does not be notfiied. The agent is whatever the default ones is that you install in the configuration manger for windows servers..bolson wrote:Hello donnyforbes,
Can you please be more specific about what it is you're trying to do? What agent is running on the Windows machine? Is aaafaxservice a service that is running on the Windows box? Are you just wanting to check to see if the service is running?
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: How to add a service
Generally speaking, that's NSClient. You'll need to add the check on the NSClient side as well. Here is our NSClient documentation: https://assets.nagios.com/downloads/nag ... ios-XI.pdfdonnyforbes wrote:The agent is whatever the default ones is that you install in the configuration manger for windows servers..
-
donnyforbes
- Posts: 357
- Joined: Tue Jun 13, 2017 2:17 pm
Re: How to add a service
The client is already installed. I remember seeing during the install a place to add this service, but forgot, now I am needing to add it. Please give me instruction on how. If not should I just remove it and do it all over again? I would think there is a better way then removing.Generally speaking, that's NSClient. You'll need to add the check on the NSClient side as well. Here is our NSClient documentation: https://assets.nagios.com/downloads/nag ... ios-XI.pdf
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: How to add a service
That information is actually in that initial set up documentation. Here it is though:
Open the file C:\Program Files\NSClient++\nsclient.ini in Notepad.
Find this section in the file:
[/settings/external scripts/scripts]
If it doesn't exist then add it to the end of the file.
Under [/settings/external scripts/scripts] section add the following line:
check_dummy_bat = scripts\\check_dummy.bat $ARG1$ "$ARG2$"
Save the file and then use services.msc to restart the NSClient++ service.
Obviously, change it for your script.
Open the file C:\Program Files\NSClient++\nsclient.ini in Notepad.
Find this section in the file:
[/settings/external scripts/scripts]
If it doesn't exist then add it to the end of the file.
Under [/settings/external scripts/scripts] section add the following line:
check_dummy_bat = scripts\\check_dummy.bat $ARG1$ "$ARG2$"
Save the file and then use services.msc to restart the NSClient++ service.
Obviously, change it for your script.