Notifications using vICQ


Hi all. I’m using Ngios 1.3 stable and trying to configure notifications by icq. I have simple ICQ client vICQ.
So, there is a host_notification_commands in contacts.cfg called host-notify-by-icq.
It’s description in misccommands.cfg:
define command{
command_name host-notify-by-icq
command_line echo “msg 123456789/$NOTIFICATIONTYPE$ $HOSTNAME$ is $HOSTSTATE$ ($OUTPUT$)” | /usr/local/bin/vicq
But when host is Down, web Nagios says:
HOST DOWN; 27-01-2006; 09:20:33; dave; host-notify-by-icq; CRITICAL - Plugin timed out after 10 seconds
Interesting, that when host is UP, it says
HOST UP; 26-01-2006; 21:21:20; dave; host-notify-by-icq;
PING OK - Packet loss = 0%, RTA = 8.96 ms

When I log in as Nagios user and try to run this command as Nagios do - all works fine!

ls -la /usr/local/bin/vicq
-r-xr-xr-x 1 root wheel

Seems to me, that nagios dot’n run this command at all!
Tell me, where I go wrong:?: :shock:


CRITICAL - Plugin timed out after 10 seconds
That means that your check plugin timed out and has nothing to do with the notifications.



Have you ever gotten Vicq to work properly? I am having an agrivating time with it. As in your case, it works great as a manual command for the user nagios but the nagios system does not seem to like it. No error messages either.

Here is the command I use, similar to yours.

define command{
command_name notify-by-sms
command_line /usr/bin/printf “sms $CONTACTPAGER$/$NOTIFICATIONTYPE$:
$SERVICESTATE$” | /usr/local/bin/vicq -b -o -c /var/log/nagios/.vicq/config


sms messages can be usually sent to a cell phone like this.


Virgin Mobile:





I can’t get vicq working either with nagios. I have the same problem as listed above.