Thanks yancy.
I can confirm that Nagios is now reporting 'Warning' and 'Critical' states from the Powershell script exit codes.
Search found 12 matches
- Mon Jun 25, 2012 10:56 am
- Forum: Open Source Nagios Projects
- Topic: check_nrpe - NSClient - Exit Codes always showing 'Warning'
- Replies: 8
- Views: 9573
- Mon Jun 25, 2012 10:01 am
- Forum: Open Source Nagios Projects
- Topic: check_nrpe - NSClient - Exit Codes always showing 'Warning'
- Replies: 8
- Views: 9573
Re: check_nrpe - NSClient - Exit Codes always showing 'Warni
Hi yancy, Thanks for the reply. Below is what I have within NSC.ini check_exqueue=cmd /c echo scripts\ExchangeQueueHealth.ps1 | powershell.exe -command - I don't have exit parameters in there so I'm guessing this could be my problem. If I were to change the line within NSC.ini to the below would tha...
- Thu Jun 21, 2012 3:28 am
- Forum: Open Source Nagios Projects
- Topic: check_nrpe - NSClient - Exit Codes always showing 'Warning'
- Replies: 8
- Views: 9573
Re: check_nrpe - NSClient - Exit Codes always showing 'Warni
Of course, here it is. - http://pastebin.com/Pahxh6Qb
It's a slightly modified version of this plugin.
All I've modified is the output text and the thresholds.
It's a slightly modified version of this plugin.
All I've modified is the output text and the thresholds.
- Tue Jun 19, 2012 3:58 am
- Forum: Open Source Nagios Projects
- Topic: check_nrpe - NSClient - Exit Codes always showing 'Warning'
- Replies: 8
- Views: 9573
Re: check_nrpe - NSClient - Exit Codes always showing 'Warni
Sadly yes. If you look at the screenshot the IF statement involved within the PowerShell script adds "CRITICAL:" to the text and sets the exit code to 2. You can clearly see that the "CRITICAL:" part is being returned within the text, however as you can see Nagios is only showing...
- Mon Jun 18, 2012 6:34 am
- Forum: Open Source Nagios Projects
- Topic: check_nrpe - NSClient - Exit Codes always showing 'Warning'
- Replies: 8
- Views: 9573
check_nrpe - NSClient - Exit Codes always showing 'Warning'
Hi, I've just been playing with a few PowerShell scripts for my Exchange environment and these are working really well. Sadly, no matter if I exit the script with code 1 or code 2 it always shows as 'Warning' within Nagios. I also manually tested a code 3 exit and this also showed up as 'Warning'. A...
- Thu Jun 07, 2012 11:32 am
- Forum: Open Source Nagios Projects
- Topic: Notifications - Notify A, then A & B, then A & B & C.
- Replies: 6
- Views: 1611
Re: Notifications - Notify A, then A & B, then A & B & C.
After a lot of head scratching I managed to achieve what I stated above. - First of all I defined the default contact groups for non-critical hosts within the existing host/templates. - I then created a new host template for each set of 'critical' hosts and defined the contact group here as only Gro...
- Thu Jun 07, 2012 3:51 am
- Forum: Open Source Nagios Projects
- Topic: Notifications - Notify A, then A & B, then A & B & C.
- Replies: 6
- Views: 1611
Re: Notifications - Notify A, then A & B, then A & B & C.
Thanks for the rapid response, I'm glad that is achievable. I'm having a bit of a rethink regarding notifications and I'd like to achieve the following. Default behaviour: notify by email to GroupA, GroupB & GroupC. Behaviour for 'critical-hosts' Host Group and 'critical-services' Service Group:...
- Wed Jun 06, 2012 11:24 am
- Forum: Open Source Nagios Projects
- Topic: Notifications - Notify A, then A & B, then A & B & C.
- Replies: 6
- Views: 1611
Re: Notifications - Notify A, then A & B, then A & B & C.
Awesome, I'd not spotted those wildcards. So to notify everything in the same manner would I need to create a single host escalation and a single service escalation, as below: define hostescalation{ host_name * } define serviceescalation{ host_name * service_description * } Would that work?
- Wed Jun 06, 2012 10:55 am
- Forum: Open Source Nagios Projects
- Topic: Notifications - Notify A, then A & B, then A & B & C.
- Replies: 6
- Views: 1611
Notifications - Notify A, then A & B, then A & B & C.
Hi, I'm getting to the end of my Nagios implementation and I'm trying to tie up a few loose ends to do with notifications. At present myself and a colleague are the only defined contacts within Nagios and we're both members of the default 'admins' group. What I'm looking to achieve is to add a furth...
- Wed Jun 06, 2012 10:43 am
- Forum: Open Source Nagios Projects
- Topic: SMS notifications for specific hosts & services
- Replies: 5
- Views: 4007
Re: SMS notifications for specific hosts & services
Just to follow this up... I ended up defining two new notification processes, notify-critical-service-by-sms & notify-critical-host-by-sms, with the following commands: define command{ command_name notify-critical-host-by-sms command_line echo $HOSTGROUPNAMES$ | grep -q critical && notif...