Search found 10 matches

by arvmanya
Mon Mar 28, 2016 11:54 am
Forum: Open Source Nagios Projects
Topic: Email notification not working (sendmail)
Replies: 6
Views: 4444

Re: Email notification not working (sendmail)

No, SELinus is not installed on this machine. Output of the commands, as asked. getenforce The program 'getenforce' is currently not installed. You can install it by typing: sudo apt-get install selinux-utils ls -l /var/spool/mqueue-client/ total 0 ls -l /var/spool/ total 36 drwxr-xr-x 2 root root 4...
by arvmanya
Sun Mar 27, 2016 5:38 pm
Forum: Open Source Nagios Projects
Topic: Email notification not working (sendmail)
Replies: 6
Views: 4444

Re: Email notification not working (sendmail)

Thanks for the help ! I did the changes, as suggested, and now I am getting permission denied error. Following Nagios log and mail log. Nagios log - [1458920200] EXTERNAL COMMAND: SEND_CUSTOM_SVC_NOTIFICATION;Windows S1;C:\ Drive Space;0;Nagios Admin;Test Notificatio$ [1458920200] SERVICE NOTIFICATI...
by arvmanya
Thu Mar 24, 2016 7:22 pm
Forum: Open Source Nagios Projects
Topic: Email notification not working (sendmail)
Replies: 6
Views: 4444

Email notification not working (sendmail)

Hi, I have installed sendmail and did the configuration with my SMTP server but email notification is not working. I am able to send emails command line with both root and nagios users. I checked the configuraion in commands.cfg file and it seems ok to me. Below logs from Nagios.log file and mail.lo...
by arvmanya
Thu Mar 24, 2016 10:41 am
Forum: Open Source Nagios Projects
Topic: Process List With Memory Usage Windows Machine
Replies: 8
Views: 4006

Re: Process List With Memory Usage Windows Machine

Yes, I did use exit codes. I have written powershell and vbscript (with arguments as server name, warning and critical limits) and able to invoke it successfully through Nagios. I am sending an email within script(in case of usage equals or more than critical limit) and returning return codes with p...
by arvmanya
Tue Mar 08, 2016 12:20 pm
Forum: Open Source Nagios Projects
Topic: Process List With Memory Usage Windows Machine
Replies: 8
Views: 4006

Re: Process List With Memory Usage Windows Machine

Good to know, but I do not have Nagios XI. Will check if it works with Nagios core. So, to run the custom script, it has to be in the 'scripts' folder on the monitored servers, right ? I have written an exe in c#(for the process list with memory usage details, I have the same script in powershell) b...
by arvmanya
Mon Mar 07, 2016 6:45 pm
Forum: Open Source Nagios Projects
Topic: Process List With Memory Usage Windows Machine
Replies: 8
Views: 4006

Re: Process List With Memory Usage Windows Machine

Thanks for the reply ! But in that case, custom script needs to be on the monitored server, right ? I have to deploy the script to each server and have to do the configuration and It will be very tedious if there are more servers to monitor. What I am looking for is to get the process list stats, as...
by arvmanya
Mon Mar 07, 2016 2:52 pm
Forum: Open Source Nagios Projects
Topic: Process List With Memory Usage Windows Machine
Replies: 8
Views: 4006

Process List With Memory Usage Windows Machine

Hi, I have setup Nagios core for monitoring of windows servers. I have successfully installed Nagios core on Ubuntu machine and from there monitored another Ubuntu machine and 3 windows servers. I have written a Powershell script(and set it up in the External Scripts section to get it executed with ...
by arvmanya
Tue Mar 01, 2016 6:28 pm
Forum: Open Source Nagios Projects
Topic: The command (ps1) returned an invalid return code: -196608
Replies: 4
Views: 62881

Re: The command (ps1) returned an invalid return code: -1966

Hi Rob, I figured it out, I removed '-ExecutionPolicy ByPass -File' within external script section. ps1 = cmd /c echo scripts\\test1 %ARGS%; exit($lastexitcode) | powershell.exe -ExecutionPolicy Bypass -File -command - I was bypassing the execution policy instead of setting it to 'RemoteSigned' but ...
by arvmanya
Tue Mar 01, 2016 4:52 pm
Forum: Open Source Nagios Projects
Topic: The command (ps1) returned an invalid return code: -196608
Replies: 4
Views: 62881

Re: The command (ps1) returned an invalid return code: -1966

Hey rhassing, I ran these command command line from server only(using 'check_nrpe' within 'libexec' folder). I also tried to run it from NSCP client as well on client machine, getting the same result. But if I ran the powershell script command line, they are working fine. Within NSCP, I can see conn...
by arvmanya
Tue Mar 01, 2016 3:57 pm
Forum: Open Source Nagios Projects
Topic: The command (ps1) returned an invalid return code: -196608
Replies: 4
Views: 62881

The command (ps1) returned an invalid return code: -196608

Hi, I downloaded Nagios Core and setup a server (on ubuntu 14.04) and did monitor Windows machines (Win 8.1 and 2008 R2). I am facing an issue in calling powershell script from server to client. Installed NSClient on the windows machines and added all servers details in the server windows.cfg file, ...