Search found 79 matches
- Wed Jun 23, 2021 11:44 am
- Forum: Nagios XI
- Topic: Nagios Adding Backslashes To My Plugin (Windows Batch File)
- Replies: 17
- Views: 1715
Re: Nagios Adding Backslashes To My Plugin (Windows Batch Fi
Thanks for not giving up -- it works!!! For whatever reason, mapping a drive with "net use" makes a difference, even if you don't use the drive letter in your command. My version of the script is optimistic -- it assumes the connection was made. I replaced the status message "The comm...
- Tue Jun 22, 2021 7:59 am
- Forum: Nagios XI
- Topic: Nagios Adding Backslashes To My Plugin (Windows Batch File)
- Replies: 17
- Views: 1715
Re: Nagios Adding Backslashes To My Plugin (Windows Batch Fi
Ok, I'll take a look at the check_smb_share. I'm kind of hoping to do something in Windows , though. I've been looking at other plugins in the Nagios Exchange . There's one PowerShell script that looks promising but I don't know PowerShell at all and it looks like it has a steep learning curve. Sinc...
- Mon Jun 21, 2021 12:49 pm
- Forum: Nagios XI
- Topic: Nagios Adding Backslashes To My Plugin (Windows Batch File)
- Replies: 17
- Views: 1715
Re: Nagios Adding Backslashes To My Plugin (Windows Batch Fi
I figured I'd give porting my .bat plugin to .vbs a shot to see if that would work. It didn't. I'm pointing to it in Nagios like this: check_xi_ncpa!-t 'faKEpaSSwoRD' -P 5693 -M 'plugins/zipdir.vbs' Again, the backslashes are being doubled (why???) so that the script returns "path not found&quo...
- Fri Jun 18, 2021 9:24 am
- Forum: Nagios XI
- Topic: Nagios Adding Backslashes To My Plugin (Windows Batch File)
- Replies: 17
- Views: 1715
Re: Nagios Adding Backslashes To My Plugin (Windows Batch Fi
It looks like you're using the same IP address as before, so that's why it works. During my troubleshooting, I mapped X: to the remote directory and it did not work. I tried again this morning just to make sure. When I add additional ECHO commands to my batch file, you can see in Nagios that the bac...
- Wed Jun 16, 2021 2:17 pm
- Forum: Nagios XI
- Topic: Nagios Adding Backslashes To My Plugin (Windows Batch File)
- Replies: 17
- Views: 1715
Re: Nagios Adding Backslashes To My Plugin (Windows Batch Fi
OK, thanks.
I even tried checking a directory on the C drive of my laptop and that didn't work, so it's like it only works locally.
Let me know what you learn.
I even tried checking a directory on the C drive of my laptop and that didn't work, so it's like it only works locally.
Let me know what you learn.
- Wed Jun 16, 2021 12:34 pm
- Forum: Nagios XI
- Topic: Nagios Adding Backslashes To My Plugin (Windows Batch File)
- Replies: 17
- Views: 1715
Re: Nagios Adding Backslashes To My Plugin (Windows Batch Fi
WITH .ZIP FILES C:\Program Files (x86)\Nagios\NCPA\plugins>VNO_PDS.BAT NOTIFICATION - NEW ZIP FILES IN \\10.0.11.8\e$\##VNO_Web_PDs\ WITHOUT .ZIP FILES C:\Program Files (x86)\Nagios\NCPA\plugins>VNO_PDS.BAT OK - NO NEW ZIP FILES IN \\10.0.11.8\e$\##VNO_Web_PDs\ Updated .bat file (works as above onl...
- Wed Jun 16, 2021 10:58 am
- Forum: Nagios XI
- Topic: Nagios Adding Backslashes To My Plugin (Windows Batch File)
- Replies: 17
- Views: 1715
Re: Nagios Adding Backslashes To My Plugin (Windows Batch Fi
The machine with the .bat file is my PC which is running the NCPA agent. It is looking for .zip files uploaded to a network server by our developers. C:\Program Files (x86)\Nagios\NCPA\plugins>DIR "\\C210EIBSWEBDEV1\e$\##VNO_Web_PDs\*.ZIP" Volume in drive \\C210EIBSWEBDEV1\e$ is DATA Volum...
- Wed Jun 16, 2021 9:50 am
- Forum: Nagios XI
- Topic: Nagios Adding Backslashes To My Plugin (Windows Batch File)
- Replies: 17
- Views: 1715
Re: Nagios Adding Backslashes To My Plugin (Windows Batch Fi
Good morning, G, and thanks for your reply. I wasn't having any luck with the IP address until I noticed yours was checking for files on your local C drive. I tried it with my C drive and it works, even with the host name. The problem is that developers are uploading their work to a network drive. A...
- Tue Jun 15, 2021 10:53 am
- Forum: Nagios XI
- Topic: Nagios Adding Backslashes To My Plugin (Windows Batch File)
- Replies: 17
- Views: 1715
Nagios Adding Backslashes To My Plugin (Windows Batch File)
Good morning, all. Linux 3.10.0-1160.31.1.el7.x86_64 Nagios XI 5.8.4 Host with NCPA plugin: Windows 10 Enterprise 20H2 I deleted my post regarding a somewhat related topic. It turns out Nagios doubles up on backslashes whether they are included in the .bat file (NCPA "plugin") or, as sugge...
- Fri May 28, 2021 9:13 am
- Forum: Nagios XI
- Topic: Yum Plugin With NCPA
- Replies: 5
- Views: 706
Re: Yum Plugin With NCPA
Per your earlier post, I added "sudo" in the script and it worked. Thanks for your help.dchurch wrote:What's the output from the following commands?Code: Select all
su - nagios sudo yum check-update getenforce ls -la /etc/pki/consumer